R/construct_likelihood.R
logLik.likelihood_function.RdExtract log-likelihood from a likelihood function
# S3 method for class 'likelihood_function'
logLik(object, ...)An object of class logLik containing the log-likelihood at the MLE,
with attributes df (number of parameters) and nobs (number of observations)
Returns the log-likelihood evaluated at the maximum likelihood estimates. The value includes attributes that make it compatible with information criteria calculations (AIC, BIC, etc.).