Rev 16226 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% from nls, logLik.Rd,v 1.1 1999/11/12 13:34:35 bates\name{logLik}\title{Extract Log-Likelihood}\usage{logLik(object, ...)%notyet print(logLik(*), ...)%notyet str(logLik(*), ...)}\alias{logLik}\alias{print.logLik}\alias{str.logLik}\arguments{\item{object}{any object from which a log-likelihood value, or acontribution to a log-likelihood value, can be extracted.}\item{\dots}{some methods for this generic function require additionalarguments.}}\description{This function is generic; method functions can be written to handlespecific classes of objects. Classes which already have methods forthis function include: \code{lm}, \code{nls} in package \bold{nls},and \code{gls}, \code{lme} and others in package \bold{nlme}.% \code{corStruct}, \code{lmList}, \code{lmeStruct}, \code{reStruct}, and% \code{varFunc}.}\value{Returns an object, say \code{r}, of class \code{logLik} which is anumber with attributes, \code{attr(r, "df")} (\bold{d}egrees of\bold{f}reedom) giving the number of parameters in the model.There's a simple \code{print} method for \code{logLik} objects.The details depend on the method function used; see the appropriatedocumentation.}\seealso{\code{\link{logLik.lm}}, \code{\link[nls]{logLik.nls}},\code{\link[nlme]{logLik.gls}}, \code{\link[nlme]{logLik.lme}}, etc.}\author{Jose Pinheiro and Douglas Bates}\examples{## see the method function documentationx <- 1:5lmx <- lm(x ~ 1)logLik(lmx) # using print.logLik() methodstr(logLik(lmx))}\keyword{models}