Summary
Add UK wealth-decile impact outputs to economic_impact_analysis so callers can inspect household net income impacts grouped by household_wealth_decile.
Desired behavior
calculate_decile_impacts(...) should support a precomputed decile grouping variable while still measuring changes in the requested income variable.
- UK
economic_impact_analysis(...) should return:
wealth_decile_impacts
intra_wealth_decile_impacts
- These outputs should use
income_variable="household_net_income" grouped by decile_variable="household_wealth_decile".
- Documentation should describe the new public helper argument and UK-only analysis fields.
Notes
The simulation API adapter work is intentionally separate. Downstream API response keys such as wealth_decile and intra_wealth_decile can be mapped from these .py analysis fields in a later PR.
Summary
Add UK wealth-decile impact outputs to
economic_impact_analysisso callers can inspect household net income impacts grouped byhousehold_wealth_decile.Desired behavior
calculate_decile_impacts(...)should support a precomputed decile grouping variable while still measuring changes in the requested income variable.economic_impact_analysis(...)should return:wealth_decile_impactsintra_wealth_decile_impactsincome_variable="household_net_income"grouped bydecile_variable="household_wealth_decile".Notes
The simulation API adapter work is intentionally separate. Downstream API response keys such as
wealth_decileandintra_wealth_decilecan be mapped from these.pyanalysis fields in a later PR.