optidiscqs1 {IDSA} | R Documentation |
Strategy 1: Optimal spatial data discretization for individual variables based on SPADE model.
Description
Strategy 1: Optimal spatial data discretization for individual variables based on SPADE model.
Usage
optidiscqs1(y, x, location, ndisc, methoddisc)
Arguments
y |
A numeric vector of a response variable |
x |
A numeric vector of a explanatory variable |
location |
A matrix of spatial locations |
ndisc |
A number of discretization |
methoddisc |
A character of discretization methods |
Value
A list of an optimal spatial discretization using strategy 1.
Examples
od <- optidiscqs1(y = sim[, 1], x = sim[, 4:6], location = sim[, 2:3],
ndisc = c(3:5), methoddisc = c("quantile", "equal"))
[Package IDSA version 2.1 Index]