Lecture 16
Dr. Elijah Meyer + Konnie Huang
Duke University
STA 199 - Fall 2022
October 24, 2022
– Clone ae-15
– Lab Feedback
– Modeling with single predictors
– How to write equations
– Interpret Slopes
– Interpret Intercepts
– Prediction
– Mathematical Model of Relationships
linear_reg() |>
set_engine(“lm”) |>
fit(y ~ x , data = data-set ) |>
tidy()
– “For a 1 unit increase in x….”
– On Average: Property of least squares regression- Line goes through the mean of x and y
– Practice writing out equations: Population and Sample level