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
LAB: Models with interaction terms
The forestfires.csv data base contains information on 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 RHtemp in that order, as the predictor variables.
Create and print the ANOVA table.
If rain is used instead of wind, the output is:
sumsq df F PRF
rain e
RH e
temp e
RH:temp e
Residual e NaN NaN
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
