powered by
Compare the effects of two factors \(X_1\) and \(X_2\) on the spatial distribution of the attribute \(Y\).
ecological_detector(y, x1, x2, alpha = 0.95)
A list.
F-statistic
the result of F statistic for ecological detector
P-value
the result of P value for ecological detector
Ecological
is there a significant difference between the two factors \(X_1\) and \(X_2\) on the spatial distribution of the attribute \(Y\)
Dependent variable, continuous numeric vector.
Covariate \(X_1\), factor, character or discrete numeric.
factor
character
discrete numeric
Covariate \(X_2\), factor, character or discrete numeric.
(optional) Confidence level of the interval,default is 0.95.
0.95
Wenbo Lv lyu.geosocial@gmail.com
ecological_detector(y = 1:7, x1 = c('x',rep('y',3),rep('z',3)), x2 = c(rep('a',2),rep('b',2),rep('c',3)))
Run the code above in your browser using DataLab