x <- read.csv2("cps78_85.csv") lm <- lm(lwage~educ, data=x, subset=(year==85)) plot(x$educ, x$lwage) abline(lm)
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.