gdinteract {GD} | R Documentation |
Geographical detectors: interaction detector.
Description
Function for interaction detector calculation and visualization. The types of interactions include "Enhance, nonlinear", "Independent", "Enhance, bi-", "Weaken, uni-" and "Weaken, nonlinear".
Usage
gdinteract(formula, data = NULL)
## S3 method for class 'gdinteract'
print(x, ...)
## S3 method for class 'gdinteract'
plot(x, ...)
Arguments
formula |
A formula of response and explanatory variables |
data |
A data.frame includes response and explanatory variables |
x |
A list of interaction detector results |
... |
Ignore |
Examples
gi1 <- gdinteract(NDVIchange ~ Climatezone + Mining, data = ndvi_40)
gi1
data <- ndvi_40[,1:3]
gi2 <- gdinteract(NDVIchange ~ ., data = data)
gi2
[Package GD version 10.3 Index]