llratio               package:depmixS4               R Documentation

_L_o_g _l_i_k_e_l_i_h_o_o_d _r_a_t_i_o _t_e_s_t _o_n _t_w_o _f_i_t_t_e_d _m_o_d_e_l_s

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

     Performs a log likelihood ratio test on two fitted 'depmix'
     models.

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

             
             llratio(basemodel, constrainedmodel, ...)
             

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

basemodel: Fitted model with a 'logLik' method.

constrainedmodel: Fitted model with a 'logLik' method.

     ...: Not currently used.

_V_a_l_u_e:

     'llratio' returns an object of class 'llratio' which has slots: 

   value: : Minus twice the loglikelihood difference.

      df: : The degrees of freedom, ie the difference in number of
          freely estimated paraemters between the models.


     The print method shows the value, the degrees of freedom and the
     corresponding p-value under the chisquared distribution.

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

     Ingmar Visser

