Skip to content
SimPaths
Modifying Tax-Benefit Settings

Modifying Tax-Benefit Settings

SimPaths does not hard-code a full tax-benefit system inside Java. Instead, tax and benefit outcomes are mainly read from donor data generated outside the model and then matched back onto simulated benefit units during a run.

In practice, changing tax-benefit settings usually means changing one of three things:

  1. the UKMOD output files stored in input/UKMOD/UKMODoutput/
  2. the policy schedule in input/UKMOD/UKMODpolicySchedule.xlsx
  3. the runtime settings that control how donor information is used

1. Donor policy files

The donor database is built from policy output files such as:

  • input/UKMOD/UKMODoutput/*.txt

During setup, TaxDonorDataParser.constructAggregateTaxDonorPopulationCSVfile() reads those text files, extracts the required policy-dependent and policy-invariant variables, and writes an aggregate donor CSV that is then loaded into the H2 input database.

Two important assumptions in this process are:

  • all policy files for a given country must be based on the same donor input population
  • the files must have consistent row counts across policy systems

If that consistency breaks, database setup fails.

2. Policy schedule

input/UKMOD/UKMODpolicySchedule.xlsx tells SimPaths which donor policy should apply from which simulation year onward.

The relevant columns are:

  • Filename
  • Policy_Start_Year
  • Policy_System_Year
  • Description

In code, this file is loaded by Parameters.calculateUKMODpolicySchedule(), which builds the map from simulation years to policy names.

The most important rules are:

  • each policy start year must be unique
  • the policy system year should match the system year used when the donor file was produced
  • policies with no start year are ignored
  • at least one scheduled policy must have Policy_System_Year equal to the model's base price year, currently 2015

If no policy begins exactly in the year being evaluated, SimPaths uses the most recent policy whose start year is earlier than that year. If all policies start later, it falls back to the earliest available policy.

3. Runtime settings that affect tax-benefit use

Some settings in config/default.yml change how donor-based tax-benefit outcomes are used inside the simulation.

The most relevant ones are:

  • donorPoolAveraging in model_args
  • if true, SimPaths takes a weighted average over the selected donor pool; if false, it samples a donor from that pool using the donor weights
  • projectFormalChildcare
  • whether formal childcare costs are simulated
  • projectSocialCare
  • whether the social-care module is active
  • flagSuppressChildcareCosts and flagSuppressSocialCareCosts
  • scenario-style switches that suppress those cost components

These are model settings rather than replacements for a new policy schedule. If you want a different tax-benefit regime, the donor files and policy schedule still need to reflect it.

Typical workflow for updating policy inputs

If you want to introduce a new policy system or adjust an existing one, the usual sequence is:

  1. generate the required UKMOD output .txt files
  2. copy them into input/UKMOD/UKMODoutput/
  3. update input/UKMOD/UKMODpolicySchedule.xlsx
  4. rebuild the donor database
  5. rerun the simulation

To rebuild using the policy schedule you have just edited, use either command:

java -jar singlerun.jar -Setup -c UK -s 2019 -g false

or:

java -jar multirun.jar -DBSetup -config default.yml

Only add --rewrite-policy-schedule to the single-run command if you intend to replace the schedule with one generated from detected policy filenames. It overwrites manual schedule changes.

When you must rebuild the database

You should rebuild input/input.mv.db whenever you change:

  • any donor .txt file in input/UKMOD/UKMODoutput/
  • input/UKMOD/UKMODpolicySchedule.xlsx
  • donor-data paths in parameter_args

Changing endYear or output settings does not by itself require a rebuild. A different startYear can reuse the database only if the required starting-population table is already present; otherwise run setup for that year.

What this page does not cover

This page is about how SimPaths consumes tax-benefit inputs. It does not document the full external policy-modelling workflow inside UKMOD itself. For donor-data preparation, see Input Data.