selectvarsda {SecDim} | R Documentation |
Selecting variables for the SDA model
Description
Function for selecting variables for the second deminsion of spatial association (SDA) model
Usage
selectvarsda(y, xlist)
Arguments
y |
A vector of a response variable |
xlist |
A list of the SDA explanatory variables |
Value
A list of the selected the second dimension variables
Examples
data("obs")
data("sample_vars_sda")
obs$Cr_ppm <- log(obs$Cr_ppm)
krm <- rmvoutlier(obs$Cr_ppm)
y <- obs$Cr_ppm[-krm]
x <- list(sample_vars_sda[[1]][-krm, 1:11])
system.time({ # ~0.01s
sx <- selectvarsda(y, xlist = x)
})
[Package SecDim version 3.2 Index]