Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

# 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)

bvartools

Bayesian Inference of Vector Autoregressive Models

v0.2.0
GPL (>= 2)
Authors
Franz X. Mohr [aut, cre]
Initial release
2021-04-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.