validate_popReconstruct_data: Helper function to validate input data

Description Usage Arguments

View source: R/popReconstruct_fit.R

Description

Assert that the input data.tables includes all expected columns, combinations of id variables, and that the transformed values are finite.

Usage

1
validate_popReconstruct_data(data, settings, detailed_settings, value_col)

Arguments

data

[list()]
[data.table()] for each type of data input for the model (currently only 'population'). See Section: Data for more information.

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.