thin.bvec: Thinning Posterior Draws

View source: R/thin.bvec.R

thin.bvecR Documentation

Thinning Posterior Draws

Description

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

Usage

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

Arguments

x

an object of class "bvec".

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 "bvec".

Examples


# Load data
data("e6")

# Generate model data
model <- gen_vec(e6, p = 2, r = 1,
                 const = "unrestricted", seasonal = "unrestricted",
                 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 Aug. 31, 2023, 1:09 a.m.