Professional Documents
Culture Documents
9 - APM 1205 Linear Model
9 - APM 1205 Linear Model
1. Consider all the explanatory variables entered into the model at the previous step.
2. Add a new variable and regresses it via their partial F-statistics.
3. An explanatory variable that was added at an earlier step may now become insignificant due
to its
4. relationship with currently present explanatory variables in the model.
5. If partial F -statistic for an explanatory variable is smaller than , then this variable is deleted
6. from the model.
7. Stepwise needs two cut-off values, and . Sometimes = or > are
8. considered .
9. The choice > makes relatively more difficult to add an explanatory variable than to delete
one. .
Selection Algorithm in R
Forward Selection Algorithm
step(model, direction=“forward”)
stepAIC(model, direction=“forward”)
Backward Elimination Algorithm
step(model, direction=“backward”)
stepAIC(model, direction=“backward”)
Stepwise Selection Algorithm
step(model, direction=“both”)
stepAIC(model, direction=“both”)
Information Criteria
F-test Statistics: Comparison between reduced model and
full model using:
Where
Information Criteria
Bayesian information Criterion
Similar to AIC, the Bayesian information criterion is based on
maximizing the posterior distribution of the model given the
observations .
It is define as:
where
is the ith element in This criterion is used on similar lines as in the case of
A subset regression model with a smaller value is preferred
R function
Selection Algorithm Mallows Cp
“step” function ols_mallows_cp function through
(olsrr) package
“stepAIC”function
AIC and BIC
Ftest AIC function
anova function BIC function
RMSE PRESS
RMSE function through (qpcR) PRESS function through (qpcR)
package package