# specify the model and set seed
specification = specify_bvarGroupPANEL$new( # specify the model
ilo_dynamic_panel[1:5],
group_allocation = country_grouping_region[1:5]
)
# run the burn-in
burn_in = estimate(specification, 5)
# estimate the model
posterior = estimate(burn_in, 5)
# compute forecast error variance decomposition 4 years ahead
fevd = compute_variance_decompositions(posterior, horizon = 4)
Run the code above in your browser using DataLab