Contraception {lme4}R Documentation

Contraceptive use in Bangladesh

Description

These data on the use of contraception by women in urban and rural areas come from the 1988 Bangladesh Fertility Survey.

Usage

data(Contraception)

Format

A data frame with 1934 observations on the following 6 variables.

woman
Identifying code for each woman - a factor
district
Identifying code for each district - a factor
use
Contraceptive use at time of survey
livch
Number of living children at time of survey - an ordered factor. Levels are 0, 1, 2, 3+
age
Age of woman at time of survey (in years), centred around mean.
urban
Type of region of residence - a factor. Levels are urban and rural

Source

http://multilevel.ioe.ac.uk/softrev/bang.html

References

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.

Examples

data(Contraception)
str(Contraception)
summary(Contraception)
fm1 <- GLMM(use ~ urban+age+livch, family = binomial,
            data = Contraception, random = ~ 1|district)
summary(fm1)
fm2 <- GLMM(use ~ urban+age+livch, family = binomial,
            data = Contraception, random = ~ 1|district,
            method = "Laplace")
summary(fm2)
fm3 <- GLMM(use ~ urban+age+livch, family = binomial,
            data = Contraception, random = ~ urban|district)
summary(fm3)

[Package lme4 version 0.6-9 Index]