thin.bvarlist: Thinning Posterior Draws

View source: R/thin.bvarlist.R

thin.bvarlistR Documentation

Thinning Posterior Draws

Description

Thins the MCMC posterior draws in an object of class "bvarlist".

Usage

## S3 method for class 'bvarlist'
thin(x, thin = 10, ...)

Arguments

x

an object of class "bvarlist".

thin

an integer specifying the thinning interval between successive values of posterior draws.

...

further arguments passed to or from other methods.

Value

An object of class "bvarlist".

Examples


# Load data
data("e1")
e1 <- diff(log(e1)) * 100

# Generate multiple model matrices
model <- gen_var(e1, p = 1:2, deterministic = 2,
                 iterations = 100, burnin = 10)

# Add prior specifications
model <- add_priors(model)

# Obtain posterior draws
object <- draw_posterior(model)

# Thin
object <- thin(object)


bvartools documentation built on May 29, 2024, 5:32 a.m.