View source: R/logLik.varshrinkest.R
| logLik.varshrinkest | R Documentation |
Returns the log-likelihood of a VAR model estimated by VARshrink().
It extends vars::logLik.varest() to incorporate
1) multivariate t-distribution for residuals,
2) scale matrix Sigma provided by shrinkage methods, and
3) effective number of parameters provided by shrinkage methods.
## S3 method for class 'varshrinkest'
logLik(object, ...)
object |
An object of class "varshrinkest" |
... |
Currently not used. |
log-likelihood of the fitted VAR model, with the class
attribute "logLik" and the attributes df and nobs.
data(Canada, package = "vars")
y <- diff(Canada)
estim <- VARshrink(y, p = 2, type = "const", method = "ridge")
logLik(estim)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.