Description Usage Arguments Value
View source: R/lm.var.select.R
Variable selection for linear models by backward selection. Original code at: http://stackoverflow.com/questions/19226816/how-can-i-view-the-source-code-for-a-function. Some changes have been done.
1 2 | lm.var.select(model, keep, method = c("none", "Chisq", "F"), k = 2,
sig = 0.05, verbose = F, ...)
|
model |
a linear model (an object of class "lm") with the full model. |
keep |
a list of model terms to keep in the model at all times. |
method |
method for variable removal. |
k |
a numeric value for penalizing number of variables with information criteria. Default value es 2, corresponding to Akaike Information Criteria. |
sig |
significant level for removal of a variable. |
verbose |
logical. Should R report information (dropped variable and resulting model) on progress? Default value is FALSE. |
... |
further arguments to be passed to or from methods. |
Proposed final model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.