linear_fit <- lm(ave_acres_burned ~ years_since_1985, data = wildfires) coef(linear_fit)
## (Intercept) years_since_1985 ## 19.616453 2.221771
- Predicted average number of acres burned in 1985 is 19.6
linear_fit_year <- lm(ave_acres_burned ~ year, data = wildfires) coef(linear_fit_year)
## (Intercept) year ## -4390.598311 2.221771
- Predicted average number of acres burned in year 0 is -4390