Skip to contents

Generates seed and control total data files for PopulationSim, preparing survey seed and control targets for synthetic population generation.

Usage

popsim_make_input_data(seed, targets, geo_cross_walk, run_label, settings)

Arguments

seed

data.table. Prepared survey seed data.

targets

list. Prepared target control data by geography.

geo_cross_walk

data.table. Crosswalk between model geographies.

run_label

character(1). Label for the run, used in output path.

settings

list. Must include 'working_dir'.

Value

NULL. Side effect: writes seed and control totals to disk.

Details

  • Adds zone group to seed using geo crosswalk.

  • Adjusts targets and verifies group sums.

  • Writes seed and control totals to PopulationSim data directory.

  • Creates required subdirectories if missing.

  • Assumes input is a data.table or convertible.

Settings

  • working_dir (direct): output directory for PopulationSim files.

See also

popsim_make_geoxwalk, popsim_make_control_config

Other PopulationSim IO: popsim_make_control_config(), popsim_make_geoxwalk(), popsim_make_settings(), popsim_make_weights(), popsim_search(), popsim_search_stats(), popsim_settings_updates()

Examples

## Not run:
popsim_make_input_data(seed, targets, geo_cross_walk, 'run1', settings)
#> Error: object 'settings' not found