refit                package:flexmix                R Documentation

_R_e_f_i_t _a _F_i_t_t_e_d _M_o_d_e_l

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

     Refits an estimated flexmix model to obtain additional information
     like coefficient significance p-values for GLM regression.

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

     ## S4 method for signature 'flexmix':
     refit(object, model=1, ...)

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

  object: an object of class '"flexmix"'

   model: The model (for a multivariate response) that shall be
          refitted.

     ...: currently not used

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

     Currently there is only a 'refit' method for 'FLXglm' models,
     which in combination with the 'summary' method can be used to
     obtain the usual tests for significance of coefficients. Note that
     the tests are valid only if 'flexmix' returned the maximum
     likelihood estimator of the parameters.

_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)
     ex1r <- refit(ex1)

     ## in one component all coefficients should be highly significant,
     ## in the other component only the linear term
     summary(ex1r)

