logLik.lmList              package:nlme              R Documentation

_L_o_g-_L_i_k_e_l_i_h_o_o_d _o_f _a_n _l_m_L_i_s_t _O_b_j_e_c_t

_D_e_s_c_r_i_p_t_i_o_n:

     If 'pool=FALSE', the (restricted) log-likelihoods of the 'lm'
     components of 'object' are summed together. Else, the (restricted)
     log-likelihood of the 'lm' fit with different coefficients for
     each level of the grouping factor associated with the partitioning
     of the 'object' components is obtained.

_U_s_a_g_e:

     ## S3 method for class 'lmList':
     logLik(object, REML, pool, ...)

_A_r_g_u_m_e_n_t_s:

  object: an object inheriting from class 'lmList', representing a list
          of 'lm' objects with a common model. 

    REML: an optional logical value. If 'TRUE' the restricted
          log-likelihood is returned, else, if 'FALSE', the
          log-likelihood is returned. Defaults to 'FALSE'. 

    pool: an optional logical value indicating whether all 'lm'
          components of 'object' may be assumed to have the same error
          variance. Default is 'attr(object, "pool")'. 

     ...: some methods for this generic require additional arguments. 
          None are used in this method.

_V_a_l_u_e:

     either the sum of the (restricted) log-likelihoods of each 'lm'
     component in 'object', or the (restricted) log-likelihood for the
     'lm' fit with separate coefficients for each component of
     'object'.

_A_u_t_h_o_r(_s):

     Jose Pinheiro Jose.Pinheiro@pharma.novartis.com and Douglas Bates
     bates@stat.wisc.edu

_S_e_e _A_l_s_o:

     'lmList'

_E_x_a_m_p_l_e_s:

     fm1 <- lmList(distance ~ age | Subject, Orthodont)
     logLik(fm1)   # returns NA when it should not

