R/logLik.maxLik.R

Defines functions logLik.maxLik logLik.summary.maxLik

Documented in logLik.maxLik logLik.summary.maxLik

### Methods for accessing loglik value maximum likelihood estimates

logLik.summary.maxLik <- function( object, ...) {
   ll <- object$loglik
   attr(ll, "df") <- sum(activePar(object))
   ll
}

logLik.maxLik <- function( object, ...) {
   ll <- maxValue(object)
   attr(ll, "df") <- sum(activePar(object))
   ll
}

Try the maxLik package in your browser

Any scripts or data that you put into this service are public.

maxLik documentation built on May 29, 2024, 2:32 a.m.