This video features the first half of our coverage of Example 9 in Mod13Script.R. You should open this script in RStudio and follow along while watching. Here we show how to fit simple linear and multiple linear regression models with the lm() function, discuss the output produced by the summary() function for a fitted "lm" object, show how to update a model, and show how to produce and interpret residual plots from a fitted model. We also show how to conduct inference on the coefficients of a model using both the t tests from the model summary and by conducting a nested model F test with the anova() function.
This video is essential content for the course.