draw_posterior.gvecsubmodels: Posterior simulation

View source: R/draw_posterior.gvecsubmodels.R

draw_posterior.gvecsubmodelsR Documentation

Posterior simulation

Description

Estimates the country models of a Bayesian GVAR model.

Usage

## S3 method for class 'gvecsubmodels'
draw_posterior(object, ..., FUN = NULL, mc.cores = NULL, ctry = NULL)

Arguments

object

a list of data and model specifications for country-specific models, which should be passed on to function FUN. Usually, the output of a call to create_models in combination with add_priors.

...

further arguments passed to or from other methods.

FUN

the function to be applied to each country model in argument object. If NULL (default), the internal functions bvecxpost is used.

mc.cores

the number of cores to use, i.e. at most how many child processes will be run simultaneously. The option is initialized from environment variable MC_CORES if set. Must be at least one, and parallelization requires at least two cores.

ctry

character vector specifying for which countries posterior distributions should be drawn. If NULL (default), draws are generated for all country models.

Value

An object of class bgvecest, which contains a list of data, model specifications, priors, coefficient draws and information criteria for each estimated country model.


franzmohr/bgvars documentation built on Sept. 2, 2023, 12:45 p.m.