derived model-coherent joint density of missing observations \(\mathbf{y}_{c.m}\) given observed data \(\mathbf{y}_{c.o}\) and parameters \(\mathbf{A}_{c},\boldsymbol\Sigma_c\)
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 =3, # forecast horizonexogenous_forecast = ilo_exogenous_forecasts, # forecasts for exogenous variables) plot(fore, "GHA", main ="Forecasts for Ghana") # plot the forecasts
specr = specify_bvarPANEL$new( # specify the model ilo_dynamic_panel, # dataexogenous = ilo_exogenous_variables, # exogenous variablestype =c("real","rate","rate","rate") # set variable type)burnr =estimate(specr, S =5000, show_progress =FALSE) # run the burn-inpostr =estimate(burnr, 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
**************************************************|
specm = specify_bvarPANEL$new( # specify the model ilo_dynamic_panel_missing # data with missing observations)burnm =estimate(specm, S =5000, show_progress =FALSE) # run the burn-inpostm =estimate(burnm, 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
**************************************************|
forem =forecast( # forecast the model postm, # estimation outputhorizon =3# forecast horizon) plot(forem, "GHA", main ="Forecasts for Ghana") # plot the forecasts