R/likelihood.R

Defines functions likelihood_fun

likelihood_fun <- function(x, distribution = "norm", mu = 0, sigma = 1, skew = 0, shape = 0, lambda = 0)
{
    out <- sum(log(ddist(distribution = distribution, x = (x - mu)/sigma, mu = 0, sigma = 1, skew = skew, shape = shape, lambda = lambda)/sigma))
    return(out)
}

Try the tsgarch package in your browser

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

tsgarch documentation built on Oct. 12, 2024, 1:07 a.m.