Add Scottish Child Payment as calibration target#261
Merged
Conversation
- Add SCP total spend to calibration targets - Source: Scottish Budget 2026-27, Table 5.08 - Values: £455.8m (2024), £471.0m (2025), £484.8m (2026) - Extrapolates 3% growth for other years Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Contributor
Author
|
Closing - SCP is already within 0.7% of target without explicit calibration. Existing Scotland demographic and UC calibration targets are sufficient. |
Move scottish_child_payment df assignment to after the statistics lookup to avoid KeyError when looking up targets. Custom targets (not in statistics CSV) should be added after the initial targets lookup. Also use household_from_person instead of household_from_family since scottish_child_payment is now a Person-level variable. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Scottish Child Payment total spend as a calibration target to improve microsimulation accuracy.
Changes
sss/scottish_child_paymentto calibration matrixSource
Scottish Budget 2026-27, Chapter 5
Note
This will require a dataset rebuild after merge to recalibrate weights to match SCP totals.
🤖 Generated with Claude Code