psd_pseudop {gdverse} | R Documentation |
calculate power of spatial determinant(PSD) and the corresponding pseudo-p value
Description
Function for calculate power of spatial determinant q_s
.
Usage
psd_pseudop(y, x, wt, cores = 1, seed = 123456789, permutations = 0)
Arguments
y |
Variable Y, continuous numeric vector. |
x |
Covariable X, |
wt |
The spatial weight matrix. |
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 |
Details
The power of spatial determinant formula is
q_s = 1 - \frac{\sum_{h=1}^L N_h \Gamma_h}{N \Gamma}
Value
A tibble of power of spatial determinant and the corresponding pseudo-p value.
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')
wt = inverse_distance_weight(sim$lo,sim$la,power = 2)
psd_pseudop(sim$y,st_unidisc(sim$xa,5),wt)