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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (2 attachments)

PDF file Icon

63629c9fe4d09_236763.pdf

180 KBs PDF File

Word file Icon

63629c9fe4d09_236763.docx

120 KBs Word File

Students Have Also Explored These Related Chemistry Questions!