incomeUK | R Documentation |
The incomeUK
array has 7201 incomes of United Kingdom citizens for the year 1975. The data have been divided by average income.
data(incomeUK)
Each entry of the array is the ratio of the income of a British citizen and the average income of the sample.
The Economic and Social Research Council Data Archive at the University of Essex, United Kingdom, Family Expenditure Survey, Annual Tapes, 1968-1983, Department of Employment, Statistics Division, Her Majesty's Stationery Office, London.
data(incomeUK) hist(incomeUK,breaks = 100,col = "gold") library(KernSmooth) selectedBandwidth <- dpik(incomeUK) densEst <- bkde(incomeUK,bandwidth = selectedBandwidth,range.x = c(0,5)) plot(densEst,col = "blue",lwd = 2,type = "l",xlab = "income (multiple of average)", ylab = "density") rug(incomeUK,col = "red") abline(h = 0,col = "green3")