calculate_ccmpp_input_draws: Helper function to predict ccmpp inputs estimates from spline...

Description Usage Arguments Value

View source: R/popReconstruct_draws.R

Description

Helper function to predict ccmpp inputs estimates from spline offsets and initial estimates.

Usage

1
2
3
4
5
6
calculate_ccmpp_input_draws(
  spline_offset_draws,
  inputs,
  detailed_settings,
  value_col
)

Arguments

spline_offset_draws

[list()] of [data.table()]
Draws of spline offsets as returned by calculate_spline_offset_draws().

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.

detailed_settings

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

value_col

[character(1)]
Name of the column containing the value of interest in each of the inputs. Default is 'value'.

Value

[list()] of [data.table()] containing draws of all ccmpp inputs.


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