extract_stan_draws: Helper function to extract draws from popReconstruct stan...

Description Usage Arguments See Also

View source: R/popReconstruct_draws.R

Description

Helper function to extract draws from popReconstruct stan fits

Usage

1
extract_stan_draws(fit, inputs, settings, detailed_settings)

Arguments

fit

[stanfit(1)] or [sdreport(1)]
Model fit object returned by popReconstruct_fit().

inputs

[list()]
[data.table()] for each ccmpp input. Requires 'srb', 'asfr', 'baseline'; mortality estimates provided as just 'survival' or two of 'mx', 'ax', and 'qx'; and migration estimates provided as just 'net_migration' or both 'immigration' and 'emigration'. See Section: Inputs for more information on each of the required inputs.

settings

[list()]
Named list of settings for running the popReconstruct model with. The required settings are the same as those required for demCore::ccmpp(), see Section: Settings for these. The optional settings specific to popReconstruct are described in Section: Optional popReconstruct Settings

detailed_settings

[list()]
Detailed settings for each ccmpp input and 'population'.

See Also

popReconstruct_posterior_draws()


ihmeuw-demographics/popMethods documentation built on Jan. 29, 2021, 12:39 p.m.