Description Usage Format Source References Examples
Demographic and Health Survey data on childhood nutrition in India.
1  | 
A data frame with 37623 observations on the following 21 variables.
cheightchild's height (centimeters); a numeric vector
cagechild's age (months); a numeric vector
breastfeedingduration of breastfeeding (months); a numeric vector
csexchild's sex; a factor with levels male female
ctwinwhether or not child is a twin; a factor with levels single birth twin
cbirthorderbirth order of the child; a factor with levels 1 2 3 4 5
mbmimother's BMI (kilograms per meter squared); a numeric vector
magemother's age (years); a numeric vector
medumother's years of education; a numeric vector
edupartnerfather's years of education; a numeric vector
munemployedmother's employment status; a factor variable with levels unemployed employed
mreligionmother's religion; a factor variable with levels christian hindu muslim other sikh
mresidencemother's residential classification; a factor with levels urban rural
wealthmother's relative wealth; a factor with levels poorest poorer middle richer richest
electricityelectricity access; a factor with levels no yes
radioradio ownership; a factor with levels no yes
televisiontelevision ownership; a factor with levels no yes
refrigeratorrefrigerator ownership; a factor with levels no yes
bicyclebicycle ownership; a factor with levels no yes
motorcyclemotorcycle ownership; a factor with levels no yes
carcar ownership; a factor with levels no yes
http://www.econ.uiuc.edu/~roger/research/bandaids/india.Rda
Koenker, R. (2011), "Additive models for quantile regression: Model selection and confidence bandaids," Brazilian Journal of Probability and Statistics 25(3), pp. 239-262.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25  | ## Not run: 
data(india)
attach(india)
faccsex <- factor(csex)
facctwin <- factor(ctwin)
faccbirthorder <- factor(cbirthorder)
facmunemployed <- factor(munemployed)
facmreligion <- factor(mreligion)
faccar <- factor(car)
## Estimate a semiparametric additive model averaged model
model <- lm.ma(cheight ~ faccsex + facctwin + faccbirthorder +
               facmunemployed + facmreligion + faccar + cage +
               mbmi + medu,
               basis="additive",
               vc=FALSE)
summary(model)
plot(model,plot.data=TRUE)
plot(model,plot.deriv=TRUE)
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.