Contraception              package:lme4              R Documentation

_C_o_n_t_r_a_c_e_p_t_i_v_e _u_s_e _i_n _B_a_n_g_l_a_d_e_s_h

_D_e_s_c_r_i_p_t_i_o_n:

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

_U_s_a_g_e:

     data(Contraception)

_F_o_r_m_a_t:

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

     _w_o_m_a_n Identifying code for each woman - a factor

     _d_i_s_t_r_i_c_t Identifying code for each district - a factor

     _u_s_e Contraceptive use at time of survey

     _l_i_v_c_h Number of living children at time of survey - an ordered
          factor.  Levels are '0', '1', '2', '3+'

     _a_g_e Age of woman at time of survey (in years), centred around
          mean.

     _u_r_b_a_n Type of region of residence - a factor.  Levels are 'urban'
          and 'rural'

_S_o_u_r_c_e:

     <URL: http://multilevel.ioe.ac.uk/softrev/bang.html>

_R_e_f_e_r_e_n_c_e_s:

     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.

_E_x_a_m_p_l_e_s:

     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)

