lm.var.select: Variable selection for linear models by backward selection....

Description Usage Arguments Value

View source: R/lm.var.select.R

Description

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.

Usage

1
2
lm.var.select(model, keep, method = c("none", "Chisq", "F"), k = 2,
  sig = 0.05, verbose = F, ...)

Arguments

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.

Value

Proposed final model.


IRBLleida/UdBRpackage documentation built on Dec. 24, 2019, 9:10 p.m.