How do I code backward/forward selection in R with BIC as the criteria?
Note: This is for multiple linear regression in which I am using this for variable selection.
Please include any packages neccesary.
You need to install SignifReg package first.
Then, use the SignifReg function.
This is the description of the function:
Provide a significant variable selection procedure with
different directions (forward, backward, stepwise) based on diverse
criteria (Mallows’ Cp, AIC, BIC, adjusted r-square, p-value). The
algorithm selects a final model with only significant variables
based on a correction choice of False Discovery Rate, Bonferroni,
or no correction.
You can google "SignifReg in R" for further details about the
syntax and usage of the function.
Get Answers For Free
Most questions answered within 1 hours.