Question: 6 . 6 LAB: Backward selection using ols ( ) The forestfires.csv data base contains meteorological information and the area burned for 5 1 7

6.6 LAB: Backward selection using ols()
The forestfires.csv data base contains meteorological information and the area burned for 517 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 p-values less than 0.15.
Ex: If the variable RH is used instead of FFMC, the output is:
model1 p-values are Intercept 1.684306e-64
RH 3.486263e-01
DMC 2.350870e-02
DC 1.556796e-03
ISI 6.984705e-01
dtype: float64
model2 p-value is Intercept 3.247158e-76
RH 3.108264e-01
DMC 2.520680e-02
DC 1.521100e-03
dtype: float64
model3 p-value is Intercept 2.969390e-136
DMC 1.642624e-02
DC 9.065366e-04
dtype: float64

Step by Step Solution

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

Students Have Also Explored These Related Databases Questions!