Lab 20: Simple Linear Regression
Note
In lab.qmd ## Lab 20
section,
Use the
mpg
data to fit a simple linear regression where \(y\) ishwy
and \(x\) iscty
.Produce the plot below. (add the layer
geom_smooth(method = "lm", se = FALSE)
)
In lab.qmd ## Lab 20
section,
Use the mpg
data to fit a simple linear regression where \(y\) is hwy
and \(x\) is cty
.
Produce the plot below. (add the layer geom_smooth(method = "lm", se = FALSE)
)