qs2all: IDSA of all combinations

Description Usage Arguments Value Examples

View source: R/qs2all.R

Description

IDSA of all combinations

Usage

1
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

1
2
3
4
5
6
7
8
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")])

IDSA documentation built on April 18, 2021, 5:07 p.m.