fitted                package:flexmix                R Documentation

_E_x_t_r_a_c_t _M_o_d_e_l _F_i_t_t_e_d _V_a_l_u_e_s

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

     Extract fitted values for each component from a flexmix object.

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

     ## S4 method for signature 'flexmix':
     fitted(object, drop=TRUE, ...)

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

  object: an object of class '"flexmix"' or '"FLXrefit"'

    drop: logical, if 'TRUE' then the function tries to simplify the
          return object by combining lists of length 1 into matrices.

     ...: currently not used

_A_u_t_h_o_r(_s):

     Friedrich Leisch

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

     data(NPreg)
     ex1 <- flexmix(yn~x+I(x^2), data=NPreg, k=2)
     matplot(NPreg$x, fitted(ex1), pch=16, type="p")
     points(NPreg$x, NPreg$yn)

