ecological_detector {gdverse} | R Documentation |
ecological detector
Description
Compare the effects of two factors X_1
and X_2
on the spatial distribution of the attribute Y
.
Usage
ecological_detector(y, x1, x2, alpha = 0.95)
Arguments
y |
Dependent variable, continuous numeric vector. |
x1 |
Covariate |
x2 |
Covariate |
alpha |
(optional) Confidence level of the interval,default is |
Value
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
andX_2
on the spatial distribution of the attributeY
Author(s)
Wenbo Lv lyu.geosocial@gmail.com
Examples
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)))
[Package gdverse version 1.0.0 Index]