Answered step by step
Verified Expert Solution
Question
1 Approved Answer
6 . 6 LAB: Backward selection using ols ( ) The forestfires.csv data base contains meteorological information and the area burned for 5 1 7
LAB: Backward selection using ols
The forestfires.csv data base contains meteorological information and the area burned for forest fires that occurred in Montesinho Natural Park in Portugal. The columns of interest are FFMC DMC DC and ISI, as well as the response variable, area.
Read in the file forestfires.csv
Use the ols function to perform forward selection stepwise regression on the variables FFMC DMC DC and ISI, in that order.
Continue the stepwise regression until all the variables in the model have pvalues less than
Ex: If the variable RH is used instead of FFMC the output is:
model pvalues are Intercept e
RH e
DMC e
DC e
ISI e
dtype: float
model pvalue is Intercept e
RH e
DMC e
DC e
dtype: float
model pvalue is Intercept e
DMC e
DC e
dtype: float
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started