The regSel package can be used to perform simple linear regression and backwards selection.
The 'lin_model' function is used to produce linear regression using Ordinary Least Squares or Weighted Least Squares techniques (depending on whether weights are provided). The 'back_select' function performs backwards selection on given covariates based on p-values produced by Ordinary Least Squares methods.
You can download and install this package using the following command in R:
devtools::install_github("EvanWie/regSel", build_vignettes = TRUE, force = TRUE)
Help pages for the functions in the regSel package can be viewed using:
help(lin_model)
help(back_select)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.