Contraception | R Documentation |
These data on the use of contraception by women in urban and rural areas come from the 1988 Bangladesh Fertility Survey.
data(Contraception)
A data frame with 1934 observations on the following 6 variables.
Identifying code for each woman - a factor
Identifying code for each district - a factor
Contraceptive use at time of survey
Number of living children at time of survey - an
ordered factor. Levels are 0
, 1
, 2
, 3+
Age of woman at time of survey (in years), centred around mean.
Type of region of residence - a factor. Levels are
urban
and rural
http://www.bristol.ac.uk/cmm/learning/mmsoftware/data-rev.html
Steele, F., Diamond, I. And Amin, S. (1996). Immunization uptake in rural Bangladesh: a multilevel analysis. Journal of the Royal Statistical Society, Series A (159): 289-299.
str(Contraception)
summary(Contraception)
(fm1 <- glmer(use ~ urban+age+livch+(1|district), Contraception, binomial))
(fm2 <- glmer(use ~ urban+age+livch+(urban|district), Contraception, binomial))