psmd_spade {gdverse} | R Documentation |
power of spatial and multilevel discretization determinant(PSMD)
Description
Function for calculate power of spatial and multilevel discretization determinant PSMDQ_s
.
Usage
psmd_spade(
formula,
data,
wt = NULL,
locations = NULL,
discnum = NULL,
discmethod = NULL,
cores = 1,
seed = 123456789,
...
)
Arguments
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 |
... |
(optional) Other arguments passed to |
Details
The power of spatial and multilevel discretization determinant formula is
PSMDQ_s = MEAN(Q_s)
Value
A value of power of spatial and multilevel discretization determinant PSMDQ_s
.
Author(s)
Wenbo Lv lyu.geosocial@gmail.com
References
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
Examples
data('sim')
psmd_spade(y ~ .,
data = dplyr::select(sim,1:4),
locations = c('lo','la'))