In-Class Exercise 7
Shih Chien University
2026-09-16
Use the advertising and sales data from Exercise 6.
Fitting the Regression Line
model <- lm(sales ~ ads).coef().Interpreting the Slope
Prediction
predict() with a new data.frame().Elementary Statistics: A Step by Step Approach