chest                  package:VGAM                  R Documentation

_C_h_e_s_t _P_a_i_n _i_n _N_Z _A_d_u_l_t_s

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

     Presence/absence of chest pain in 10186 New Zealand adults.

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

     data(chest)

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

     A data frame with 73 rows and the following 5 variables.

     _a_g_e a numeric vector; age (years).

     _n_o_l_n_o_r a numeric vector of counts; no pain on LHS or RHS.

     _n_o_l_r a numeric vector of counts; no pain on LHS but pain on RHS.

     _l_n_o_r a numeric vector of counts; no pain on RHS but pain on LHS.

     _l_r a numeric vector of counts; pain on LHS and RHS of chest.

_D_e_t_a_i_l_s:

     Each adult was asked their age and whether they experienced any 
     pain or discomfort in their chest over the last six months. If
     yes, they indicated whether it was on their LHS and/or RHS of
     their chest.

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

     MacMahon, S., Norton, R., Jackson, R., Mackie, M. J., Cheng, A.,
     Vander Hoorn, S., Milne, A., McCulloch, A. (1995) Fletcher
     Challenge-University of Auckland Heart & Health Study: design and
     baseline findings. _New Zealand Medical Journal_, *108*, 499-502.

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

     data(chest)
     fit = vgam(cbind(nolnor, nolr,lnor,lr) ~ s(age, c(4,3)), 
                binom2.or(exchan=TRUE, zero=NULL), data = chest)
     coef(fit, matrix=TRUE)
     ## Not run: 
     plot(fit, which.cf=2, se=TRUE)
     ## End(Not run)

