selectvarsda | R Documentation |
Function for selecting variables for the second deminsion of spatial association (SDA) model
selectvarsda(y, xlist)
y |
A vector of a response variable |
xlist |
A list of the SDA explanatory variables |
A list of the selected the second dimension variables
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)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.