R/logLik.parfm.R

Defines functions logLik.parfm

Documented in logLik.parfm

################################################################################
#  logLik method for class 'parfm'                                             #
################################################################################
#                                                                              #
#  logLik.parfm implemets the logLik function the objects of class 'parfm'     #
#                                                                              #
#  It is necessary in oder to compute AIC and BIC values via the standard      #
#    functions AIC() and BIC()                                                 #
#                                                                              #
#                                                                              #
#   Date: December 21, 2011                                                    #
#                                                                              #
################################################################################

logLik.parfm <- function(object,
                         ...) {
  lL <- attributes(object)$loglik
  attributes(lL)$df <- dim(object)[1]
  attributes(lL)$nobs <- attributes(object)$nobs
  return(lL)
}

Try the parfm package in your browser

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

parfm documentation built on Jan. 18, 2023, 1:08 a.m.