Question: 3 . 8 LAB: Models with interaction terms The forestfires.csv data base contains information on 5 1 7 forest fires that occurred in Montesinho Natural

3.8 LAB: Models with interaction terms
The forestfires.csv data base contains information on 517 forest fires that occurred in Montesinho Natural Park in Portugal. The columns report the temperature, relative humidity, wind speed, and amount of rainfall at the time of the fire, as well as the area burned.
Read in the file forestfires.csv.
Perform multiple linear regression using the ols() function with area as the response variable and wind and the interaction term RH*temp, in that order, as the predictor variables.
Create and print the ANOVA table.
If rain is used instead of wind, the output is:
sum_sq df F PR(>F)
rain 1.239028e+011.00.0030710.955829
RH 1.435916e+031.00.3558940.551059
temp 9.949932e+031.02.4661070.116943
RH:temp 3.238244e+031.00.8026040.370737
Residual 2.065752e+06512.0 NaN NaN

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!