
R6 Class Representing PosteriorBVARGROUPPANEL
Source:R/specify_bvargrouppanel.R
specify_posterior_bvarGroupPANEL.Rd
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
.
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
Method new()
Create a new posterior output PosteriorBVARGROUPPANEL.
Usage
specify_posterior_bvarGroupPANEL$new(specification, posterior)
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)