factor_detector | R Documentation |
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, confintv = FALSE, alpha = 0.95)
y |
Variable Y, continuous numeric vector. |
x |
Covariate X, |
confintv |
(optional) Whether to compute the confidence interval for the q statistic,
default is |
alpha |
(optional) Confidence level of the interval, default is |
A list.
Q-statistic
the q statistic for factor detector
P-value
the p value for factor detector
CIL
the confidence interval lower bound
CIU
the confidence interval upper bound
Wenbo Lv lyu.geosocial@gmail.com
factor_detector(y = 1:7,x = c('x',rep('y',3),rep('z',3)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.