validate_popReconstruct_inputs: Helper function to validate initial input data.tables

Description Usage Arguments

View source: R/popReconstruct_fit.R

Description

Assert that each of the inputs once transformed is a finite value greater than negative Infinity and less than positive Infinity.

Usage

1
validate_popReconstruct_inputs(inputs, settings, detailed_settings, value_col)

Arguments

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'.

value_col

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


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