spade {gdverse} | R Documentation |
spatial association detector (SPADE) model
Description
Function for spatial association detector (SPADE) model.
Usage
spade(
formula,
data,
wt = NULL,
discvar = NULL,
discnum = 3:22,
discmethod = "quantile",
cores = 1,
seed = 123456789,
permutations = 0,
...
)
Arguments
formula |
A formula of spatial association detector (SPADE) model. |
data |
A data.frame, tibble or sf object of observation data. |
wt |
(optional) The spatial weight matrix. When |
discvar |
(optional) Name of continuous variable columns that need to be discretized. Noted that
when |
discnum |
(optional) Number of multilevel discretization. Default will use |
discmethod |
(optional) The discretization methods. Default all use |
cores |
(optional) A positive integer(default is 1). If cores > 1, use parallel computation. |
seed |
(optional) Random number seed, default is |
permutations |
(optional) The number of permutations for the PSD computation. Default is |
... |
(optional) Other arguments passed to |
Value
A list of the SPADE model result.
factor
the result of SPADE model
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')
sim1 = sf::st_as_sf(sim,coords = c('lo','la'))
g = spade(y ~ ., data = sim1)
g