mmlcrdf                package:mmlcr                R Documentation

_A_n _a_r_t_i_f_i_c_i_a_l _d_a_t_a _f_r_a_m_e _f_o_r '_m_m_l_c_r' _e_x_a_m_p_l_e_s.

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

     The 'mmlcrdf' data frame has 750 rows and 8 columns. It is a
     simulated data frame used for the 'mmlcr' examples.

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

     data(mmlcrdf)

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

          This data frame contains the following columns:

     '_i_d' subject id number. Each subject has 5 observations.

     '_a_g_e' subject's age

     '_s_e_x' subject's sex

     '_c_o_v_1' a continuous covariate, fixed over time

     '_t_c_o_v_1' a time-varying, continuous covariate

     '_r_e_s_p_1' a continuous response variable, left-censored at 0

     '_r_e_s_p_2' a count variable

     '_r_e_s_p_3' a factor response variable

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

     simulation

_S_e_e _A_l_s_o:

     'mmlcr'

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

     ## Don't run: data(mmlcrdf)
     ## Don't run: 
     mmlcrdf.mmlcr2 <- mmlcr(outer =  ~ sex + cov1 | id, 
             components = list(
                     list(formula = resp1 ~ 1, class = "cnormonce", min = 0, max = 50),
                     list(formula = resp2 ~ poly(age, 2) + tcov1, class = "poislong"),
                     list(formula = resp3 ~ poly(age, 2), class = "multinomlong")
             ), data = mmlcrdf, n.groups = 2)
     ## End Don't run

