spec = specify_bvarPANEL$new( # specify the model ilo_dynamic_panel, # dataexogenous = ilo_exogenous_variables # exogenous variables)burn =estimate(spec, S =5000, show_progress =FALSE) # run the burn-inpost =estimate(burn, S =5000) # estimate the model
**************************************************|
bpvars: Forecasting with Bayesian Panel VARs |
**************************************************|
Progress of the MCMC simulation for 5000 draws
Every draw is saved via MCMC thinning
Press Esc to interrupt the computations
**************************************************|
fore =forecast( # forecast the model post, # estimation outputhorizon =5, # forecast horizonexogenous_forecast = ilo_exogenous_forecasts, # forecasts for exogenous variables) plot(fore, "COL", main ="Forecasts for Colombia") # plot the forecasts
# Benchmark modelspec = specify_bvarPANEL$new(ilo_dynamic_panel) # specify the modelpoos = specify_poosf_exercise$new( # specify forecasting exercise spec,S =1000,S_burn =1000,horizons =1,training_sample =30)fore =forecast_poos_recursively(spec, poos) # run the forecasting exercise
**************************************************|
bpvars: Forecasting with Bayesian Panel VARs |
**************************************************|
Recursive pseudo-out-of-sample forecasting using
expanding window samples.
Press Esc to interrupt the computations
**************************************************|
Step 1: Estimate a model for a full sample to get
starting values for subsequent steps.
Step 2: Recursive pseudo out-of-sample
forecasting performed for 4 samples.
**************************************************|
# Model with country-groupingspec_g = specify_bvarGroupPANEL$new( # specify the model ilo_dynamic_panel,group_allocation = country_grouping_region)poos_g = specify_poosf_exercise$new( # specify forecasting exercise spec_g,S =1000,S_burn =1000,horizons =1,training_sample =30)fore_g =forecast_poos_recursively(spec_g, poos_g) # run the forecasting exercise
**************************************************|
bpvars: Forecasting with Bayesian Panel VARs |
**************************************************|
Recursive pseudo-out-of-sample forecasting using
expanding window samples.
Press Esc to interrupt the computations
**************************************************|
Step 1: Estimate a model for a full sample to get
starting values for subsequent steps.
Step 2: Recursive pseudo out-of-sample
forecasting performed for 4 samples.
**************************************************|