Skip to content
conorhenley edited this page Jan 7, 2019 · 9 revisions

Moving Additional Things into the Scenario Framework

We want to add the ability to use scenario-specific control totals and model coefficients.

Control Totals

Want it to default to the files as they are named now. But if scenario-specific file is named in yaml want to sub it in. s1_household_controls_input_file = ‘household_controls1.cav’

Need ability to rename all three control files for each scenario (households, employment, and regional. Name of file in ‘ ‘ is arbitrary (can be anything even without a scenario number in it. It is the var before the = that defines how to use the file.

Implemented as follows. In settings.yaml, control_tables followed by the type of control total table should implemented exactly as below. The generic and scenario specific table identifiers must be as below with the {s_} signifying the scenario number. The filenames after the colon can point to any file with the correct format found in the data directory.

control_tables: 
  household: 
    household_controls_input_file: household_controls.csv 
    s4_household_controls_input_file: s4_household_controls.csv 
  employment: 
    employment_controls_input_file: employment_controls.csv 
    s4_employment_controls_input_file: s4_employment_controls.csv 
  regional: 
    regional_controls_input_file: regional_controls.csv 
    s4_regional_controls_input_file: s4_regional_controls.csv 

Model Coefficients

The same way as the Control Totals. Defaults to standard but any mention in the yaml subs in a replacement file for just that model in just that scenario.

Clone this wiki locally