qs2 {IDSA} | R Documentation |
Power of interactive determinant for multiple explanatory variables in IDSA model.
Description
Power of interactive determinant for multiple explanatory variables in IDSA model.
Usage
qs2(y, x, xoverlay, location)
Arguments
y |
A numeric vector of a response variable |
x |
A numeric vector of a explanatory variable |
xoverlay |
A character variable of an explanatory variable |
location |
A matrix of spatial locations |
Value
A power of interactive determinant (PID) value from IDSA model.
Examples
library(GD)
data <- sim[,4:6]
data.disc <- apply(data, 2, FUN = function(x) disc(x, 4, "quantile"))
layers <- do.call(cbind, lapply(1:ncol(data), function(x)
data.frame(cut(data[, x], data.disc[[x]]$itv, include.lowest = TRUE))))
names(layers) <- names(data)
fo <- fuzzyoverlay(y = sim[,1], layers = layers, method = "fuzzyAND")
q.idsa <- qs2(y = sim$y, x = data, xoverlay = fo$fuzzylayer,
location = sim[, c("lo","la")])
[Package IDSA version 2.1 Index]