powered by
Strategy 1: Optimal spatial data discretization for individual variables based on SPADE model.
optidiscqs1(y, x, location, ndisc, methoddisc)
A numeric vector of a response variable
A numeric vector of a explanatory variable
A matrix of spatial locations
A number of discretization
A character of discretization methods
A list of an optimal spatial discretization using strategy 1.
# NOT RUN { od <- optidiscqs1(y = sim[, 1], x = sim[, 4:6], location = sim[, 2:3], ndisc = c(3:5), methoddisc = c("quantile", "equal")) # }
Run the code above in your browser using DataLab