Learn R Programming

BVAR (version 0.2.2)

logLik.bvar: Log-Likelihood method for Bayesian VARs

Description

Calculates the log-likelihood of Bayesian VARs generated with bvar.

Usage

# S3 method for bvar
logLik(object, ...)

Arguments

object

A bvar object, obtained from bvar.

...

Other graphical parameters for par.

Value

Returns an object of class logLik.

See Also

bvar

Examples

Run this code
# NOT RUN {
data <- matrix(rnorm(200), ncol = 2)
x <- bvar(data, lags = 2)

# Get log-likelihood
logLik(x)
# }

Run the code above in your browser using DataLab