bminz                  package:VGAM                  R Documentation

_B_o_d_y _M_a_s_s _I_n_d_e_x _o_f _N_e_w _Z_e_a_l_a_n_d _A_d_u_l_t_s

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

     The body mass indexes and ages from an approximate random  sample
     of 700 New Zealand adults.

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

     data(bminz)

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

     A data frame with 700 observations on the following 2 variables.

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

     _B_M_I a numeric vector; their body mass indexes, which is  their
          weight divided by the square of their height (kg / m^2 ).

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

     They are a random sample from the Fletcher Challenge/Auckland
     Heart and Health survey conducted in the early 1990s. 

     There are some outliers in the data set. 

     A variable 'gender' would be useful, and may be added later.

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

     Clinical Trials Research Unit, University of Auckland, New
     Zealand.

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

     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:

     ## Not run: 
     data(bminz)
     attach(bminz); plot(age, BMI, col="blue"); detach(bminz)

     fit = vgam(BMI ~ s(age, df=c(2,4,2)), fam=lms.yjn, data=bminz, tr=TRUE)
     qtplot(fit, pcol="blue", tcol="brown", lcol="brown")
     ## End(Not run)

