ageIncCANR Documentation

Ages and Incomes of Canadians

Description

This dataset consists of age/income pairs for Canadian workers.

Usage

data(ageIncCAN)

Format

A data frame with 205 observations on the following 2 variables:

age

age in years.

logIncome

logarithm of income.

Source

Ullah, A. (1985). Specification analysis of econometric models. Journal of Quantitative Economics, 2, 187-209.

Examples

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)