hospital               package:survey               R Documentation

_S_a_m_p_l_e _o_f _o_b_s_t_e_t_r_i_c _h_o_s_p_i_t_a_l_s

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

     The 'hospital' data frame has 15 rows and 5 columns.

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

     data(hospital)

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

     This data frame contains the following columns:

     _h_o_s_p_n_o Hospital id

     _o_b_l_e_v_e_l level of obstetric care

     _w_e_i_g_h_t_a Weights, as given by the original reference

     _t_o_t_h_o_s_p total hospitalisations

     _b_i_r_t_h_s births

     _w_e_i_g_h_t_a_t_s Weights, as given in the source

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

     <URL: http://www.ats.ucla.edu/stat/books/sop/hospsamp.dta>

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

     Levy and Lemeshow. "Sampling of Populations" (3rd edition). Wiley.

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

     data(hospital)
     hospdes<-svydesign(strata=~oblevel, id=~hospno, weights=~weighta,
     fpc=~tothosp, data=hospital)
     hosprep<-as.svrepdesign(hospdes)

     svytotal(~births, design=hospdes)
     svytotal(~births, design=hosprep)

