Skip to contents

The class PosteriorBVARGROUPPANEL contains posterior output and the specification including the last MCMC draw for the Bayesian Panel VAR model with country grouping. Note that due to the thinning of the MCMC output the starting value in element last_draw might not be equal to the last draw provided in element posterior.

Super class

bpvars::PosteriorBVARPANEL -> PosteriorBVARGROUPPANEL

Public fields

last_draw

an object of class BVARGROUPPANEL with the last draw of the current MCMC run as the starting value to be passed to the continuation of the MCMC estimation using estimate().

posterior

a list containing Bayesian estimation output.

Methods

Inherited methods


Method new()

Create a new posterior output PosteriorBVARGROUPPANEL.

Usage

specify_posterior_bvarGroupPANEL$new(specification, posterior)

Arguments

specification

an object of class BVARGROUPPANEL with the last draw of the current MCMC run as the starting value.

posterior

a list containing Bayesian estimation output.

Returns

A posterior output PosteriorBVARGROUPPANEL.


Method clone()

The objects of this class are cloneable with this method.

Usage

specify_posterior_bvarGroupPANEL$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

# This is a function that is used within estimate()
data(ilo_dynamic_panel)
set.seed(123)
spec = specify_bvarGroupPANEL$new(
   data = ilo_dynamic_panel,
   p = 4,
   G = 2
)
#> Country groupings will be estimated.

#posterior       = estimate(specification, 50)
#class(posterior)