Learn R Programming

spselect (version 0.0.1)

spselect-package: Selecting spatial scale of area-level covariates in regression models

Description

Fits spatial scale (SS) forward stepwise regression, SS incremental forward stagewise regression, SS least angle regression (LARS), and SS lasso models. All area-level covariates are considered at all available scales to enter a model, but the SS algorithms are constrained to select each area-level covariate at a single spatial scale.

Arguments

Details

Package:
spselect
Type:
Package
Version:
0.0.1
Date:
2016-08-29
License:
GPL (>=2)
LazyLoad:
yes

References

Grant LP, Gennings C, Wheeler, DC. (2015). Selecting spatial scale of covariates in regression models of environmental exposures. Cancer Informatics, 14(S2), 81-96. doi: 10.4137/CIN.S17302

Examples

Run this code
data(y)
data(X.3D)
y.name <- "y"
ss <- c("ind", "ss1", "ss2")
mod_forward.step.ss_1 <- stepwise.ss(y, X.3D, y.name, ss, 1)

Run the code above in your browser using DataLab