powered by
The factor detector q-statistic measures the spatial stratified heterogeneity of a variable Y, or the determinant power of a covariate X of Y.
factor_detector(y, x)
A list.
Q-statistic
the q statistic for factor detector
P-value
the p value for factor detector
Variable Y, continuous numeric vector.
Covariate X, factor, character or discrete numeric.
factor
character
discrete numeric
Wenbo Lv lyu.geosocial@gmail.com
factor_detector(y = 1:7,x = c('x',rep('y',3),rep('z',3)))
Run the code above in your browser using DataLab