Create control config for PopulationSim
popsim_make_control_config.RdGenerates control configuration files for PopulationSim, specifying control fields and their importance for synthetic population generation.
Usage
popsim_make_control_config(
targets,
geo_cross_walk,
run_label,
settings,
importance_list = NULL,
default_importance = 100
)Arguments
- 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'.
- importance_list
list or NULL. Importance values for control fields.
- default_importance
numeric(1). Default importance value.
Details
Builds control config from targets and crosswalk.
Sets importance for control fields (from list or default).
Writes config to PopulationSim configs directory.
Creates required subdirectories if missing.
Assumes input is a data.table or convertible.
See also
popsim_make_geoxwalk, popsim_make_input_data
Other PopulationSim IO:
popsim_make_geoxwalk(),
popsim_make_input_data(),
popsim_make_settings(),
popsim_make_weights(),
popsim_search(),
popsim_search_stats(),
popsim_settings_updates()