logLik.lmList Log-Likelihood of an lmList ObjectIf 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.
## S3 method for class 'lmList' logLik(object, REML, pool, ...)
object | an object inheriting from class |
REML | an optional logical value. If |
pool | an optional logical value indicating whether all |
... | some methods for this generic require additional arguments. None are used in this method. |
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.
José Pinheiro and Douglas Bates [email protected]
fm1 <- lmList(distance ~ age | Subject, Orthodont) logLik(fm1) # returns NA when it should not
Copyright (©) 1999–2012 R Foundation for Statistical Computing.
Licensed under the GNU General Public License.