R/EM_logLik.R

Defines functions logLik.EM

Documented in logLik.EM

#' Extract log likelihood from fitted EM objects
#'
#' @keywords internal
#' 
#' @export
logLik.EM <- function(object, ...) {
    val <- attr(object, "lli")
    attr(val, "df") <-  attr(object, "df")
    attr(val, "nobs") <-  attr(object, "nobs")
    class(val) <- "logLik"
    val
}

Try the RBesT package in your browser

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

RBesT documentation built on Aug. 22, 2023, 1:08 a.m.