R/logLik.R

Defines functions logLik.fGARCH logLik.UnivVola logLik.MultiEWMA

Documented in logLik.fGARCH logLik.MultiEWMA logLik.UnivVola

## ## ## ##
## logLik methods ----
## ## ## ##

logLik.fGARCH <- function(object, ...){
  structure(-object@fit$llh, df = length(object@fit$par), nobs = length(residuals(object)), class = "logLik")
}

logLik.UnivVola <- function(object, ...){
  structure(-object$llh, df = 1, nobs = length(object$Returns), class = "logLik")
}

logLik.MultiEWMA <- function(object, ...){
  structure(-object$llh, df = 1, nobs = dim(object$Returns)[1], class = "logLik")
}

Try the LFUrmutils package in your browser

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

LFUrmutils documentation built on Jan. 3, 2020, 3 a.m.