Learn R Programming

bvartools (version 0.2.0)

add_priors: Add Priors to Model

Description

Adds prior specifications to a list of models.

Usage

add_priors(object, ...)

Arguments

object

an object of class "bvarmodel" or "bvecmodel".

...

arguments passed forward to method.

Examples

Run this code
# NOT RUN {
# Load data
data("e1")
e1 <- diff(log(e1)) * 100

# Obtain data matrices
model <- gen_var(e1, p = 2, deterministic = 2,
                 iterations = 100, burnin = 10)
# Chosen number of iterations and burn-in draws should be much higher.

# Add prior specifications
model <- add_priors(model)

# }

Run the code above in your browser using DataLab