Answered step by step
Verified Expert Solution
Link Copied!

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

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 Universal Database V7.1 Application Development Certification Guide

Authors: Steve Sanyal, David Martineau, Kevin Gashyna, Michael Kyprianou

1st Edition

0130913677, 978-0130913678

More Books

Students also viewed these Databases questions

Question

Is conflict always unhealthy? Why or why not? (Objective 4)

Answered: 1 week ago