ExNPreg               package:flexmix               R Documentation

_A_r_t_i_f_i_c_i_a_l _E_x_a_m_p_l_e _f_o_r _N_o_r_m_a_l _a_n_d _P_o_i_s_s_o_n _R_e_g_r_e_s_s_i_o_n

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

     A simple artificial regression example with 2 latent classes, one
     independent variable (uniform on [0,10]), and two dependent
     variables with Gaussian and Poisson distribution, respectively.

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

     ExNPreg(n)
     data(NPreg)

_A_r_g_u_m_e_n_t_s:

       n: Number of observations per latent class.

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

     The 'NPreg' data frame can be re-created by 'ExNPreg(100)' using
     'set.seed(2602)', it has been saved as a data set for simplicity
     of examples only.

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

     data(NPreg)
     plot(yn~x, data=NPreg, col=class)
     plot(yp~x, data=NPreg, col=class)

