psmd_pseudop {gdverse} | R Documentation |
Function for calculate power of spatial and multilevel discretization determinant and the corresponding pseudo-p value.
psmd_pseudop(
formula,
data,
wt = NULL,
locations = NULL,
discnum = NULL,
discmethod = NULL,
cores = 1,
seed = 123456789,
permutations = 0,
...
)
formula |
A formula of calculate power of spatial and multilevel discretization determinant |
data |
A data.frame or tibble of observation data. |
wt |
(optional) The spatial weight matrix.When |
locations |
(optional) The geospatial locations coordinate columns name which in |
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 |
permutations |
(optional) The number of permutations for the PSD computation. Default is |
... |
(optional) Other arguments passed to |
The power of spatial and multilevel discretization determinant formula is
PSMDQ_s = MEAN(Q_s)
A tibble of power of spatial and multilevel discretization determinant and the corresponding pseudo-p value.
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')
psmd_pseudop(y ~ .,
data = dplyr::select(sim,1:4),
locations = c('lo','la'))