education | R Documentation |
Stock and Watson (2007) provide several subsets created from March
Current Population Surveys (CPS) with data on the relationship of
earnings and education over several years. This data corresponds to
the CPSSWEducation
dataset.
data(education)
A data frame containing 2,950 observations on 4 variables.
Age in years.
Factor indicating gender.
Average hourly earnings (sum of annual pretax wages, salaries, tips, and bonuses, divided by the number of hours worked annually).
Number of years of education.
Data corresponds to dataset CPSSWEducation
from the package AER
. Online
complements to Stock and Watson (2007).
Stock, J.H. and Watson, M.W. (2007). Introduction to Econometrics, 2nd ed. Boston: Addison Wesley.
data(education)
## Stock and Watson, p. 165
plot(earnings ~ education, data = education)
fm <- lm(earnings ~ education, data = education)
abline(fm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.