qs2all {IDSA} | R Documentation |
IDSA of all combinations
Description
IDSA of all combinations
Usage
qs2all(y, x, xh, location, method = "fuzzyAND")
Arguments
y |
A numeric vector of a response variable |
x |
A numeric vector of a explanatory variable |
xh |
A character variable of an explanatory variable |
location |
A matrix of spatial locations |
method |
A character of overlay methods |
Value
A data frame of all possible power of interactive determinants (PID) values from IDSA models.
Examples
library(GD)
x <- sim[,4:6]
x.disc <- apply(x, 2, FUN = function(u) disc(u, 4, "quantile"))
xh <- do.call(cbind, lapply(1:ncol(x), function(u)
data.frame(cut(x[, u], x.disc[[u]]$itv, include.lowest = TRUE))))
names(xh) <- names(x)
qidsa.all <- qs2all(y = sim$y, x = x, xh = xh,
location = sim[, c("lo","la")])
[Package IDSA version 2.1 Index]