Contraception             package:mlmRev             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:

     str(Contraception)
     summary(Contraception)
     (fm1 <- lmer(use ~ urban+age+livch+(1|district), Contraception, binomial))
     (fm2 <- lmer(use ~ urban+age+livch+(1|district), Contraception, binomial,
                  method = "Laplace")) ## change to "AGQ" when available
     (fm3 <- lmer(use ~ urban+age+livch+(urban|district), Contraception, binomial))
     (fm4 <- lmer(use ~ urban+age+livch+(urban|district), Contraception,
                  binomial, method = "Laplace"))

