ageIncCAN | R Documentation |
This dataset consists of age/income pairs for Canadian workers.
data(ageIncCAN)
A data frame with 205 observations on the following 2 variables:
age
age in years.
logIncome
logarithm of income.
Ullah, A. (1985). Specification analysis of econometric models. Journal of Quantitative Economics, 2, 187-209.
data(ageIncCAN) plot(ageIncCAN,xlab = "age",ylab = "log(income)") library(KernSmooth) selectedBandwidth <- dpill(ageIncCAN$age,ageIncCAN$logIncome) fit <- locpoly(ageIncCAN$age,ageIncCAN$logIncome, bandwidth = selectedBandwidth) lines(fit,col = "blue",lwd = 2)