psmd_spade {gdverse} | R Documentation |
Function for calculate power of spatial and multilevel discretization determinant PSMDQ_s
.
psmd_spade(
yobs,
xobs,
wt,
discnum = 3:22,
discmethod = "quantile",
cores = 1,
seed = 123456789,
...
)
yobs |
Variable Y |
xobs |
The original undiscretized covariable X. |
wt |
The spatial weight matrix. |
discnum |
(optional) Number of multilevel discretization. Default will use |
discmethod |
(optional) The discretization methods. Default will use |
cores |
(optional) A positive integer(default is 1). If cores > 1, use parallel computation. |
seed |
(optional) Random seed number, default is |
... |
(optional) Other arguments passed to |
The power of spatial and multilevel discretization determinant formula is
PSMDQ_s = MEAN(Q_s)
A value of power of spatial and multilevel discretization determinant PSMDQ_s
.
Wenbo Lv lyu.geosocial@gmail.com
Xuezhi Cang & Wei Luo (2018) Spatial association detector (SPADE),International Journal of Geographical Information Science, 32:10, 2055-2075, DOI: 10.1080/13658816.2018.1476693
data('sim')
wt = inverse_distance_weight(sim$lo,sim$la)
psmd_spade(sim$y,sim$xa,wt)