Skip to content

Instantly share code, notes, and snippets.

@brinnaebent
Last active January 26, 2021 16:55
Show Gist options
  • Save brinnaebent/cfa3e6eb5409e0d20b8e78f579c90ed6 to your computer and use it in GitHub Desktop.
Save brinnaebent/cfa3e6eb5409e0d20b8e78f579c90ed6 to your computer and use it in GitHub Desktop.
library(lme4)
plot(df$Smoking, df$CHD, xlab='Average Cigarrettes per Adult per Day', ylab="Coronary Heart Disease Mortality (per 10k)")
abline(lm(data=df, CHD ~ Smoking ), col="red")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment