stepfwd: Adds a single predictor to a linear model based on its...

Description Usage Arguments Value See Also

Description

This function will try and add a new predictor to a current model. A predictor will be added if it has minimum p-value among all predictors and its p-value is below a certain threshold

Usage

1
stepfwd(fitCurrent, fullmodel, aEnter = 0.1, forcedOut = NULL)

Arguments

fitCurrent

the current model of type "lm"

fullmodel

a linear model containing all possible predictors. Typically of the form lm(y~., data=data)

aEnter

the threshold for adding the predictor, set to 0.1 be default

forcedOut

vector of predictors that will be forced out of the final model

Value

an updated linear model of type "lm"

See Also

pStepwise


c-langille/pStepwise documentation built on May 13, 2019, 9:55 a.m.