Question: Write an R function from scratch to conduct forward selection. Your function should allow the following user-specified options: selection based on adjusted R2 , AIC,
Write an R function from scratch to conduct forward selection. Your function should allow the following user-specified options: selection based on adjusted R2 , AIC, as well as BIC. You can use built in functions in R like lm() or summary() but you cannot use any functions dedicated to model selection like step, etc. Need to handle continuous covariates. Have option for handling categorical covariates and hierarchically well-formulated interactions. Comment your code.
Step by Step Solution
3.46 Rating (153 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
Document Format (2 attachments)
63629c9fe4d09_236763.pdf
180 KBs PDF File
63629c9fe4d09_236763.docx
120 KBs Word File
