stepbwd: Removes a single predictor from a linear model based on its...

Description Usage Arguments Value See Also

Description

This function will try and remove a single predictor from a current linear model. A predictor will be removed if it has maximal p-value and its p-value is greater than a certain threshold.

Usage

1
stepbwd(fitCurrent, fullmodel, aRemove = 0.1, forcedIn = 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)

aRemove

the threshold for removing the predictor, set to 0.1 by default

forcedIn

vector of predictors that will be forced into 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.