diff --git a/changelog.d/1095-hrad-nil-band-receipts.changed.md b/changelog.d/1095-hrad-nil-band-receipts.changed.md new file mode 100644 index 0000000000..259809ca43 --- /dev/null +++ b/changelog.d/1095-hrad-nil-band-receipts.changed.md @@ -0,0 +1 @@ +The UK property purchases stage allocates households' additional-dwelling (HRAD) purchases at or below GBP 250,000 from HMRC's Table 8a receipts instead of individuals' share of all transactions (microcosm#1095). The residential nil-rate band was GBP 250,000 for all of 2024-25, so a purchase in that band owes no standard-rate SDLT and other buyers' receipts there are surcharge: at Table 6b's gross HRAD receipts per transaction and per pound, their GBP 265m is about 48,100 HRAD transactions and GBP 7.05bn, against the 13,400 transactions the all-band share left them. Households take the rest of the band; above it they keep uk-data#573's shares, which probably still overstate them, since the standard rates make up most receipts there. Households' 2024-25 target falls from 186,589 transactions and GBP 68.81bn to 151,928 and GBP 63.71bn, both above uk-data#573's lower bounds, and the lowest band's share of their purchases from 54% to 43%. The stage's derivation records the nil-band receipts, the implied HRAD and its shares. diff --git a/changelog.d/1095-spi-forest-age-band.changed.md b/changelog.d/1095-spi-forest-age-band.changed.md new file mode 100644 index 0000000000..fe427680f8 --- /dev/null +++ b/changelog.d/1095-spi-forest-age-band.changed.md @@ -0,0 +1 @@ +The UK SPI income stage's stage-1 tape and reference forests now read the SPI age band, not an age (uk-data#628). The 2022-23 SPI tape gives age only as a band (AGERANGE), so the age the stage draws for each donor inside its band carried no income pattern: the forest learned none, and FRS twins in one band were drawn from conditionals that differed only by that noise. The predictor `spi_age_band` is the tape's own AGERANGE code, with composite records (-1) as a band of their own, and for a frame person the band of their whole-year age. It is one-hot encoded, so the composites, the tape's high-income amalgams, are a category of their own rather than the neighbours of 16-24 on an ordinal scale; `at_or_over_spa` still carries the State Pension split inside the 65-74 band. The cross-fit fold cells key on the band too, since they key on the predictor values. The drawn donor ages are kept for the band pools' State Pension side. The stage receipt's `stage1_age_predictor` names the rule. diff --git a/changelog.d/1095-two-child-limit-cutoff-date.fixed.md b/changelog.d/1095-two-child-limit-cutoff-date.fixed.md new file mode 100644 index 0000000000..3b8975a0b4 --- /dev/null +++ b/changelog.d/1095-two-child-limit-cutoff-date.fixed.md @@ -0,0 +1 @@ +The two-child-limit target rows now date births by policyengine-uk's own cutoff test, `uc_is_child_born_before_child_limit` (a date of birth before 6 April 2017), instead of a birth year of 2017 or later (microcosm#1095). The calendar year counted a child born from January to 5 April 2017 as affected by the limit, although the limit does not apply to them in the engine. diff --git a/changelog.d/1095-two-child-limit-non-parental-care.added.md b/changelog.d/1095-two-child-limit-non-parental-care.added.md new file mode 100644 index 0000000000..7415873280 --- /dev/null +++ b/changelog.d/1095-two-child-limit-non-parental-care.added.md @@ -0,0 +1,3 @@ +The UK spine now sets policyengine-uk's `child_limit_non_parental_caring_exception`, the two-child limit's exception for non-parental caring arrangements (UC Regs 2013 Sch 12 para 4; CTC Regs 2002 reg 12), for children in kinship or friends care (microcosm#1095). Nothing set it before, so the engine paid no child element for such a third or later child born from 6 April 2017. + +The `frs_relationships` stage marks a child-table member whom no adult of their own benefit unit claims as a natural, adopted or step child, read from either side of the household grid (codes 3 and 4 from the child, 7 and 8 from the adult), and whom no local authority placed there. That covers a child living with grandparents, siblings, other relatives or friends, and a baby whose parent is a child of the claimant's unit. The multiple births, adoption and non-consensual conception exceptions stay at the engine's default: the FRS has no twin field and its birth dates are blank. diff --git a/changelog.d/1095-uk-carers-allowance-after-salary-sacrifice.changed.md b/changelog.d/1095-uk-carers-allowance-after-salary-sacrifice.changed.md new file mode 100644 index 0000000000..92740c8369 --- /dev/null +++ b/changelog.d/1095-uk-carers-allowance-after-salary-sacrifice.changed.md @@ -0,0 +1 @@ +The UK Carer's Allowance take-up stage now runs after `salary_sacrifice`, so its earnings test reads the pay that salary sacrifice converts into pension contributions (microcosm#1095 B5). That also puts it after the CGT stages' copies, so its draws are keyed on lineage: a member of a CGT support copy, incidence clone or residential arm draws as the member at the same rank of the household it copies (`lineage_roots`), and the balanced placement takes a source and its copies in one stratum as one record of their joint weight (`lineage_balanced_positions`), so the two claim together as before. Original rows keep their draws. The stage spec, the coverage manifest and the H2 fixture follow. diff --git a/changelog.d/1095-uk-hicbc-liability-diagnostics.added.md b/changelog.d/1095-uk-hicbc-liability-diagnostics.added.md new file mode 100644 index 0000000000..c2c0c5a3c2 --- /dev/null +++ b/changelog.d/1095-uk-hicbc-liability-diagnostics.added.md @@ -0,0 +1 @@ +Two national rows from HMRC's Child Benefit statistics (August 2025 release, Table 16) join the UK target contract as measured diagnostics (microcosm#1095, #1288 item 10; María's ruling of 3 November 2026): the Self Assessment taxpayers liable to the High Income Child Benefit Charge in 2024-25, counted in the model as the persons whose `CB_HITC` is above zero, and the charge's revenue, the sum of `CB_HITC`. Both are the publisher's provisional figures. They are measured at the calibration year against 2024-25's figures under a signed reviewed hold (the charge's £60,000 to £80,000 thresholds are the same in both years), and held out of the solve: the model's charge sits well above HMRC's, a gap in who receives Child Benefit at high incomes rather than in the weights, and HMRC's count covers Self Assessment returns only. The evaluation measures them on every candidate. The national references and their membership are regenerated on the pinned feed. diff --git a/changelog.d/1095-uk-nts-cars-zero-emission-and-road-fuel-mix.changed.md b/changelog.d/1095-uk-nts-cars-zero-emission-and-road-fuel-mix.changed.md new file mode 100644 index 0000000000..4ef6c0657f --- /dev/null +++ b/changelog.d/1095-uk-nts-cars-zero-emission-and-road-fuel-mix.changed.md @@ -0,0 +1,6 @@ +The LCFS consumption stage now reads the National Travel Survey's cars (UKDS SN 5340, End User Licence: the vehicle and household tabs, survey years 2022-2024, at the interview weight W3) for two changes from microcosm#1095 B3 (PR 2b), both as the 16 October plan designed them. + +- **Zero-emission cars by income (J2).** Each car is still zero-emission at VEH1103's licensed-car share nationally, but now by the household's income fifth: the national share times the fifth's relative risk among the cars NTS households keep, normalised over the frame's own cars so the national share is unchanged. The NTS ranks England's households by total gross income, McClements-equivalised, so the frame ranks `household_gross_income` over the engine's before-housing-costs equivalence scale. A car is zero-emission in the DVLA-linked 0 g/km CO2 band, and a car without a linked band is left out. The households' uniforms are unchanged, so only each household's threshold moves; a fifth on fewer than 10 zero-emission cars would pool with its neighbour (a statistical floor). The rule is `per_car_zero_emission_share_by_income_quintile`. +- **Petrol and diesel levelled separately (K).** `level_road_fuel` keeps ONS 07.2.2's household level but no longer the diary's petrol/diesel mix. Each fuel is levelled to the total times its share of household-paid spend: HMRC's litres times DESNZ's cars share of the fuel's road use (the litres audit's benchmark), times the share of car miles a household pays for (a kept car's private and commuting miles; business miles and company cars are not), at the 2024 pump prices. The `road_fuel_level` gate rechecks each fuel's total against the mix it recomputes from the vendored rows. The mix rule is `household_paid_litres`. + +A new private input, `--nts-vehicle-tab`, joins the spine tool, and the NTS household tab now also feeds `lcfs_consumption` under the same pin. The H2 fixture gains a synthetic vehicle table and W3 on its households. `obr.fuel_duties_cars` stays held, its reason restated with the household-paid shares (María's ruling of 29 October 2026). diff --git a/changelog.d/1095-uk-scottish-owner-council-tax-bands.changed.md b/changelog.d/1095-uk-scottish-owner-council-tax-bands.changed.md new file mode 100644 index 0000000000..15f6be5d92 --- /dev/null +++ b/changelog.d/1095-uk-scottish-owner-council-tax-bands.changed.md @@ -0,0 +1 @@ +The UK dense build's post-geography band node now draws each Scottish owner clone's council-tax band from its council area's chargeable dwellings by band, A to H, at September 2025 (Scottish Government CTAXBASE 2025), at the same uniform as its value, its rank among Scotland's owners (microcosm#1095 B12). The counts are vendored from Chronicle into `uk/scotgov_chargeable_dwellings_by_band.json` and pinned as the graph source `uk_scotgov_band_mix`, beside the VOA mix England and Wales draw from. Renters keep their band, as in England and Wales, and so does Northern Ireland. The band node's receipt reports Scotland apart. The national build does not localise property, so it does not change. diff --git a/changelog.d/1095-uk-spi-contributory-awards-permitted-work.changed.md b/changelog.d/1095-uk-spi-contributory-awards-permitted-work.changed.md new file mode 100644 index 0000000000..662d5220e8 --- /dev/null +++ b/changelog.d/1095-uk-spi-contributory-awards-permitted-work.changed.md @@ -0,0 +1 @@ +SPI-channel rows now take their FRS twin's contributory JSA and ESA where the row's own work stays within each benefit's limits, and none outside them (microcosm#1095 B10; María's ruling of 29 October 2026). Before, `spi_benefit_coherence` zeroed contributory JSA on every SPI row and left contributory ESA with the stage-2 forest's draw, which ignores the benefit unit's claim history. A contributory award follows the person's National Insurance record and incapacity, which the copy keeps; what the copy changes is its work. ESA's limits are permitted work: under 16 hours a week, and earnings up to policyengine-uk's `esa_exempt_work_higher_earnings_limit` at the frame's year (£183.50 a week in 2024-25). JSA's are its own (Vahid's review of microcosm#1426): under 16 hours a week, earnings no more than the prescribed amount (the age-related amount plus the £5 disregard, less 1p: £95.49 a week from 25 in 2024-25), and an award cut by the earnings above the disregard. Earnings are the row's employment income plus any self-employment profit over 52 weeks, and hours its twin's usual hours. The stage-health gate checks the rule on every SPI row, the receipt counts support in source households under the floor of three, contributory ESA leaves the QRF tail-concentration surface (no forest draw survives in it), and the stage spec, the coverage manifest and the H2 fixture follow. diff --git a/changelog.d/1095-uk-student-loan-balance-to-borrowers.changed.md b/changelog.d/1095-uk-student-loan-balance-to-borrowers.changed.md new file mode 100644 index 0000000000..53597cd05b --- /dev/null +++ b/changelog.d/1095-uk-student-loan-balance-to-borrowers.changed.md @@ -0,0 +1 @@ +The UK `student_loans` stage now moves each household's student-loan balance to the members who hold a plan, once the plans are set (microcosm#1095 B9). `was_wealth` draws the household's balance from the WAS and splits it among the members before any plan exists, so it could sit on a member with no loan while the household's borrower held none. policyengine-uk caps a borrower's repayment at a positive balance, so the split decides which repayments the balance can cap. The balance now goes to the household's borrowers by their repayments where any of them repays, and equally otherwise; a household with no borrower keeps `was_wealth`'s split, and no household's total moves. The stage spec, the coverage manifest and the H2 fixture follow. diff --git a/changelog.d/1095-uk-uc-take-up-gate-pools.changed.md b/changelog.d/1095-uk-uc-take-up-gate-pools.changed.md new file mode 100644 index 0000000000..6fcb84d038 --- /dev/null +++ b/changelog.d/1095-uk-uc-take-up-gate-pools.changed.md @@ -0,0 +1 @@ +The UK Universal Credit take-up stage gate (`uk_stage_uc_take_up`) gives the reachable pools a tolerance of their own, `maximum_reachable_pool_deviation`, beside the family type's caseload's `maximum_caseload_deviation` (Vahid's review of #1426). Both stay at 0.055 of DWP's count. With #1428's pool joining, every family type ends closer to DWP's count after the redraw than before it, the SPI employment pay floor (uk-data#629) included, so the caseload needs no wider allowance (María's ruling of 2026-11-02). The contract re-pins the gate battery's policy, manifest and fingerprint digests and the release certification's spine part. diff --git a/changelog.d/1095-uk-vehicle-excise-duty-inputs.added.md b/changelog.d/1095-uk-vehicle-excise-duty-inputs.added.md new file mode 100644 index 0000000000..3cf964d447 --- /dev/null +++ b/changelog.d/1095-uk-vehicle-excise-duty-inputs.added.md @@ -0,0 +1,8 @@ +The LCFS consumption stage now writes policyengine-uk's vehicle excise duty inputs for the cars households keep (microcosm#1095 B3, VED). No stage wrote them, so every household's duty was zero. The new `assign_car_attributes_from_nts` step reads the same NTS kept cars as J2 and K: + +- **Which cars.** A household's vehicles less its members' company cars (an employer pays their duty) go one to each other adult, oldest first. policyengine-uk holds one car a person, so a car beyond the adults is left out and the receipt counts it. +- **Which fuel.** A household the fuel flag leaves without road fuel keeps zero-emission cars only. One that buys fuel holds a petrol, diesel or other car first, and each further car is zero-emission at the household's own per-car share (the fuel flag's). +- **Which car.** Each car is a kept NTS car of its class in the household's income fifth, drawn by a keyed uniform at its interview weight. The weight is scaled so each fifth and age band keeps its share of the kept cars, since fewer of the newest and oldest cars carry the registration record the CO2 bands come from. +- **The inputs.** `car_fuel_type` (a diesel registered from 2021 meets RDE2), `car_co2_emissions` (the band's midpoint on the scale the car's duty regime reads), `car_engine_size` (none for a zero-emission car), `car_first_registration_date` (1 October 2025 less the car's age, drawn within its NTS band, as an ISO date) and `car_is_ved_exempt` (DLA's higher-rate or PIP's enhanced mobility component exempts the member's own car, or the oldest car-holder's in their benefit unit). `car_list_price` keeps the engine's default, so no car pays the expensive-car supplement. + +The five columns join the release export's allow-list, since the enhanced FRS never carried them, and the gate battery's digests in the microcosm-data contract move with it. The H2 fixture's synthetic vehicle table gains the three NTS columns the step reads. Vehicle excise duty is measured, never bound: no target carries it. diff --git a/changelog.d/uk-spi-employment-pay-floor.fixed.md b/changelog.d/uk-spi-employment-pay-floor.fixed.md new file mode 100644 index 0000000000..7cc3a9e78b --- /dev/null +++ b/changelog.d/uk-spi-employment-pay-floor.fixed.md @@ -0,0 +1 @@ +The UK SPI income stage now gives drawn employees current pay consistent with their twin's hours, and keeps the SPI tape's pay as their year of pay (uk-data#629). Stage 1 draws annual tape pay on age, sex, region and the bridge predictors but not on hours, and the tape holds part-year workers, so a copy whose FRS twin reports usual hours in an employee job could draw a year's pay below what those hours earn at the minimum wage and fail the minimum-income tests of the 30 hours' childcare offer, Tax-Free Childcare and the benefit cap more often than FRS rows. A new `floor_spi_employment_pay_at_minimum_wage` operation of `hmrc_spi_income_spine` lifts the drawn `hmrc_spi_pay` leaf to the twin's usual weekly hours (`hours_worked` read back at 52) times 52 weeks times the lower of policyengine-uk's `gov.hmrc.minimum_wage.non_apprentice` rate for the twin's age, read as the engine reads the build year (2024-25: £11.44 from 21, £8.60 from 18, £6.40 below), and the twin's own hourly pay, so no copy is held to a higher hourly rate than the FRS person it copies. The floored pay is the row's current pay; its `employment_income_annual_share` becomes its unfloored over its floored employment income, so the annual measures, which the HMRC income rows read, still read the tape's pay: low tape pay is read as part of a year at the floored rate. The operation runs after the stage-1 draw, the band-donor resample and the State Pension leaf guard, and before `employment_income` is derived from the leaves and stage 2 conditions on it, so the pension contributions (#1332's twin employer rate now applies to the floored pay) and every later stage read the floored current pay; the transport receipt keeps the unfloored draws' uniforms. It touches only drawn recipients other than reserved band carriers, whose twin has an employee main job, no trade and usual hours, and whose drawn pay is positive; FRS rows are never modified. Tape PAY is taxable pay, net of net-pay pension contributions and salary sacrifice, while the minimum wage binds gross pay: PAY alone is compared with the gross minimum, since it is the leaf of the engine's gross `employment_income` input. The stage evidence gains an `employment_pay_floor` receipt with eligible and floored source households (rounded), weighted people, the weighted share floored, the weighted mean uplift and the amount added, and an hourly-pay check: the weighted shares of the drawn employees below the minimum wage for their age before and after the floor beside the FRS employees' share, and the eligible rows still below their floor; every figure on one to nine source households, or beside a side on one to nine, is "<10". A new release-blocking stage gate, `uk_stage_hmrc_spi_income_spine_hourly_pay`, refuses a spine where an eligible drawn employee stays below its floor or where, after the floor, drawn employees sit below the minimum wage more often than FRS employees by more than two points; its details give verdicts only. The gate joins the spine gate scope, so spines saved before it no longer match a build's battery. diff --git a/docs/uk-full-build-graph.md b/docs/uk-full-build-graph.md index af26f78b6b..244a753c4e 100644 --- a/docs/uk-full-build-graph.md +++ b/docs/uk-full-build-graph.md @@ -24,7 +24,7 @@ uv run --no-sync python tools/build_uk_full.py --release-role dense \ The three atomic-area supports are the artifacts pinned in `uk/uk_atomic_area_supports.provenance.json` and `uk/spec/sources.yaml` (built by `tools/build_uk_atomic_area_supports.py` from the published ONS, NRS and NISRA lookups; publisher registration PolicyEngine/chronicle#269). `--geography-assignment atomic` is the default and requires all three; `--atomic-support-sha256-{ew,scotland,ni}` pin them like `--ladder-sha256`, and a release candidate requires all four pins. `--geography-assignment legacy` keeps the previous sequential ladder draw for measurement builds, takes no supports, and is refused by `--release-candidate`. -After derivation, `--property-localisation price_paid` (the default, atomic assignment only) runs the microcosm#1240 value and band nodes: every owner clone in England and Wales reads its `main_residence_value` off its assigned constituency's uprated Land Registry sale distribution at the household's weighted rank among its FRS region's owners (one keyed uniform per spine household, shared by all of its pool clones; high-value support copies take a keyed rank inside the top stratum), `property_wealth` moves by the same amount, and `council_tax_band` is drawn from the assigned LSOA's VOA band mix at the same uniform (owner-occupiers only: the mix counts every dwelling, so renters keep the spine's band). The two resources default to the committed `uk/high_value_home_value_knots.json` and `uk/voa_council_tax_band_mix_lsoa.json`; `--price-paid-quantiles` and `--voa-band-mix` name other bytes with `--price-paid-quantiles-sha256` and `--voa-band-mix-sha256` pins, and a release candidate must build on the committed resources. `--property-localisation none` keeps the spine's values and bands on every clone, for measurement builds only; `--release-candidate` refuses it. The quantile draw is a typed artifact of the value node that the band node and `uk.full.pool` consume, so the checkpoint binds the draw and its resource digests. The high-value support copies are ranked beside their root, so the owner mass at or above the stratum stays the selected share. The two resources and the derived stock carry the publishers' attribution statements (`licence` block): Price Paid and the UK HPI are HM Land Registry data © Crown copyright and database right 2026 under the Open Government Licence v3.0; the NSPL carries the OS and Royal Mail notices with ONS's OGL statement; the VOA, census and OBR inputs are OGL v3.0. +After derivation, `--property-localisation price_paid` (the default, atomic assignment only) runs the microcosm#1240 value and band nodes: every owner clone in England and Wales reads its `main_residence_value` off its assigned constituency's uprated Land Registry sale distribution at the household's weighted rank among its FRS region's owners (one keyed uniform per spine household, shared by all of its pool clones; high-value support copies take a keyed rank inside the top stratum), `property_wealth` moves by the same amount, and `council_tax_band` is drawn from the assigned LSOA's VOA band mix at the same uniform (owner-occupiers only: the mix counts every dwelling, so renters keep the spine's band). A Scottish owner clone draws its band the same way, at the same uniform, from its council area's chargeable dwellings by band, A to H, at September 2025 (Scottish Government CTAXBASE 2025, vendored from Chronicle into `uk/scotgov_chargeable_dwellings_by_band.json`; microcosm#1095 B12); Scottish renters and Northern Ireland keep the spine's band. The three resources default to the committed `uk/high_value_home_value_knots.json`, `uk/voa_council_tax_band_mix_lsoa.json` and `uk/scotgov_chargeable_dwellings_by_band.json`; `--price-paid-quantiles`, `--voa-band-mix` and `--scotgov-band-mix` name other bytes with `--price-paid-quantiles-sha256`, `--voa-band-mix-sha256` and `--scotgov-band-mix-sha256` pins, and a release candidate must build on the committed resources. `--property-localisation none` keeps the spine's values and bands on every clone, for measurement builds only; `--release-candidate` refuses it. The quantile draw is a typed artifact of the value node that the band node and `uk.full.pool` consume, so the checkpoint binds the draw and its resource digests. The high-value support copies are ranked beside their root, so the owner mass at or above the stratum stays the selected share. The knots and VOA resources and the derived stock carry the publishers' attribution statements (`licence` block): Price Paid and the UK HPI are HM Land Registry data © Crown copyright and database right 2026 under the Open Government Licence v3.0; the NSPL carries the OS and Royal Mail notices with ONS's OGL statement; the VOA, census and OBR inputs are OGL v3.0. After derivation, `--brma-localisation area` (the default, atomic assignment only) runs the microcosm#1262 node `uk.full.geography.brma`: every placed clone in Great Britain takes the Broad Rental Market Area of its assigned area from the committed `uk/brma_area_layer.json` (England and Wales by 2021 LSOA, Scotland by 2022 output area), so its BRMA, Local Housing Allowance rate, local authority and constituency describe one place. The spine's `frs_brma` stage draws a BRMA within the FRS region before any household has an area, so without the node every clone of a household keeps that one draw wherever it lands. Northern Ireland has no open BRMA geography and keeps the spine's draw; so does the national line, which has no areas. The node is deterministic, fails closed on an area the layer does not hold or places in another FRS region, and the terminal gate `uk_local_brma_enum_domain` rechecks the rewritten column against the engine's enum before export. `--brma-area-layer` names other layer bytes with a `--brma-area-layer-sha256` pin; a release candidate must build on the committed layer and refuses `--brma-localisation none`, which is for measurement builds only. `tools/build_uk_brma_area_layer.py` rebuilds the layer from Chronicle's raw registrations (population-weighted centroids in the VOA, Rent Officers Wales and Scottish Government polygons, Scotland corrected by Rent Service Scotland's postcode lookup) and the atomic supports. diff --git a/packages/microcosm-build/src/microcosm/build/source_manifest.py b/packages/microcosm-build/src/microcosm/build/source_manifest.py index 1b53fedbca..e595c63b26 100644 --- a/packages/microcosm-build/src/microcosm/build/source_manifest.py +++ b/packages/microcosm-build/src/microcosm/build/source_manifest.py @@ -48,6 +48,7 @@ "assign_binary_with_anchored_residual", "assign_badr_qualifying_gains", "assign_bus_use_incidence", + "assign_car_attributes_from_nts", "assign_bus_pass_eligibility", "assign_clipped_normal", "assign_component_take_up_residual", @@ -144,6 +145,7 @@ "fit_weighted_qrf_chain", "fit_weighted_qrf_stage1", "fit_weighted_qrf_stage2", + "floor_spi_employment_pay_at_minimum_wage", "fold_into", "gate_distributional_effective_mass", "gate_zero_weight_strata", @@ -193,6 +195,7 @@ "redraw_columns_from_fitted_qrf", "resample_band_donor_leaves", "restore_spi_channel_reports_from_source", + "restore_spi_channel_reports_from_source_within_earnings_limit", "zero_pension_age_reports_below_state_pension_age", "zero_spi_channel_reports", "redraw_spi_reported_uc", diff --git a/packages/microcosm-build/src/microcosm/build/spec_engine/schema/sources.schema.json b/packages/microcosm-build/src/microcosm/build/spec_engine/schema/sources.schema.json index 33993ae905..a90c41670d 100644 --- a/packages/microcosm-build/src/microcosm/build/spec_engine/schema/sources.schema.json +++ b/packages/microcosm-build/src/microcosm/build/spec_engine/schema/sources.schema.json @@ -68,6 +68,70 @@ } }, "$defs": { + "nts_cars": { + "type": "object", + "additionalProperties": false, + "required": [ + "survey_years", + "vehicle_types", + "private_keeper", + "company_keeper", + "weight", + "income_quintile", + "zero_emission_co2_bands", + "propulsion" + ], + "properties": { + "survey_years": { + "type": "array", + "minItems": 1, + "items": { + "type": "integer" + } + }, + "vehicle_types": { + "type": "array", + "minItems": 1, + "items": { + "type": "integer" + } + }, + "private_keeper": { + "type": "array", + "minItems": 1, + "items": { + "type": "integer" + } + }, + "company_keeper": { + "type": "array", + "minItems": 1, + "items": { + "type": "integer" + } + }, + "weight": { + "type": "string" + }, + "income_quintile": { + "type": "string" + }, + "zero_emission_co2_bands": { + "type": "array", + "minItems": 1, + "items": { + "type": "integer" + } + }, + "propulsion": { + "type": "object", + "minProperties": 1, + "additionalProperties": { + "type": "integer" + } + } + } + }, "stage_asset": { "type": "object", "additionalProperties": false, @@ -2285,6 +2349,30 @@ "below_age" ] }, + "non_parental_care_child": { + "type": "object", + "additionalProperties": false, + "properties": { + "child_codes": { + "type": "array", + "minItems": 1, + "items": { + "type": "integer" + } + }, + "parent_codes": { + "type": "array", + "minItems": 1, + "items": { + "type": "integer" + } + } + }, + "required": [ + "child_codes", + "parent_codes" + ] + }, "one_person_age_split": { "type": "integer", "minimum": 0 @@ -2359,6 +2447,7 @@ "family_link_codes", "dependent_child", "looked_after_child", + "non_parental_care_child", "one_person_age_split", "family_role_values", "household_type_values", @@ -7513,7 +7602,23 @@ "type": "string" }, "rate_rule": { - "const": "per_car_zero_emission_share" + "enum": [ + "per_car_zero_emission_share", + "per_car_zero_emission_share_by_income_quintile" + ] + }, + "nts_cars": { + "$ref": "#/$defs/nts_cars" + }, + "minimum_zero_emission_cars": { + "type": "integer", + "minimum": 1 + }, + "frame_income": { + "type": "string" + }, + "frame_equivalisation": { + "type": "string" }, "period_value": { "type": "integer" @@ -9810,6 +9915,58 @@ } } }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "kind", + "rows", + "columns", + "linkage", + "earnings", + "weekly_limit", + "hours", + "weekly_hours_limit", + "award", + "reason" + ], + "properties": { + "kind": { + "const": "restore_spi_channel_reports_from_source_within_earnings_limit" + }, + "rows": { + "type": "string" + }, + "columns": { + "type": "array", + "minItems": 1, + "items": { + "type": "string" + } + }, + "linkage": { + "type": "string" + }, + "earnings": { + "type": "string" + }, + "weekly_limit": { + "type": "string" + }, + "hours": { + "type": "string" + }, + "weekly_hours_limit": { + "type": "string" + }, + "award": { + "type": "string" + }, + "reason": { + "type": "string" + } + } + }, { "type": "object", "additionalProperties": false, @@ -9849,6 +10006,67 @@ } } }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "kind", + "column", + "hours_column", + "hours_basis", + "weeks_in_year", + "hourly_rate", + "employee_statuses", + "rows", + "pay_basis", + "reason", + "annual_income", + "receipt" + ], + "properties": { + "kind": { + "const": "floor_spi_employment_pay_at_minimum_wage" + }, + "column": { + "type": "string" + }, + "hours_column": { + "type": "string" + }, + "hours_basis": { + "type": "string" + }, + "weeks_in_year": { + "type": "number", + "exclusiveMinimum": 0 + }, + "hourly_rate": { + "type": "string" + }, + "employee_statuses": { + "type": "array", + "minItems": 1, + "items": { + "type": "string" + } + }, + "rows": { + "type": "string" + }, + "pay_basis": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "annual_income": { + "type": "string" + }, + "receipt": { + "type": "string" + } + } + }, { "type": "object", "additionalProperties": false, @@ -12547,6 +12765,45 @@ } } }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "kind", + "nts_cars", + "reference_date", + "oldest_age_years", + "default_engine_size_cc", + "seed", + "salt" + ], + "properties": { + "kind": { + "const": "assign_car_attributes_from_nts" + }, + "nts_cars": { + "$ref": "#/$defs/nts_cars" + }, + "reference_date": { + "type": "string", + "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$" + }, + "oldest_age_years": { + "type": "number", + "exclusiveMinimum": 18 + }, + "default_engine_size_cc": { + "type": "number", + "exclusiveMinimum": 0 + }, + "seed": { + "type": "integer" + }, + "salt": { + "type": "string" + } + } + }, { "type": "object", "additionalProperties": false, @@ -12596,6 +12853,12 @@ "items": { "type": "string" } + }, + "mix_rule": { + "const": "household_paid_litres" + }, + "nts_cars": { + "$ref": "#/$defs/nts_cars" } } }, diff --git a/packages/microcosm-build/src/microcosm/build/uk/calibration_measure_exclusions.json b/packages/microcosm-build/src/microcosm/build/uk/calibration_measure_exclusions.json index c51481ee28..2773bfc8d8 100644 --- a/packages/microcosm-build/src/microcosm/build/uk/calibration_measure_exclusions.json +++ b/packages/microcosm-build/src/microcosm/build/uk/calibration_measure_exclusions.json @@ -435,10 +435,10 @@ }, { "name": "obr.fuel_duties_cars", - "reason": "Scope and conversion residual once the stage sets household road fuel: OBR's cars receipts (GBP 14.4bn for FY2024-25, the April 2024 vehicle-type split) include car fuel paid by businesses, and ONS Consumer Trends 07.2.2 for CY2025 at DESNZ 2025 pump prices converts to about GBP 13.1bn of duty on the 30 September 2026 edition the feed carries, 9 percent below the OBR cars line (GBP 13.5bn and 7 percent on the June edition). With petrol plus diesel levelled to ONS 07.2.2 by the lcfs_consumption stage, the engine's 2025 fuel_duty read -9.9 percent against the row on its RAC price divisors (-8.1 percent on DESNZ's; policyengine-uk#2169 A), measured with the stage levelled to the June edition's 07.2.2 (the September edition's 2024 figure is 4.2 percent lower, GBP 35.460bn against GBP 37.025bn, so the next national re-measures it; Vahid's review of microcosm#1420). Binding it would pull weight toward fuel buyers to cover business use the household frame does not hold. Before the level step it read -34.5 percent at design weights and -17.7 percent calibrated on microcosm#1121's head, where the weights raised petrol 21 and diesel 34 percent from design to final. On the 2026-09-30 national problem the calibration with the four consumption-tax rows bound left petrol 18 and diesel 36 percent above a re-solve with the four consumption-tax rows masked together, in which the other 1,086 rows fitted no worse. Household road fuel is bound as ons.household_road_fuel_expenditure. Measured on every evaluation with tools/diagnose_uk_consumption_taxes.py; rebind if Microcosm comes to model business use of cars, which microcosm#1095 tracks.", + "reason": "Scope and conversion residual once the stage sets household road fuel: OBR's cars receipts (GBP 14.4bn for FY2024-25, the April 2024 vehicle-type split) include car fuel paid by businesses, and ONS Consumer Trends 07.2.2 for CY2025 at DESNZ 2025 pump prices converts to about GBP 13.1bn of duty on the 30 September 2026 edition the feed carries, 9 percent below the OBR cars line (GBP 13.5bn and 7 percent on the June edition). With petrol plus diesel levelled to ONS 07.2.2 by the lcfs_consumption stage, the engine's 2025 fuel_duty read -9.9 percent against the row on its RAC price divisors (-8.1 percent on DESNZ's; policyengine-uk#2169 A), measured with the stage levelled to the June edition's 07.2.2 (the September edition's 2024 figure is 4.2 percent lower, GBP 35.460bn against GBP 37.025bn, so the next national re-measures it; Vahid's review of microcosm#1420). Binding it would pull weight toward fuel buyers to cover business use the household frame does not hold. Before the level step it read -34.5 percent at design weights and -17.7 percent calibrated on microcosm#1121's head, where the weights raised petrol 21 and diesel 34 percent from design to final. On the 2026-09-30 national problem the calibration with the four consumption-tax rows bound left petrol 18 and diesel 36 percent above a re-solve with the four consumption-tax rows masked together, in which the other 1,086 rows fitted no worse. Household road fuel is bound as ons.household_road_fuel_expenditure. Since microcosm#1095 B3 (PR 2b) the stage levels petrol and diesel each to its share of household-paid spend, from the NTS 2022-2024 cars: about 94 percent of petrol and 89 percent of diesel car miles are household-paid (the private and commuting miles of household-kept cars; business miles and company cars are not), so business use of cars now sets the household fuel mix, while the level stays ONS's household one. The row stays held as a check on the conversion: binding it would repeat the household row (María's ruling of 2026-10-29). Measured on every evaluation with tools/diagnose_uk_consumption_taxes.py; rebinding it is her ruling, which microcosm#1095 tracks.", "tracking": "microcosm#1095", "approved_by": "juaristi22", - "adjudication": "María's approval of 2026-10-08 of the VAT, road fuel and domestic energy plan (microcosm#1113, microcosm#1123 item 3), decision D2, with the binding confirmed on 2026-10-09: the stage sets the household road-fuel level and incidence, and the household-scope ONS 07.2.2 row is bound in place of the OBR cars receipts, which include business fuel. The reason's figures were restated on 2026-10-11 after her review of PolicyEngine/microcosm#1167, which found bases mixed. Receipts: experiments/1113-consumption-tax-levels-receipts.md. Re-worded in microcosm#1420 by the PR C session (Claude, committing in María's name), pending her confirmation: a58bc1a42 restated the reason's ONS figures on the 30 September 2026 edition beside the June ones, and on 2026-10-29 the reason was made to say which edition the engine reads were measured on (Vahid's review finding 6). The ruling, binding the household road-fuel row in place of the cars receipts, is unchanged.", + "adjudication": "María's approval of 2026-10-08 of the VAT, road fuel and domestic energy plan (microcosm#1113, microcosm#1123 item 3), decision D2, with the binding confirmed on 2026-10-09: the stage sets the household road-fuel level and incidence, and the household-scope ONS 07.2.2 row is bound in place of the OBR cars receipts, which include business fuel. The reason's figures were restated on 2026-10-11 after her review of PolicyEngine/microcosm#1167, which found bases mixed. Receipts: experiments/1113-consumption-tax-levels-receipts.md. Re-worded in microcosm#1420 by the PR C session (Claude, committing in María's name), pending her confirmation: a58bc1a42 restated the reason's ONS figures on the 30 September 2026 edition beside the June ones, and on 2026-10-29 the reason was made to say which edition the engine reads were measured on (Vahid's review finding 6). The ruling, binding the household road-fuel row in place of the cars receipts, is unchanged. On 2026-11-03 the reason was restated with PR 2b's household-paid shares of car miles, as her ruling of 2026-10-29 on the plan for the next #1095 PR asked (the row stays held as a check on the conversion).", "approved_on": "2026-10-08", "expires_on": "2027-01-08" }, @@ -486,6 +486,24 @@ "adjudication": "María's ruling of 2026-10-29 on the plan for the next #1095 PR (microcosm#1095, item R4): bind Wales's SLC repayments, and hold Scotland's and Northern Ireland's until their plan thresholds are modelled for their borrowers.", "approved_on": "2026-10-29", "expires_on": "2027-01-29" + }, + { + "name": "hmrc.child_benefit.hicbc_liable_taxpayers", + "reason": "Diagnostic by design, not a weight question: HMRC's Table 16 counts the Self Assessment taxpayers liable to the High Income Child Benefit Charge and the charge's revenue, and the model's charge sits well above both. The gap is in who receives Child Benefit at high incomes (the SPI channel's high-income parents, microcosm#1288 item 10), so binding the row would pull weight off high-earning parents against the SPI income-band rows instead of fixing the data. HMRC's figure is also a floor: Self Assessment returns only, provisional for 2024-25, and from 2025-26 the charge can be paid through PAYE. Measured on every evaluation; bind only after the SPI channel's parents are reviewed.", + "tracking": "microcosm#1095", + "approved_by": "juaristi22", + "adjudication": "María's ruling of 2026-11-03 on #1426's Phase B (item B4, microcosm#1288 item 10): add HMRC's HICBC liability count and revenue as measured diagnostics first, using 2024-25's figures for the model's 2025.", + "approved_on": "2026-11-03", + "expires_on": "2027-02-03" + }, + { + "name": "hmrc.child_benefit.hicbc_revenue", + "reason": "Diagnostic by design, not a weight question: HMRC's Table 16 counts the Self Assessment taxpayers liable to the High Income Child Benefit Charge and the charge's revenue, and the model's charge sits well above both. The gap is in who receives Child Benefit at high incomes (the SPI channel's high-income parents, microcosm#1288 item 10), so binding the row would pull weight off high-earning parents against the SPI income-band rows instead of fixing the data. HMRC's figure is also a floor: Self Assessment returns only, provisional for 2024-25, and from 2025-26 the charge can be paid through PAYE. Measured on every evaluation; bind only after the SPI channel's parents are reviewed.", + "tracking": "microcosm#1095", + "approved_by": "juaristi22", + "adjudication": "María's ruling of 2026-11-03 on #1426's Phase B (item B4, microcosm#1288 item 10): add HMRC's HICBC liability count and revenue as measured diagnostics first, using 2024-25's figures for the model's 2025.", + "approved_on": "2026-11-03", + "expires_on": "2027-02-03" } ] } diff --git a/packages/microcosm-build/src/microcosm/build/uk/country_package.json b/packages/microcosm-build/src/microcosm/build/uk/country_package.json index c50932797c..2dee087e5d 100644 --- a/packages/microcosm-build/src/microcosm/build/uk/country_package.json +++ b/packages/microcosm-build/src/microcosm/build/uk/country_package.json @@ -112,6 +112,11 @@ "kind": "legacy_json", "schema_id": "legacy_json" }, + { + "path": "scotgov_chargeable_dwellings_by_band.json", + "kind": "legacy_json", + "schema_id": "legacy_json" + }, { "path": "dwp_move_to_uc_facts.json", "kind": "legacy_json", diff --git a/packages/microcosm-build/src/microcosm/build/uk/gates.json b/packages/microcosm-build/src/microcosm/build/uk/gates.json index 6bcfb151ec..72ebc0f495 100644 --- a/packages/microcosm-build/src/microcosm/build/uk/gates.json +++ b/packages/microcosm-build/src/microcosm/build/uk/gates.json @@ -596,6 +596,20 @@ }, "notes": "Stage-time SPI redraw identity gate over the HMRC SPI income spine receipt." }, + { + "id": "uk_stage_hmrc_spi_income_spine_hourly_pay", + "gate": "stage_health", + "phase": "transferred", + "criticality": "release_blocking", + "evidence_absent_blocks": true, + "population_fact_check": true, + "parameters": { + "stage": "hmrc_spi_income_spine", + "check": "spi_hourly_pay", + "maximum_share_above_frs": 0.02 + }, + "notes": "Stage-time hourly-pay check over the employment pay floor receipt (uk-data#629): no eligible drawn SPI employee keeps pay below its floor (its twin's hours at the lower of the minimum wage for its age and the twin's own hourly pay), and the drawn employees' weighted share below the minimum wage for their age after the floor is at most the FRS employees' own share plus maximum_share_above_frs. A withheld share (one or two source households on a side) is not judged. A synthetic smoke build records a failure without blocking on it (population_fact_check)." + }, { "id": "uk_stage_spi_benefit_coherence", "gate": "stage_health", @@ -606,7 +620,6 @@ "stage": "spi_benefit_coherence", "check": "spi_benefit_coherence", "zeroed_columns": [ - "jsa_contrib_reported", "jsa_income_reported", "esa_income_reported", "income_support_reported", @@ -621,9 +634,13 @@ "bsp_reported", "war_widows_pension_reported", "widowed_parents_allowance_reported" + ], + "restored_within_earnings_limit_columns": [ + "jsa_contrib_reported", + "esa_contrib_reported" ] }, - "notes": "Stage-time structural gate over the SPI benefit coherence receipt (microcosm#1095, uk-data#514): no SPI-channel row keeps a zeroed legacy report, every restored report equals the FRS twin's, receives_benefits_in_own_right agrees with each person's own reports, FRS rows are unchanged, every SPI benefit unit with a Universal Credit reporter claims, and no SPI unit outside the Universal Credit age population claims without reporting." + "notes": "Stage-time structural gate over the SPI benefit coherence receipt (microcosm#1095, uk-data#514): no SPI-channel row keeps a zeroed legacy report, every restored report equals the FRS twin's, contributory JSA and ESA follow the twin's within each benefit's own earnings and hours limits, JSA's award cut by the earnings above its disregard, and are nil outside them (B10, María's ruling of 29 October 2026; JSA's own limits from Vahid's review of microcosm#1426), receives_benefits_in_own_right agrees with each person's own reports, FRS rows are unchanged, every SPI benefit unit with a Universal Credit reporter claims, and no SPI unit outside the Universal Credit age population claims without reporting." }, { "id": "uk_stage_uc_take_up", @@ -635,9 +652,10 @@ "parameters": { "stage": "uc_take_up", "check": "uc_take_up", - "maximum_caseload_deviation": 0.055 + "maximum_caseload_deviation": 0.055, + "maximum_reachable_pool_deviation": 0.055 }, - "notes": "Stage-time gate over the Universal Credit take-up receipt (microcosm#1334): every reporter claims and no unit outside the draw changes; in each DWP family type the pools whose target is reachable realize DWP's calendar-2025 caseload within 0.055 of it at the stage's weights, Great Britain only, counting units the engine moves off their legacy benefits at their expected claim at the closure; and the family type's caseload is no further from DWP's than before the redraw, give or take 0.055 of DWP's count. The tolerance was 0.05 until microcosm#1418: routing gilt interest out of dividend_income reshuffles the SPI channel's draws. In the savings follow-up (microcosm#1428), small upstream changes moved single people's GBP 1,000 to 1,100 band into a pool whose DWP count exceeds its entitled units, and the family type's caseload ended 0.0568, then 0.0674, of DWP's count further from it than before the redraw. The stage now joins a pool that cannot meet its count to the adjacent pool with more room for its gap, so a family type's caseload lands on DWP's wherever its entitled units allow, and the tolerance stays at 0.055 (María's ruling of 2026-10-31). The terminal take-up signal gate no longer measures would_claim_uc, whose rate is now set by award band and family type, not as one share of the age population." + "notes": "Stage-time gate over the Universal Credit take-up receipt (microcosm#1334): every reporter claims and no unit outside the draw changes; in each DWP family type the pools whose target is reachable realize DWP's calendar-2025 caseload within 0.055 of it at the stage's weights (maximum_reachable_pool_deviation), Great Britain only, counting units the engine moves off their legacy benefits at their expected claim at the closure; and the family type's caseload is no further from DWP's than before the redraw, give or take 0.055 of DWP's count (maximum_caseload_deviation). The tolerance was 0.05 until microcosm#1418: routing gilt interest out of dividend_income reshuffles the SPI channel's draws. In the savings follow-up (microcosm#1428), small upstream changes moved single people's GBP 1,000 to 1,100 band into a pool whose DWP count exceeds its entitled units, and the family type's caseload ended 0.0568, then 0.0674, of DWP's count further from it than before the redraw. The stage now joins a pool that cannot meet its count to the adjacent pool with more room for its gap, so a family type's caseload lands on DWP's wherever its entitled units allow, and the tolerance stays at 0.055 (María's ruling of 2026-10-31). The SPI employment pay floor (uk-data#629) moves single people's caseload before the redraw close to DWP's; before the pool joining, the redraw's usual downward move then read as about twice 0.055 of DWP's count, so maximum_caseload_deviation was 0.12 from María's ruling of 2026-10-29. With the pool joining every family type ends closer to DWP's count after the redraw than before it (the T1426 spine, #1426 at 97fd4d0e4), so it is 0.055 again (María's ruling of 2026-11-02). It holds on t1426m (#1426 at 2b49a00ac), the spine on the current base, where single people, the family type that moves least, end 0.016 of DWP's count closer than before the redraw. The terminal take-up signal gate no longer measures would_claim_uc, whose rate is now set by award band and family type, not as one share of the age population." }, { "id": "uk_stage_pension_credit_take_up", @@ -1376,6 +1394,11 @@ "person.company_car_electric_range", "person.company_car_capital_contributions", "person.company_car_private_fuel_provided", + "person.car_fuel_type", + "person.car_co2_emissions", + "person.car_engine_size", + "person.car_first_registration_date", + "person.car_is_ved_exempt", "person.individual_savings_account_interest_income", "person.local_bus_single_fare_share", "person.local_bus_trips", @@ -1413,6 +1436,7 @@ "person.uc_is_in_startup_period", "person.uc_is_in_gainful_self_employment", "person.is_looked_after_by_local_authority", + "person.child_limit_non_parental_caring_exception", "person.would_claim_carers_allowance", "person.would_claim_marriage_allowance", "person.would_claim_scp", diff --git a/packages/microcosm-build/src/microcosm/build/uk/ledger_compile_parity_incumbent_2025_signed_differences.json b/packages/microcosm-build/src/microcosm/build/uk/ledger_compile_parity_incumbent_2025_signed_differences.json index b088b6a9b2..b647f06583 100644 --- a/packages/microcosm-build/src/microcosm/build/uk/ledger_compile_parity_incumbent_2025_signed_differences.json +++ b/packages/microcosm-build/src/microcosm/build/uk/ledger_compile_parity_incumbent_2025_signed_differences.json @@ -1,11 +1,11 @@ { - "compiled_count": 1418, + "compiled_count": 1420, "counts_by_kind": { "calibration_drift": 566, "fixture_only": 42, - "ledger_only": 823 + "ledger_only": 825 }, - "difference_count": 1431, + "difference_count": 1433, "differences": [ { "fixture_value": 1608000.0, @@ -1883,6 +1883,20 @@ "period": 2025, "reason": "Ledger-compiled row has no fixture counterpart at this comparison period." }, + { + "kind": "ledger_only", + "ledger_value": 310000.0, + "name": "hmrc.child_benefit.hicbc_liable_taxpayers", + "period": 2025, + "reason": "Ledger-compiled row has no fixture counterpart at this comparison period." + }, + { + "kind": "ledger_only", + "ledger_value": 360000000.0, + "name": "hmrc.child_benefit.hicbc_revenue", + "period": 2025, + "reason": "Ledger-compiled row has no fixture counterpart at this comparison period." + }, { "kind": "ledger_only", "ledger_value": 15500.0, diff --git a/packages/microcosm-build/src/microcosm/build/uk/ledger_fact_vendor_selections.json b/packages/microcosm-build/src/microcosm/build/uk/ledger_fact_vendor_selections.json index 5a6e274e4a..6e1c6e15bc 100644 --- a/packages/microcosm-build/src/microcosm/build/uk/ledger_fact_vendor_selections.json +++ b/packages/microcosm-build/src/microcosm/build/uk/ledger_fact_vendor_selections.json @@ -1919,6 +1919,40 @@ "expected_row_count": 26 } ] + }, + { + "resource": "scotgov_chargeable_dwellings_by_band.json", + "purpose": "The Scottish Government's chargeable dwellings by council-tax band, A to H, for each of the 32 council areas at September 2025 (CTAXBASE 2025). Consumed by the post-geography band node, which draws each Scottish owner clone's band from its council area's mix at the clone's rank among Scotland's owners (microcosm#1095 B12).", + "consumers": [ + "uk_runtime.property_localisation" + ], + "planned_consumers": [], + "selections": [ + { + "label": "ctaxbase_2025_chargeable_dwellings_by_band", + "selector": { + "source_name": "scotgov", + "source_concept": [ + "scotgov.chargeable_dwellings_band_a", + "scotgov.chargeable_dwellings_band_b", + "scotgov.chargeable_dwellings_band_c", + "scotgov.chargeable_dwellings_band_d", + "scotgov.chargeable_dwellings_band_e", + "scotgov.chargeable_dwellings_band_f", + "scotgov.chargeable_dwellings_band_g", + "scotgov.chargeable_dwellings_band_h" + ], + "period_type": "month", + "period_value": [ + "2025-09" + ], + "geography_level": [ + "local_authority" + ] + }, + "expected_row_count": 256 + } + ] } ] } diff --git a/packages/microcosm-build/src/microcosm/build/uk/release_input_coverage_manifest.json b/packages/microcosm-build/src/microcosm/build/uk/release_input_coverage_manifest.json index 650d711cb4..7cd89be45d 100644 --- a/packages/microcosm-build/src/microcosm/build/uk/release_input_coverage_manifest.json +++ b/packages/microcosm-build/src/microcosm/build/uk/release_input_coverage_manifest.json @@ -472,7 +472,7 @@ "required_mass_change_reason": "Capital-gains incidence anchor moves the mass of non-liable clone households back to their paired originals until the sub-exempt and loss-making clone mass match the Advani-Summers reporter composition at the redrawn liable mass; every pair's mass and the total household mass are conserved.", "rewrites": [], "source_manifest": "source_stages.json", - "source_manifest_sha256": "fbf236daef5f947a0123e258812f9b111c5d18a8f2d839c87abb4dce9c17cdda", + "source_manifest_sha256": "7763a7490b0ea61a4ce2887e062cbdeb29309881fe6ce52bb7c01334ee49fbce", "source_vintages": { "source": "Advani and Summers (2020), Capital Gains and UK Inequality, CAGE Working Paper 465", "survey": "Family Resources Survey 2024-25, SPI synthetic support, the HMRC Table 3 redrawn gains on the spine and Advani-Summers capital-gains incidence" @@ -495,7 +495,7 @@ "capital_gains" ], "source_manifest": "source_stages.json", - "source_manifest_sha256": "fbf236daef5f947a0123e258812f9b111c5d18a8f2d839c87abb4dce9c17cdda", + "source_manifest_sha256": "7763a7490b0ea61a4ce2887e062cbdeb29309881fe6ce52bb7c01334ee49fbce", "source_vintages": { "source": "Advani and Summers (2020), Capital Gains and UK Inequality, CAGE Working Paper 465", "survey": "Family Resources Survey 2024-25, SPI synthetic support, and Advani-Summers capital-gains incidence" @@ -518,7 +518,7 @@ "required_mass_change_reason": "Capital-gains residential split divides every household carrying liable gainers into arms weighted by the solved residential probabilities, one arm per subset of residential gainers; every household's mass and the total household mass are conserved.", "rewrites": [], "source_manifest": "source_stages.json", - "source_manifest_sha256": "fbf236daef5f947a0123e258812f9b111c5d18a8f2d839c87abb4dce9c17cdda", + "source_manifest_sha256": "7763a7490b0ea61a4ce2887e062cbdeb29309881fe6ce52bb7c01334ee49fbce", "source_vintages": { "source": "https://www.gov.uk/government/statistics/capital-gains-tax-statistics", "survey": "HMRC Capital Gains Tax statistics 2026 release, Table 8 (UK residential property disposals, 2024-25, administrative) on the amounts the Table 3 redraw placed" @@ -540,7 +540,7 @@ "required_mass_change_reason": "Capital-gains support split divides the wealthiest households of each HMRC Table 3 income band into light copies at equal weight; every household's mass and the total household mass are conserved.", "rewrites": [], "source_manifest": "source_stages.json", - "source_manifest_sha256": "fbf236daef5f947a0123e258812f9b111c5d18a8f2d839c87abb4dce9c17cdda", + "source_manifest_sha256": "7763a7490b0ea61a4ce2887e062cbdeb29309881fe6ce52bb7c01334ee49fbce", "source_vintages": { "source": "HMRC Capital Gains Tax statistics, July 2026 release, Table 3 for 2024-25, via the vendored conditioning facts", "survey": "Family Resources Survey 2024-25, SPI synthetic support and HMRC Capital Gains Tax statistics Table 3 (2024-25 individuals by size of gain and taxable income)" @@ -570,7 +570,7 @@ "uc_is_in_gainful_self_employment" ], "source_manifest": "source_stages.json", - "source_manifest_sha256": "fbf236daef5f947a0123e258812f9b111c5d18a8f2d839c87abb4dce9c17cdda", + "source_manifest_sha256": "7763a7490b0ea61a4ce2887e062cbdeb29309881fe6ce52bb7c01334ee49fbce", "source_vintages": { "source": "The FRS job record's company car answers through frs_spine's carriers (EXPBEN01, EXPBEN03, CARVAL, FUELTYP, CARCON, CARAMT), WAS round-8 company cars' list prices, and HMRC's 2024-25 company car recipients by CO2 band (Table 2A) and fuel (Table 2C), via the vendored facts", "survey": "Family Resources Survey 2024-25 job record; Wealth and Assets Survey round 8; HMRC Benefits in kind statistics (July 2026)" @@ -599,7 +599,7 @@ "required_mass_change_reason": "ETB public-services imputation on the source spine: household weights pass through unchanged and total household mass is conserved.", "rewrites": [], "source_manifest": "source_stages.json", - "source_manifest_sha256": "fbf236daef5f947a0123e258812f9b111c5d18a8f2d839c87abb4dce9c17cdda", + "source_manifest_sha256": "7763a7490b0ea61a4ce2887e062cbdeb29309881fe6ce52bb7c01334ee49fbce", "source_vintages": { "source": "UK Data Service SN 8856 Effects of Taxes and Benefits household tab, DfT rail fare index, and public NHS activity/cost table.", "survey": "Effects of Taxes and Benefits 1977-2024 and NHS age-gender public table" @@ -619,7 +619,7 @@ "required_mass_change_reason": "ETB VAT expenditure-rate imputation on the source spine: household weights pass through unchanged and total household mass is conserved.", "rewrites": [], "source_manifest": "source_stages.json", - "source_manifest_sha256": "fbf236daef5f947a0123e258812f9b111c5d18a8f2d839c87abb4dce9c17cdda", + "source_manifest_sha256": "7763a7490b0ea61a4ce2887e062cbdeb29309881fe6ce52bb7c01334ee49fbce", "source_vintages": { "source": "UK Data Service SN 8856 Effects of Taxes and Benefits household tab and cited VAT anchor resource.", "survey": "Effects of Taxes and Benefits 1977-2024" @@ -641,7 +641,7 @@ "required_mass_change_reason": "High-value home support divides every owner household in the top value stratum of its region into light copies at equal weight; every household's mass and the total household mass are conserved.", "rewrites": [], "source_manifest": "source_stages.json", - "source_manifest_sha256": "fbf236daef5f947a0123e258812f9b111c5d18a8f2d839c87abb4dce9c17cdda", + "source_manifest_sha256": "7763a7490b0ea61a4ce2887e062cbdeb29309881fe6ce52bb7c01334ee49fbce", "source_vintages": { "source": "Microcosm structural operator (microcosm#1240 fix 1); no publisher input", "survey": "Family Resources Survey 2024-25 and SPI synthetic support, after the WAS wealth draw and the regional property uprating" @@ -662,7 +662,7 @@ "required_mass_change_reason": "CGT asset-type assignment on the source spine: household weights pass through unchanged and total household mass is conserved.", "rewrites": [], "source_manifest": "source_stages.json", - "source_manifest_sha256": "fbf236daef5f947a0123e258812f9b111c5d18a8f2d839c87abb4dce9c17cdda", + "source_manifest_sha256": "7763a7490b0ea61a4ce2887e062cbdeb29309881fe6ce52bb7c01334ee49fbce", "source_vintages": { "source": "https://www.gov.uk/government/statistics/capital-gains-tax-statistics", "survey": "HMRC Capital Gains Tax statistics 2026 release, Table 8 (UK residential property disposals, 2024-25, administrative), Table 4.1 (individuals claiming Business Asset Disposal Relief or Investors' Relief by band of qualifying gain, 2024-25, administrative) and Table 7 (disposals, proceeds and gains by asset type, 2023-24, sample-based), vendored from the pinned Chronicle feed" @@ -686,7 +686,7 @@ "capital_gains" ], "source_manifest": "source_stages.json", - "source_manifest_sha256": "fbf236daef5f947a0123e258812f9b111c5d18a8f2d839c87abb4dce9c17cdda", + "source_manifest_sha256": "7763a7490b0ea61a4ce2887e062cbdeb29309881fe6ce52bb7c01334ee49fbce", "source_vintages": { "conditioning_resource": "hmrc_cgt_conditioning_facts.json", "conditioning_resource_sha256": "6a2ba5e3e43c6d7936416552aadc716729b902dcac24b97093ae8ccf06cf8a8f", @@ -776,7 +776,7 @@ "full_frs_tei_band_unavailable" ], "source_manifest": "source_stages.json", - "source_manifest_sha256": "fbf236daef5f947a0123e258812f9b111c5d18a8f2d839c87abb4dce9c17cdda", + "source_manifest_sha256": "7763a7490b0ea61a4ce2887e062cbdeb29309881fe6ce52bb7c01334ee49fbce", "source_vintages": { "hmrc_surface": "2023-24", "mapped_build_period": "2024", @@ -803,7 +803,7 @@ "required_mass_change_reason": "ISA subscriptions per adult from HMRC's ISA tables on the source spine: household weights pass through unchanged and total household mass is conserved.", "rewrites": [], "source_manifest": "source_stages.json", - "source_manifest_sha256": "fbf236daef5f947a0123e258812f9b111c5d18a8f2d839c87abb4dce9c17cdda", + "source_manifest_sha256": "7763a7490b0ea61a4ce2887e062cbdeb29309881fe6ce52bb7c01334ee49fbce", "source_vintages": { "source": "HMRC Individual Savings Account statistics Tables 9.4, 9.6 and 9.7 to 9.9, the cash ISA limit reduction impact note and Lifetime ISA Table 1a, via the vendored facts; Office for National Statistics Wealth and Assets Survey, UK Data Service SN 7215, DOI 10.5255/UKDA-SN-7215-20; local licensed round-8 person and household tabs (interviews April 2020 to March 2022, Great Britain).", "survey": "HMRC Annual savings statistics (September 2026 release); Wealth and Assets Survey round 8" @@ -863,14 +863,19 @@ "remote_uk_horseracing_betting_net_losses", "remote_other_betting_net_losses", "betting_exchange_commission", - "horse_and_dog_pool_betting_net_losses" + "horse_and_dog_pool_betting_net_losses", + "car_fuel_type", + "car_co2_emissions", + "car_engine_size", + "car_first_registration_date", + "car_is_ved_exempt" ], "required_mass_change_reason": "LCFS consumption imputation on the source spine: household weights pass through unchanged and total household mass is conserved.", "rewrites": [], "source_manifest": "source_stages.json", - "source_manifest_sha256": "fbf236daef5f947a0123e258812f9b111c5d18a8f2d839c87abb4dce9c17cdda", + "source_manifest_sha256": "7763a7490b0ea61a4ce2887e062cbdeb29309881fe6ce52bb7c01334ee49fbce", "source_vintages": { - "source": "UK Data Service SN 9603 Living Costs and Food Survey 2024-25 (2nd edition) household/person tabs and the vendored Chronicle facts for NEED 2024 mean kWh, DESNZ Energy Trends and QEP average prices paid for calendar 2024, road-fuel outturn (DESNZ, HMRC, ONS Consumer Trends) and road fuel by vehicle type (DESNZ), ONS Consumer Trends household spending by COICOP division, the DfT VEH1103 licensed-car stock, NTS bus use, and the DfT and devolved bus finance tables and fares indices.", + "source": "UK Data Service SN 9603 Living Costs and Food Survey 2024-25 (2nd edition) household/person tabs and the vendored Chronicle facts for NEED 2024 mean kWh, DESNZ Energy Trends and QEP average prices paid for calendar 2024, road-fuel outturn (DESNZ, HMRC, ONS Consumer Trends) and road fuel by vehicle type (DESNZ), ONS Consumer Trends household spending by COICOP division, the DfT VEH1103 licensed-car stock, NTS bus use, the NTS private cars (UK Data Service SN 5340, End User Licence; the vehicle and household tabs, survey years 2022-2024) for the zero-emission share by income fifth and the household-paid road-fuel mix, and the DfT and devolved bus finance tables and fares indices.", "survey": "Living Costs and Food Survey 2024-25" }, "stage": "lcfs_consumption", @@ -894,7 +899,7 @@ "required_mass_change_reason": "NTS bus-travel imputation on the source spine: household weights pass through unchanged and total household mass is conserved.", "rewrites": [], "source_manifest": "source_stages.json", - "source_manifest_sha256": "fbf236daef5f947a0123e258812f9b111c5d18a8f2d839c87abb4dce9c17cdda", + "source_manifest_sha256": "7763a7490b0ea61a4ce2887e062cbdeb29309881fe6ce52bb7c01334ee49fbce", "source_vintages": { "source": "Department for Transport National Travel Survey, UK Data Service SN 5340 (End User Licence, 19th edition, November 2025), DOI 10.5255/UKDA-SN-5340-19; local licensed tab files (household, individual, trip); England residents only from 2013.", "survey": "National Travel Survey 2002-2024" @@ -914,7 +919,7 @@ "required_mass_change_reason": "Private-school attendance stored on the source spine: household weights pass through unchanged and total household mass is conserved.", "rewrites": [], "source_manifest": "source_stages.json", - "source_manifest_sha256": "fbf236daef5f947a0123e258812f9b111c5d18a8f2d839c87abb4dce9c17cdda", + "source_manifest_sha256": "7763a7490b0ea61a4ce2887e062cbdeb29309881fe6ce52bb7c01334ee49fbce", "source_vintages": { "source": "policyengine-uk attends_private_school (the gov.simulation.private_school_vat attendance rates and factor), evaluated by the pinned engine", "survey": "policyengine-uk private-school attendance imputation, stored at the spine's weights" @@ -937,7 +942,7 @@ "property_finance_costs" ], "source_manifest": "source_stages.json", - "source_manifest_sha256": "fbf236daef5f947a0123e258812f9b111c5d18a8f2d839c87abb4dce9c17cdda", + "source_manifest_sha256": "7763a7490b0ea61a4ce2887e062cbdeb29309881fe6ce52bb7c01334ee49fbce", "source_vintages": { "source": "https://www.gov.uk/government/statistics/property-rental-income-statistics", "survey": "Survey of Personal Incomes Public Use Tape 2022-23 and HMRC Property Rental Income Statistics 2026 (tax year 2024-25)" @@ -958,7 +963,7 @@ "required_mass_change_reason": "Annual property purchases imputed on the source spine: household weights pass through unchanged and total household mass is conserved.", "rewrites": [], "source_manifest": "source_stages.json", - "source_manifest_sha256": "fbf236daef5f947a0123e258812f9b111c5d18a8f2d839c87abb4dce9c17cdda", + "source_manifest_sha256": "7763a7490b0ea61a4ce2887e062cbdeb29309881fe6ce52bb7c01334ee49fbce", "source_vintages": { "source": "https://www.gov.uk/government/statistics/uk-stamp-tax-statistics", "survey": "HMRC Annual Stamp Tax Statistics 2024 to 2025 (corrected 11 March 2026), Tables 6b, 8a and 8b" @@ -981,7 +986,7 @@ "property_wealth" ], "source_manifest": "source_stages.json", - "source_manifest_sha256": "fbf236daef5f947a0123e258812f9b111c5d18a8f2d839c87abb4dce9c17cdda", + "source_manifest_sha256": "7763a7490b0ea61a4ce2887e062cbdeb29309881fe6ce52bb7c01334ee49fbce", "source_vintages": { "source": "uk/high_value_home_value_knots.json, built by tools/build_uk_high_value_home_stock.py from PolicyEngine/chronicle#343's registrations", "survey": "HM Land Registry Price Paid latest sales uprated with the UK House Price Index, owner-weighted by region (the dense value node's knots, region level)" @@ -1005,7 +1010,7 @@ "non_residential_property_value" ], "source_manifest": "source_stages.json", - "source_manifest_sha256": "fbf236daef5f947a0123e258812f9b111c5d18a8f2d839c87abb4dce9c17cdda", + "source_manifest_sha256": "7763a7490b0ea61a4ce2887e062cbdeb29309881fe6ce52bb7c01334ee49fbce", "source_vintages": { "source": "MHCLG dwellings and the UK House Price Index regional average price averaged over the twelve months of calendar 2024 from the July 2026 full file, the frame's valuation basis, so the engine's annual uprating from 2024 projects the value once (microcosm#1240 fix 5).", "survey": "Public regional property reference" @@ -1033,7 +1038,7 @@ "employment_income" ], "source_manifest": "source_stages.json", - "source_manifest_sha256": "fbf236daef5f947a0123e258812f9b111c5d18a8f2d839c87abb4dce9c17cdda", + "source_manifest_sha256": "7763a7490b0ea61a4ce2887e062cbdeb29309881fe6ce52bb7c01334ee49fbce", "source_vintages": { "source": "HMRC, Salary sacrifice reform for pension contributions effective from 6 April 2029", "survey": "Family Resources Survey 2024-25 salary-sacrifice respondents and HMRC salary-sacrifice reform analysis" @@ -1066,7 +1071,7 @@ "household_source_id" ], "source_manifest": "source_stages.json", - "source_manifest_sha256": "fbf236daef5f947a0123e258812f9b111c5d18a8f2d839c87abb4dce9c17cdda", + "source_manifest_sha256": "7763a7490b0ea61a4ce2887e062cbdeb29309881fe6ce52bb7c01334ee49fbce", "source_vintages": { "source": "Reserved SPI support households for the HMRC Table 2.5 total-income bands from GBP 200,000, stacked at the published band taxpayer count over the donors per band (PolicyEngine/chronicle#280 lane).", "survey": "Survey of Personal Incomes Public Use Tape 2022-23 and HMRC Income Tax liabilities statistics July 2026 Table 2.5" @@ -1083,12 +1088,13 @@ "outputs": [ "student_loan_plan" ], - "required_mass_change_reason": "Student-loan plan assignment writes an enum column only; household rows and typed household weights pass through and total household mass is conserved.", + "required_mass_change_reason": "Student-loan plan assignment writes the plan and re-splits each household's student-loan balance among its members; household rows and typed household weights pass through and total household mass is conserved.", "rewrites": [ - "student_loan_plan" + "student_loan_plan", + "student_loan_balance" ], "source_manifest": "source_stages.json", - "source_manifest_sha256": "fbf236daef5f947a0123e258812f9b111c5d18a8f2d839c87abb4dce9c17cdda", + "source_manifest_sha256": "7763a7490b0ea61a4ce2887e062cbdeb29309881fe6ce52bb7c01334ee49fbce", "source_vintages": { "source": "Explore Education Statistics Table 6a, Higher education total", "survey": "Family Resources Survey 2024-25 and Student Loans Company borrower forecasts for England" @@ -1108,7 +1114,7 @@ "required_mass_change_reason": "Self-employed gross receipts stored on the source spine: household weights pass through unchanged and total household mass is conserved.", "rewrites": [], "source_manifest": "source_stages.json", - "source_manifest_sha256": "fbf236daef5f947a0123e258812f9b111c5d18a8f2d839c87abb4dce9c17cdda", + "source_manifest_sha256": "7763a7490b0ea61a4ce2887e062cbdeb29309881fe6ce52bb7c01334ee49fbce", "source_vintages": { "source": "self_employment_income after the SPI income stage; HMRC's published gainers of the raise to GBP 3,000, about 400,000 taxpayers with a lower bill by about GBP 380 on average", "survey": "The self-employed's own profit on the final spine, and HMRC's policy paper on the Budget 2026 trading allowance raise (calibration)" @@ -1130,7 +1136,7 @@ "required_mass_change_reason": "WAS Lifetime ISA imputation on the source spine: household weights pass through unchanged and total household mass is conserved.", "rewrites": [], "source_manifest": "source_stages.json", - "source_manifest_sha256": "fbf236daef5f947a0123e258812f9b111c5d18a8f2d839c87abb4dce9c17cdda", + "source_manifest_sha256": "7763a7490b0ea61a4ce2887e062cbdeb29309881fe6ce52bb7c01334ee49fbce", "source_vintages": { "source": "Office for National Statistics Wealth and Assets Survey, UK Data Service SN 7215, DOI 10.5255/UKDA-SN-7215-20; local licensed round-8 person and household tabs (interviews April 2020 to March 2022, Great Britain).", "survey": "Wealth and Assets Survey round 8" @@ -1169,7 +1175,7 @@ "required_mass_change_reason": "WAS wealth imputation on the source spine: household weights pass through unchanged and total household mass is conserved.", "rewrites": [], "source_manifest": "source_stages.json", - "source_manifest_sha256": "fbf236daef5f947a0123e258812f9b111c5d18a8f2d839c87abb4dce9c17cdda", + "source_manifest_sha256": "7763a7490b0ea61a4ce2887e062cbdeb29309881fe6ce52bb7c01334ee49fbce", "source_vintages": { "source": "Office for National Statistics Wealth and Assets Survey, UK Data Service SN 7215, DOI 10.5255/UKDA-SN-7215-20; local licensed 2006-22 household tab.", "survey": "Wealth and Assets Survey round 8" diff --git a/packages/microcosm-build/src/microcosm/build/uk/scotgov_chargeable_dwellings_by_band.json b/packages/microcosm-build/src/microcosm/build/uk/scotgov_chargeable_dwellings_by_band.json new file mode 100644 index 0000000000..9b0fe87973 --- /dev/null +++ b/packages/microcosm-build/src/microcosm/build/uk/scotgov_chargeable_dwellings_by_band.json @@ -0,0 +1,11062 @@ +{ + "schema_version": 1, + "country": "uk", + "kind": "uk_vendored_ledger_facts", + "resource": "scotgov_chargeable_dwellings_by_band.json", + "purpose": "The Scottish Government's chargeable dwellings by council-tax band, A to H, for each of the 32 council areas at September 2025 (CTAXBASE 2025). Consumed by the post-geography band node, which draws each Scottish owner clone's band from its council area's mix at the clone's rank among Scotland's owners (microcosm#1095 B12).", + "consumers": [ + "uk_runtime.property_localisation" + ], + "planned_consumers": [], + "policy": "Rows are copied verbatim from the pinned Chronicle consumer feed named in source_fact_feed; every value is a publisher-stated fact. Consumers declare their own arithmetic on these rows and never edit this file by hand: regenerate it with tools/vendor_uk_ledger_facts.py.", + "generator": { + "tool": "tools/vendor_uk_ledger_facts.py", + "version": 1 + }, + "source_fact_feed": { + "source_repo": "PolicyEngine/chronicle", + "source_commit": "08962f1b893fc1ba3b7bdd3d800c7e867318951a", + "build": "build-bundle --suite uk -> build-consumer-artifact", + "artifact_schema_version": "policyengine_ledger.consumer_artifact.v2", + "fact_row_count": 1512256, + "facts_sha256": "11b20b4333270e269a5cbfe6302eb4986851990b340ef02d948eb71d62c12d5c", + "manifest_sha256": "96faf0e33686682cf37e8fa9511727571b3f8221f15bbc21591b799af87de722" + }, + "selections": [ + { + "label": "ctaxbase_2025_chargeable_dwellings_by_band", + "selector": { + "source_name": "scotgov", + "source_concept": [ + "scotgov.chargeable_dwellings_band_a", + "scotgov.chargeable_dwellings_band_b", + "scotgov.chargeable_dwellings_band_c", + "scotgov.chargeable_dwellings_band_d", + "scotgov.chargeable_dwellings_band_e", + "scotgov.chargeable_dwellings_band_f", + "scotgov.chargeable_dwellings_band_g", + "scotgov.chargeable_dwellings_band_h" + ], + "period_type": "month", + "period_value": [ + "2025-09" + ], + "geography_level": [ + "local_authority" + ] + }, + "row_count": 256 + } + ], + "row_count": 256, + "rows": [ + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_a64c3ca533b6a878f23d0e1d", + "semantic_fact_key": "ledger_semantic_fact_v2_a896f31eee2b0eb8ffbfdec3", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000005.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000005", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000005", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 5931 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_e556016c6d8e9360bd10d828", + "semantic_fact_key": "ledger_semantic_fact_v2_c6d0c9476882f26b230033da", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000006.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000006", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000006", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 10409 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_f98a8228005a13edcfc86d22", + "semantic_fact_key": "ledger_semantic_fact_v2_6006109bea6dba825ace8df6", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000008.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000008", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000008", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 24798 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_d849708084a434e7bf4d182a", + "semantic_fact_key": "ledger_semantic_fact_v2_1e443651dd0f9721706888e5", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000010.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000010", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000010", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 1113 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_8d9525de5a3a231681840271", + "semantic_fact_key": "ledger_semantic_fact_v2_1bf06dd518e76bbc38c13453", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000011.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000011", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000011", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 1202 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_cb7ab41a87525e05b39a19f7", + "semantic_fact_key": "ledger_semantic_fact_v2_07d65fe47f83c66e30abf997", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000013.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000013", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000013", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 4568 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_dd04f8e79a7f1164b5786530", + "semantic_fact_key": "ledger_semantic_fact_v2_428b2af2b3e7b9800b225cd9", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000014.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000014", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000014", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 21249 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_143acf966e4c6cb88e475f30", + "semantic_fact_key": "ledger_semantic_fact_v2_05cbfa82f6a0e34164fd182a", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000017.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000017", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000017", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 18253 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_5b03e8f9070ed59eb5785f31", + "semantic_fact_key": "ledger_semantic_fact_v2_99d957e96145683da19a4df4", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000018.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000018", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000018", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 17422 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_816688acc16e196f36823136", + "semantic_fact_key": "ledger_semantic_fact_v2_78742f809bd9505c11d38949", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000019.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000019", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000019", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 919 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_5b1d18ea1a5e5d7b0036b12c", + "semantic_fact_key": "ledger_semantic_fact_v2_1139da4496afd1761b0dea74", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000020.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000020", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000020", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 11189 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_6a30096f919c3fa8664d8f38", + "semantic_fact_key": "ledger_semantic_fact_v2_92af905ba6b5d2bea544ad66", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000021.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000021", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000021", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 20491 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_b366d7ea83a53e6360021b07", + "semantic_fact_key": "ledger_semantic_fact_v2_07a79ef969711e6a96201b74", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000023.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000023", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000023", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 2106 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_e3c9618a55c1e2895d24a7ed", + "semantic_fact_key": "ledger_semantic_fact_v2_30217cb38e21dfd5a36b699d", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000026.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000026", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000026", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 15664 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_7ee9c614b2e2c3c97e90f354", + "semantic_fact_key": "ledger_semantic_fact_v2_10c7880fa3b50a63ff88e4d6", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000027.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000027", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000027", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 2848 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_cfd4e954e43d216a1fb0cfca", + "semantic_fact_key": "ledger_semantic_fact_v2_6e23e69a137c7cd06c27d675", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000028.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000028", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000028", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 6684 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_d546b229d3e49135c4615308", + "semantic_fact_key": "ledger_semantic_fact_v2_935b6c507c6b2a375c2520b4", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000029.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000029", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000029", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 34485 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_f203c4502e2941cdb9544bf2", + "semantic_fact_key": "ledger_semantic_fact_v2_f68bd4908392b3c1d69830f5", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000030.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000030", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000030", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 5336 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_88044d8c295d2bdd39e108d2", + "semantic_fact_key": "ledger_semantic_fact_v2_872896b90dadbbe1b4cf192d", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000033.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000033", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000033", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 20080 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_9b0a276c43d6df5390bb98aa", + "semantic_fact_key": "ledger_semantic_fact_v2_b4b2c848f41439606052c9cd", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000034.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000034", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000034", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 19137 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_bca73ea29656583387ee300e", + "semantic_fact_key": "ledger_semantic_fact_v2_e08c77c00e9913f57074e87a", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000035.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000035", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000035", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 7079 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_53ed32fe4e7c3b7966d2c8a0", + "semantic_fact_key": "ledger_semantic_fact_v2_e7e409e99daef79dcefc60ce", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000036.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000036", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000036", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 20539 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_cc23a057f87f1a1f114f1a6c", + "semantic_fact_key": "ledger_semantic_fact_v2_71c8cd910a1f6fa746899f32", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000038.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000038", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000038", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 11261 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_711bdb81a8229fc932e8de3e", + "semantic_fact_key": "ledger_semantic_fact_v2_4fb10445ca59abf5a380edd2", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000039.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000039", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000039", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 7179 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_72f48951dac1a70604634bc7", + "semantic_fact_key": "ledger_semantic_fact_v2_38aa7149642323d34173cdf9", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000040.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000040", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000040", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 16799 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_b62457ab0fef87e14ada89b8", + "semantic_fact_key": "ledger_semantic_fact_v2_fd74366ddec6b0d8b361edfb", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000041.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000041", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000041", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 14223 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_9de8d5b550fffa3a25e27630", + "semantic_fact_key": "ledger_semantic_fact_v2_ff524b43b4d3e4f013a8ac76", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000042.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000042", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000042", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 25080 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_8dde979539a5689400209566", + "semantic_fact_key": "ledger_semantic_fact_v2_db5b1f6b4eb6bdf4e4fe1475", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000045.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000045", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000045", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 1007 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_8e187d1082606f8b3f123209", + "semantic_fact_key": "ledger_semantic_fact_v2_1bff5029cb241de5cfd8a1c5", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000047.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000047", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000047", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 38349 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_a57232044dfa80238288128a", + "semantic_fact_key": "ledger_semantic_fact_v2_a8014a6376f5293e7f4258ea", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000048.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000048", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000048", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 8116 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_56ea04de58cfc99d56499518", + "semantic_fact_key": "ledger_semantic_fact_v2_f14aae6efa85954fd2d63d68", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000049.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000049", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000049", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 55147 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_cb05160e6a76c8f190eb9eef", + "semantic_fact_key": "ledger_semantic_fact_v2_93a678741f2ab79f84d89e28", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000050.band_a", + "concept": "scotgov.chargeable_dwellings_band_a", + "measure_id": "band_a", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000050", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000050", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 50044 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_a610b6601b0df6b9672b5e0e", + "semantic_fact_key": "ledger_semantic_fact_v2_c8461653fbfda4c30e2f7f23", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000005.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000005", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000005", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 7114 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_ef5f70a50dc1a1afe5300aaa", + "semantic_fact_key": "ledger_semantic_fact_v2_40afe6854c3a69f12276a261", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000006.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000006", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000006", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 21992 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_3837c0b7f6b9e474d7ad7d1f", + "semantic_fact_key": "ledger_semantic_fact_v2_1bc74b0c5d8d5e6f17c6fa22", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000008.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000008", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000008", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 9101 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_2bda5f582edfbc2d63b79ba8", + "semantic_fact_key": "ledger_semantic_fact_v2_839396def981b596b28f41e0", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000010.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000010", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000010", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 9222 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_bab56be2a27b07632308d512", + "semantic_fact_key": "ledger_semantic_fact_v2_dd92f023416277150833e7bb", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000011.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000011", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000011", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 5031 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_b9b2ebbb08f765066601f42e", + "semantic_fact_key": "ledger_semantic_fact_v2_cc4f652ce51e8167b9d04f9f", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000013.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000013", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000013", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 3809 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_2987ed8b3019f9df3613980d", + "semantic_fact_key": "ledger_semantic_fact_v2_2b4c71bd30986d0e32dbbfab", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000014.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000014", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000014", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 18991 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_7052b41593b358bfa5bcd825", + "semantic_fact_key": "ledger_semantic_fact_v2_05260e5ec0d2a8809f8b3293", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000017.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000017", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000017", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 22729 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_e6aca9d2cc55e6fea7772191", + "semantic_fact_key": "ledger_semantic_fact_v2_80559877c5e37b0d962fc03a", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000018.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000018", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000018", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 6013 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_4d0b351d3273976073425770", + "semantic_fact_key": "ledger_semantic_fact_v2_2506630512f4fc3563ce2851", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000019.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000019", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000019", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 12427 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_4d6143b236fb0224bbb3b638", + "semantic_fact_key": "ledger_semantic_fact_v2_fef76c682abccd850dea1b08", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000020.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000020", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000020", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 10202 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_87ac791d28571dfe69265d3d", + "semantic_fact_key": "ledger_semantic_fact_v2_d2906f3d4c6057edfc80f965", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000021.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000021", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000021", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 18169 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_a2d21f7a8eec0ef32d99ae32", + "semantic_fact_key": "ledger_semantic_fact_v2_ac5dec28d16c0b788f7fe17b", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000023.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000023", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000023", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 2814 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_6de0e1cd1e87da27ab8206c0", + "semantic_fact_key": "ledger_semantic_fact_v2_562610e38240fdfc545a38db", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000026.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000026", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000026", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 12387 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_fb7fd7de41fe444a6dacb452", + "semantic_fact_key": "ledger_semantic_fact_v2_5ca1954281b26c66fdd62507", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000027.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000027", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000027", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 1812 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_115cd1ad51cb582a7cf59ec6", + "semantic_fact_key": "ledger_semantic_fact_v2_d1f93f134877f418caa75478", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000028.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000028", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000028", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 12512 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_c6ef68f0c86d53220f22feca", + "semantic_fact_key": "ledger_semantic_fact_v2_da0b483913388ab94845d9a3", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000029.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000029", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000029", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 29815 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_649a0200a4c8a95ccc7a5103", + "semantic_fact_key": "ledger_semantic_fact_v2_9e091a9d8032a605a9f43a43", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000030.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000030", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000030", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 8288 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_4328caf0c5f0bd00b9edd216", + "semantic_fact_key": "ledger_semantic_fact_v2_946474ea7d1fb982803cc7ce", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000033.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000033", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000033", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 26983 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_125237c21a773be508cd0ee7", + "semantic_fact_key": "ledger_semantic_fact_v2_e6b9458f058a56ea71a34c87", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000034.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000034", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000034", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 15689 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_667f809a1b289eaafa5c30db", + "semantic_fact_key": "ledger_semantic_fact_v2_7ef20fab812a76ae9839e256", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000035.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000035", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000035", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 9849 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_415a6864c7d09c008c76d7a6", + "semantic_fact_key": "ledger_semantic_fact_v2_bb067461b08c8a2a6f01ea36", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000036.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000036", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000036", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 45381 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_64fde84d1f346701124b4c96", + "semantic_fact_key": "ledger_semantic_fact_v2_af487170fcf9a8ecd2392579", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000038.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000038", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000038", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 24360 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_80c5aba4ce33b87c9e9af3c8", + "semantic_fact_key": "ledger_semantic_fact_v2_8803ee196f659159a6071985", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000039.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000039", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000039", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 16446 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_5e4f8b070f212be23f36922c", + "semantic_fact_key": "ledger_semantic_fact_v2_0150019560d688e0405359ff", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000040.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000040", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000040", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 24561 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_bae02fd2011984d50ddfae26", + "semantic_fact_key": "ledger_semantic_fact_v2_81791a6902196db71a024e9e", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000041.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000041", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000041", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 12595 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_92eb9fcaab94f104a78aaaa4", + "semantic_fact_key": "ledger_semantic_fact_v2_34fbeedd622f9356d32eccd5", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000042.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000042", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000042", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 16065 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_e5e6638b6f1867fcb0c7d1bb", + "semantic_fact_key": "ledger_semantic_fact_v2_4d9296b4897309796fd3ad7a", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000045.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000045", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000045", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 3565 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_33a6070d63d044d69662d06e", + "semantic_fact_key": "ledger_semantic_fact_v2_052d41f7fa8e12c5bc539862", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000047.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000047", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000047", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 47026 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_9a7e554a0e62e4774f709eeb", + "semantic_fact_key": "ledger_semantic_fact_v2_7104916758002c8f05029f88", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000048.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000048", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000048", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 14442 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_afaf3d1f59f83d47bf961cfb", + "semantic_fact_key": "ledger_semantic_fact_v2_c801ffc9b1b00c055df97ca1", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000049.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000049", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000049", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 76975 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_35b809b22e44bcd174b14e1e", + "semantic_fact_key": "ledger_semantic_fact_v2_cefab38c6ceefa9523cc3539", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000050.band_b", + "concept": "scotgov.chargeable_dwellings_band_b", + "measure_id": "band_b", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000050", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000050", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 37340 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_de58e3f44833106793cbe659", + "semantic_fact_key": "ledger_semantic_fact_v2_3ef1a9613efa3ba48dfd8806", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000005.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000005", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000005", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 2128 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_59d26fd539ae4f6c1c046baa", + "semantic_fact_key": "ledger_semantic_fact_v2_c4de6276ad822f0aba8e9b02", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000006.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000006", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000006", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 12269 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_843627bc82c000330b214962", + "semantic_fact_key": "ledger_semantic_fact_v2_2024c525237e74c61f926ad6", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000008.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000008", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000008", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 5739 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_891d950e4aead0a598813bf3", + "semantic_fact_key": "ledger_semantic_fact_v2_820ca501d8bbe57f11d3023b", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000010.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000010", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000010", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 15232 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_0e1795458166e2232e2782b6", + "semantic_fact_key": "ledger_semantic_fact_v2_46965f79980793d8e81f82b8", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000011.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000011", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000011", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 4003 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_02d3da4c6f401bd49d22a094", + "semantic_fact_key": "ledger_semantic_fact_v2_174a9e73ee1bd85c8278e920", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000013.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000013", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000013", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 2787 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_5e8671aaf9b3d913fcb0a112", + "semantic_fact_key": "ledger_semantic_fact_v2_02cc99bf193655f64649e5ab", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000014.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000014", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000014", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 7050 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_463645ba0b73333bcb3abfcb", + "semantic_fact_key": "ledger_semantic_fact_v2_a1ad679dce4a7db5538ae988", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000017.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000017", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000017", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 24549 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_63ccadd86930c8219d6b0f74", + "semantic_fact_key": "ledger_semantic_fact_v2_dfb16aea068b88eb3f1cc2d0", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000018.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000018", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000018", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 3720 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_c4b431358bd00c889b216098", + "semantic_fact_key": "ledger_semantic_fact_v2_b2493516102c2c065eb0cdb5", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000019.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000019", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000019", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 11087 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_490c62375c572204535b62c4", + "semantic_fact_key": "ledger_semantic_fact_v2_a1b742804fe4c6742412bd2a", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000020.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000020", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000020", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 7030 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_e6e0213426811ff7cfd58464", + "semantic_fact_key": "ledger_semantic_fact_v2_9f36a75389de3b10f2f67666", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000021.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000021", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000021", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 7614 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_c1f2fd1303456bb965630850", + "semantic_fact_key": "ledger_semantic_fact_v2_a19d4a545e52ed2045c4f721", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000023.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000023", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000023", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 2442 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_94d263ac8f5b52f4eb305c09", + "semantic_fact_key": "ledger_semantic_fact_v2_44b8d1554467f974d747845f", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000026.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000026", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000026", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 7235 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_3299023e79ba794a00ec4b01", + "semantic_fact_key": "ledger_semantic_fact_v2_dce8dbec101b4a954b3bcfa8", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000027.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000027", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000027", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 2842 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_885b7afdf0268515d1f37555", + "semantic_fact_key": "ledger_semantic_fact_v2_46eb2a7a0e70831befff1a40", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000028.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000028", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000028", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 8857 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_bc50dafcdd0fd292a12dc834", + "semantic_fact_key": "ledger_semantic_fact_v2_70239d3f2cd2e56bbf962e9d", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000029.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000029", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000029", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 26508 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_4983a36eda59197099780865", + "semantic_fact_key": "ledger_semantic_fact_v2_ec57f14915a58630602ffa67", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000030.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000030", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000030", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 4335 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_58bc709aa85dac629106b2c8", + "semantic_fact_key": "ledger_semantic_fact_v2_990f8594106009a88845b8b3", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000033.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000033", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000033", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 19177 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_7bf8cc9155af354dca15bf63", + "semantic_fact_key": "ledger_semantic_fact_v2_eaad1b06079e19b847b7f0a1", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000034.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000034", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000034", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 14250 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_13a6c9e3f996156f1fa3f3f9", + "semantic_fact_key": "ledger_semantic_fact_v2_7d3255976c1a590a130d3c99", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000035.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000035", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000035", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 9100 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_fe2b51b3f8f9512c023fc2cb", + "semantic_fact_key": "ledger_semantic_fact_v2_3c6b83c9684f8e012cbe34fa", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000036.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000036", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000036", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 44114 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_ad55f31c40d2ee469eb7a41e", + "semantic_fact_key": "ledger_semantic_fact_v2_ff14b68761ebdadb26210e3e", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000038.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000038", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000038", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 14984 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_0740be8e010497194ed42105", + "semantic_fact_key": "ledger_semantic_fact_v2_ce2fe035812ad30a023400e0", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000039.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000039", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000039", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 7708 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_95ec31d76e5f94dd643655e6", + "semantic_fact_key": "ledger_semantic_fact_v2_ce00357e3848ad21ea8c4a9f", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000040.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000040", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000040", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 10849 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_3523a16f4501adcc49f46012", + "semantic_fact_key": "ledger_semantic_fact_v2_1d095eec907c2ef3aa1b4a14", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000041.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000041", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000041", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 7271 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_601e2fec22c06fc4c796664b", + "semantic_fact_key": "ledger_semantic_fact_v2_802a09383362c73792077b61", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000042.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000042", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000042", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 9032 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_f401ce3cbbd51765de140ca6", + "semantic_fact_key": "ledger_semantic_fact_v2_34d261b5ce36d0c21e9a4e81", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000045.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000045", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000045", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 8298 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_b58e9c07e59f5308ae67a0cf", + "semantic_fact_key": "ledger_semantic_fact_v2_a469b45ba89e1baaa56d1685", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000047.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000047", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000047", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 23711 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_350c7504f47233758315c3d1", + "semantic_fact_key": "ledger_semantic_fact_v2_3597faec506a09563b6dc85e", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000048.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000048", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000048", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 12656 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_35d08cba2404f9e2d4cfdad3", + "semantic_fact_key": "ledger_semantic_fact_v2_80653d6c6b13fb115513768e", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000049.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000049", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000049", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 69457 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_a7c47eeb5d8f02b9c5b95867", + "semantic_fact_key": "ledger_semantic_fact_v2_7e77e9a53824ed442f4338d3", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000050.band_c", + "concept": "scotgov.chargeable_dwellings_band_c", + "measure_id": "band_c", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000050", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000050", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 20354 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_11c3bee43e1b3f678dc51a07", + "semantic_fact_key": "ledger_semantic_fact_v2_e01aac5912b797f060859d82", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000005.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000005", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000005", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 2787 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_8fb7a81645eea88d138b61e1", + "semantic_fact_key": "ledger_semantic_fact_v2_875942de6eb3a0b841d9c918", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000006.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000006", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000006", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 10375 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_11240ac7570f79441b2bebfe", + "semantic_fact_key": "ledger_semantic_fact_v2_cc3da39800dd37c5d49bc021", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000008.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000008", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000008", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 7120 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_5cd96c22b6bc3d7781e007dd", + "semantic_fact_key": "ledger_semantic_fact_v2_b23ef26d041794bf10fd4991", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000010.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000010", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000010", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 7207 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_12fd3afd52ef4b64bb1d1301", + "semantic_fact_key": "ledger_semantic_fact_v2_46d23cc7853836e3b4a549a5", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000011.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000011", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000011", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 6921 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_74583122e7f63fa18db8dc0b", + "semantic_fact_key": "ledger_semantic_fact_v2_5d244379ba5feaa64368763a", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000013.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000013", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000013", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 1870 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_f01ad04c06b5bdd4a363979e", + "semantic_fact_key": "ledger_semantic_fact_v2_628ec5da6b37d5518c84586c", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000014.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000014", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000014", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 9357 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_f4ff907163efea71cc7fa298", + "semantic_fact_key": "ledger_semantic_fact_v2_ff76fef39165e5166ac51110", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000017.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000017", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000017", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 20652 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_f1e5d181e13813b5ec81db35", + "semantic_fact_key": "ledger_semantic_fact_v2_8c1f583570caf78acca690ca", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000018.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000018", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000018", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 3465 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_58826e45e771ec04a5f59925", + "semantic_fact_key": "ledger_semantic_fact_v2_bdac93a638df5ae3e0bb42ef", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000019.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000019", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000019", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 6016 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_15ff9d670b0b82d649d32b76", + "semantic_fact_key": "ledger_semantic_fact_v2_d67102da921745a84046731f", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000020.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000020", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000020", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 6594 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_89debd7c6622163de43cba27", + "semantic_fact_key": "ledger_semantic_fact_v2_31d7ac74e727b2cb16aa2a48", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000021.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000021", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000021", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 7363 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_7b6313ddbe57b06b04d8c3b8", + "semantic_fact_key": "ledger_semantic_fact_v2_99b133e8157c12d8a4b63537", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000023.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000023", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000023", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 1943 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_ecb643916c3299a479068d9d", + "semantic_fact_key": "ledger_semantic_fact_v2_4faad04abb69b8706201c5a3", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000026.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000026", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000026", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 6215 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_afe1ada54e13d5e58ea87cff", + "semantic_fact_key": "ledger_semantic_fact_v2_64af5a723d341a2cb5b25ac4", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000027.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000027", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000027", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 1902 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_0a178516184b8b9d59daf7a9", + "semantic_fact_key": "ledger_semantic_fact_v2_8356a23116d6017fe3daee44", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000028.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000028", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000028", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 8564 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_a26ad5e43b9c1722cfa667e4", + "semantic_fact_key": "ledger_semantic_fact_v2_16b68ae7197c649c3f80cc54", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000029.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000029", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000029", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 22424 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_264b119495332c13eaa9bf25", + "semantic_fact_key": "ledger_semantic_fact_v2_d4b215745d681c284198a782", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000030.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000030", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000030", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 4914 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_c85d657ead1a89ea2fc8b628", + "semantic_fact_key": "ledger_semantic_fact_v2_0e231150fc871735fe2a1785", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000033.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000033", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000033", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 16285 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_bb0bd22735dfdaa5d8b74e75", + "semantic_fact_key": "ledger_semantic_fact_v2_d91977c6bd7cb6f1972bb615", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000034.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000034", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000034", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 18481 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_4239458ca5ca277be85c3218", + "semantic_fact_key": "ledger_semantic_fact_v2_cb7f9a3c52808fdd1ad59c4b", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000035.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000035", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000035", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 6274 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_ea0a04532192b07c38207c56", + "semantic_fact_key": "ledger_semantic_fact_v2_068fa54c7d06cc1b9a91cd8c", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000036.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000036", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000036", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 41485 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_d644c3073b39b084ca0f2ffb", + "semantic_fact_key": "ledger_semantic_fact_v2_15def54e29ea85f3f6c2daad", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000038.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000038", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000038", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 13473 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_344b6135fe979841b9e00b64", + "semantic_fact_key": "ledger_semantic_fact_v2_8536ff02d2adfcdc0e8795c8", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000039.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000039", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000039", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 6144 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_750d30d5472de793fb5809a7", + "semantic_fact_key": "ledger_semantic_fact_v2_edfb71205b0941cd892a03df", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000040.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000040", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000040", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 9622 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_74576dc44756e1b314393a5d", + "semantic_fact_key": "ledger_semantic_fact_v2_79c8db44816644efd263c22d", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000041.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000041", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000041", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 9093 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_3b599e5919cb9f8ed4deba45", + "semantic_fact_key": "ledger_semantic_fact_v2_9e8bd81a092783016eb0ee45", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000042.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000042", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000042", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 9326 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_c1d290a2af5ee67df29a74a9", + "semantic_fact_key": "ledger_semantic_fact_v2_c6f25153d56aecfde6bf948b", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000045.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000045", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000045", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 8660 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_d48185958156c4f13dc4de78", + "semantic_fact_key": "ledger_semantic_fact_v2_7b72724fe9949894e7dc0a75", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000047.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000047", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000047", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 21723 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_c6d4b963450a836aac619fbf", + "semantic_fact_key": "ledger_semantic_fact_v2_4ab26cb0673e15a1c175b3e9", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000048.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000048", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000048", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 11760 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_12ac3b0d3bd96ada55e91035", + "semantic_fact_key": "ledger_semantic_fact_v2_e0a0302730bc44d1adfc8a10", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000049.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000049", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000049", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 43107 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_1285aa57827db616504600fe", + "semantic_fact_key": "ledger_semantic_fact_v2_bee6f69ce599eb2eac5116ad", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000050.band_d", + "concept": "scotgov.chargeable_dwellings_band_d", + "measure_id": "band_d", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000050", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000050", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 18499 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_f6ecb881583a899035ceff42", + "semantic_fact_key": "ledger_semantic_fact_v2_d9ebff313a67250f5fd52ba1", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000005.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000005", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000005", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 3468 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_5480d31f9b390a42d7d0b081", + "semantic_fact_key": "ledger_semantic_fact_v2_6ca9601edeee36fdf1c0e6ad", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000006.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000006", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000006", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 10822 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_3d01539e8769b974f96b1823", + "semantic_fact_key": "ledger_semantic_fact_v2_2403660b6c36d6ac60005cc2", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000008.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000008", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000008", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 6880 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_18e32d30d52d354922634136", + "semantic_fact_key": "ledger_semantic_fact_v2_1a06f40d40f653f486a16276", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000010.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000010", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000010", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 7451 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_9cd3a914ac7d871d02697e1d", + "semantic_fact_key": "ledger_semantic_fact_v2_95bd3b252939ba4ac0c0726e", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000011.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000011", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000011", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 8506 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_9dacc17765a63c4e618282f8", + "semantic_fact_key": "ledger_semantic_fact_v2_94555a5c2c6ef1c351d0caa2", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000013.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000013", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000013", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 1388 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_7a18a3aa1e0682d4c5c1208f", + "semantic_fact_key": "ledger_semantic_fact_v2_5abc1440ac6c2ce9cead5ffd", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000014.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000014", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000014", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 9192 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_8a22a12f6057bdf969194674", + "semantic_fact_key": "ledger_semantic_fact_v2_21acce60c80a11d633ad418f", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000017.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000017", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000017", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 20128 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_1cae6fc06a264617947e29ea", + "semantic_fact_key": "ledger_semantic_fact_v2_6e77e164ee345be0700d57c8", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000018.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000018", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000018", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 3623 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_90be67d33e953a02f56f61b9", + "semantic_fact_key": "ledger_semantic_fact_v2_8ccb0370549ba44f210b373f", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000019.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000019", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000019", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 5650 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_20a5b99966a738da0226c129", + "semantic_fact_key": "ledger_semantic_fact_v2_4a1ee58a4641011b3add03b1", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000020.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000020", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000020", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 6706 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_168aba5cf65163fd1bb3465f", + "semantic_fact_key": "ledger_semantic_fact_v2_14e6dd5a02aa0b936fdffa33", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000021.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000021", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000021", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 9194 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_4a0bc20c1e1ea4ba685a3f6f", + "semantic_fact_key": "ledger_semantic_fact_v2_c85e0c738e943f2a3fc9b136", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000023.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000023", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000023", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 1608 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_319596fe84b78cc712b37ba4", + "semantic_fact_key": "ledger_semantic_fact_v2_398429e53fb99f92ecfe29b5", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000026.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000026", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000026", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 6504 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_01e52e2156da9785d5d35fea", + "semantic_fact_key": "ledger_semantic_fact_v2_a6316849537b4ed3708cc748", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000027.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000027", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000027", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 1535 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_faad8f44118bb900d2808efe", + "semantic_fact_key": "ledger_semantic_fact_v2_97250dbf5d134ffadc7213f3", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000028.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000028", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000028", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 9757 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_9303e90128b464d168dfe318", + "semantic_fact_key": "ledger_semantic_fact_v2_f3b66d4ad0cb4837e6de7b93", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000029.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000029", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000029", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 20953 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_5a5eed0b6fd89b1cc8fbfa80", + "semantic_fact_key": "ledger_semantic_fact_v2_257ba31c81445512ab2920da", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000030.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000030", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000030", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 6462 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_aaca9b0b82844999bab38520", + "semantic_fact_key": "ledger_semantic_fact_v2_887d7b08029e58dcffeffbfe", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000033.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000033", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000033", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 15598 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_a1d2f1c115779558f2a50e58", + "semantic_fact_key": "ledger_semantic_fact_v2_3c6e7ad5589cb6258363782c", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000034.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000034", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000034", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 22638 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_2c2d2efd80bcd1d67bf94333", + "semantic_fact_key": "ledger_semantic_fact_v2_6e9480b126703c9413cda4cc", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000035.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000035", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000035", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 7614 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_edf63eb1b1b98384521b9888", + "semantic_fact_key": "ledger_semantic_fact_v2_b9a975b35611cd7c272ceedf", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000036.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000036", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000036", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 42786 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_ae3bd4e6aed5e0989736c94a", + "semantic_fact_key": "ledger_semantic_fact_v2_71c03f57f04bdc171b550245", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000038.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000038", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000038", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 11548 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_136d02d534301474b43fef7a", + "semantic_fact_key": "ledger_semantic_fact_v2_b30567ce4ef4118c575d7222", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000039.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000039", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000039", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 4862 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_f84608e7b15493e7e9983aed", + "semantic_fact_key": "ledger_semantic_fact_v2_e8e9dd7adc152ef5b1dd03bb", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000040.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000040", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000040", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 10724 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_03f1b7f1df153187d540a68a", + "semantic_fact_key": "ledger_semantic_fact_v2_43ec09f7fa4fbf55809e345f", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000041.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000041", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000041", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 8268 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_2a8073cf3de9a57caf1f9380", + "semantic_fact_key": "ledger_semantic_fact_v2_e880aa2cc78f2baa7bfa1298", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000042.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000042", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000042", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 7078 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_4865ab8d523eec0309a0d720", + "semantic_fact_key": "ledger_semantic_fact_v2_2138855e50bd499027751c6b", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000045.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000045", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000045", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 10601 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_ee7f71f6e18a1809690ad961", + "semantic_fact_key": "ledger_semantic_fact_v2_148095360cf63385667b11fe", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000047.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000047", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000047", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 24425 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_a782bd6ef933d4b527bdee88", + "semantic_fact_key": "ledger_semantic_fact_v2_63a44cc059341ad3214877fb", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000048.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000048", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000048", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 12146 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_952dc4c54107b6fbf9bdeae6", + "semantic_fact_key": "ledger_semantic_fact_v2_8bec7096220ae68d769f4bc7", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000049.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000049", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000049", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 31117 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_7b1deabe63916230e908ffc3", + "semantic_fact_key": "ledger_semantic_fact_v2_b62a250802f43bbf34ec083c", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000050.band_e", + "concept": "scotgov.chargeable_dwellings_band_e", + "measure_id": "band_e", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000050", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000050", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 17649 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_29cde97af9bdfac0d9c46593", + "semantic_fact_key": "ledger_semantic_fact_v2_98a90d50dffcd8805d92fc93", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000005.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000005", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000005", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 2089 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_3d042c4ec31f335eda5fa269", + "semantic_fact_key": "ledger_semantic_fact_v2_78103b35fc67df0a96c26b72", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000006.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000006", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000006", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 5639 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_12c698cc0cf4f70fc3de485f", + "semantic_fact_key": "ledger_semantic_fact_v2_4ce3c47fbee8115ffee6ffac", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000008.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000008", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000008", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 3899 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_f214971e74714ab7a5d9a51c", + "semantic_fact_key": "ledger_semantic_fact_v2_4962f0762b42adc0e757d6a5", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000010.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000010", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000010", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 6564 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_a04d2c0ba304c866737a1078", + "semantic_fact_key": "ledger_semantic_fact_v2_647e5c098e9efbf7ea2cb430", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000011.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000011", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000011", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 6773 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_a0cbcf102ace29ee1c5a34af", + "semantic_fact_key": "ledger_semantic_fact_v2_9036c516a583a9b9aaac2add", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000013.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000013", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000013", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 198 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_8a5dc7cea6978b6cf162025c", + "semantic_fact_key": "ledger_semantic_fact_v2_25ea79228975c835635829d4", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000014.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000014", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000014", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 6158 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_649f8fc81099b229f843f39f", + "semantic_fact_key": "ledger_semantic_fact_v2_6604c8f2719a749724724197", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000017.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000017", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000017", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 10203 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_3321fbdc313e69f085620508", + "semantic_fact_key": "ledger_semantic_fact_v2_e9b11e128d6586420a337dd3", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000018.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000018", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000018", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 1904 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_7a734828ccf51aa9880b5572", + "semantic_fact_key": "ledger_semantic_fact_v2_905ccc6ce3e480008dd095a1", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000019.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000019", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000019", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 4819 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_d477c78f1a8700b553dbdca2", + "semantic_fact_key": "ledger_semantic_fact_v2_11528ba7a22d432064a19763", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000020.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000020", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000020", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 2578 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_e515223adbb61a55139b3aaa", + "semantic_fact_key": "ledger_semantic_fact_v2_f2bd1e99d78e3ea7a98f715d", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000021.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000021", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000021", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 4273 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_dae5389344c81ecebb162b2d", + "semantic_fact_key": "ledger_semantic_fact_v2_7c9df8c300ae4ce98fe24d0d", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000023.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000023", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000023", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 394 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_d6645f967419364359a33ea7", + "semantic_fact_key": "ledger_semantic_fact_v2_744f684b30af5c2efc5e1b29", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000026.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000026", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000026", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 5033 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_111115f166cb79783d69fff2", + "semantic_fact_key": "ledger_semantic_fact_v2_22e41da4c0b3eb2fda45ef10", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000027.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000027", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000027", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 326 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_77d552620bcdf6b7cb4f2efa", + "semantic_fact_key": "ledger_semantic_fact_v2_cf551f9d9830edcafe323383", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000028.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000028", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000028", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 5378 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_5e7655ad74e54359bd14ef62", + "semantic_fact_key": "ledger_semantic_fact_v2_0ff1442ae99c09796d94193f", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000029.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000029", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000029", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 14415 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_e4ab4bd7f8948dfd3acfe519", + "semantic_fact_key": "ledger_semantic_fact_v2_ed027cae30d2907d34e5b650", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000030.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000030", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000030", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 5389 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_54343577b5f9091c369d3f6c", + "semantic_fact_key": "ledger_semantic_fact_v2_01b08bb49ad8254b4ceb3cdc", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000033.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000033", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000033", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 9144 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_6ab9c0bef44c43b75f977d82", + "semantic_fact_key": "ledger_semantic_fact_v2_74a766dea2528a88a0dbdd0b", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000034.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000034", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000034", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 17742 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_f4d2487e84b3be405e431b10", + "semantic_fact_key": "ledger_semantic_fact_v2_4d25f2b9cd61ebba338833ad", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000035.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000035", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000035", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 4573 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_b7c2069f27d8cfb62b0df21a", + "semantic_fact_key": "ledger_semantic_fact_v2_efbfe0129ab635c812a803c0", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000036.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000036", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000036", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 26045 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_8208bbfe5627c43c56a0a7c3", + "semantic_fact_key": "ledger_semantic_fact_v2_5e86d44a82c1e20d11f75c6e", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000038.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000038", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000038", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 7153 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_f6d6f36c314f1f2b6a8e1eb7", + "semantic_fact_key": "ledger_semantic_fact_v2_31668a4aa811c114b1aa6fb7", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000039.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000039", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000039", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 1791 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_9f336d3de846cd7d01f23c4e", + "semantic_fact_key": "ledger_semantic_fact_v2_d0613f0badd02653a1f307c6", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000040.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000040", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000040", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 7815 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_f57e293238dc200636521cf5", + "semantic_fact_key": "ledger_semantic_fact_v2_4b68a4f1f45de1fcf25fdc11", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000041.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000041", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000041", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 3346 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_3e11e9734bf24c48a449f460", + "semantic_fact_key": "ledger_semantic_fact_v2_f34701875243b63ef8afd637", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000042.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000042", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000042", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 2548 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_d4fe373b433cf938d9877ad3", + "semantic_fact_key": "ledger_semantic_fact_v2_7a96c0d0eabd4de72ec7295a", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000045.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000045", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000045", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 7274 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_5e7779b03ee2f30a5c84f099", + "semantic_fact_key": "ledger_semantic_fact_v2_c1585add19de57e7bb253c07", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000047.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000047", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000047", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 14593 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_a99fd40bb4bb4c7204919c9c", + "semantic_fact_key": "ledger_semantic_fact_v2_82a19d00b9d8a6071dc8081f", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000048.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000048", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000048", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 8339 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_b8274e4dc8f3918d5855f6e1", + "semantic_fact_key": "ledger_semantic_fact_v2_7c49ba9a0d1570d20dc65f15", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000049.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000049", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000049", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 14081 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_aacfa5624c551262d065c6c5", + "semantic_fact_key": "ledger_semantic_fact_v2_ec8d2e079313ee067ba5aa19", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000050.band_f", + "concept": "scotgov.chargeable_dwellings_band_f", + "measure_id": "band_f", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000050", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000050", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 10806 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_8272f7c94b8d2520ad6fdc5b", + "semantic_fact_key": "ledger_semantic_fact_v2_1ef9bca2fb68b4bd07d0dbc3", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000005.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000005", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000005", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 943 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_92e4571a634e731d7ef03210", + "semantic_fact_key": "ledger_semantic_fact_v2_51d88177054f0c799cef8d34", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000006.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000006", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000006", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 2670 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_ce6e723b9768c2474d93452c", + "semantic_fact_key": "ledger_semantic_fact_v2_33c63673f6d027c42f3d0508", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000008.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000008", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000008", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 1074 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_01a4d1973e05aa9ea7771a9e", + "semantic_fact_key": "ledger_semantic_fact_v2_7480d31316ce1d7c2d75e1e8", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000010.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000010", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000010", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 5401 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_da90baabf7469c41c31d4a16", + "semantic_fact_key": "ledger_semantic_fact_v2_4f55b6c4acb4c13bce1dcd1a", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000011.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000011", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000011", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 7103 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_3c4cef548a5df19779bdd581", + "semantic_fact_key": "ledger_semantic_fact_v2_2ed645f1cd6dc5a594fece94", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000013.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000013", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000013", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 29 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_d882164e67cd77406f4a953c", + "semantic_fact_key": "ledger_semantic_fact_v2_58d7559280fd7b960172318f", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000014.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000014", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000014", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 3107 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_60a654f1f6be25f51d29b394", + "semantic_fact_key": "ledger_semantic_fact_v2_fd8fa55a833fdaf4e9e3a513", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000017.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000017", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000017", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 4806 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_479a62c8745168720efb3da4", + "semantic_fact_key": "ledger_semantic_fact_v2_6288e5065b17e6f550240ab2", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000018.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000018", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000018", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 1410 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_03b4d9674ba26a74d346f967", + "semantic_fact_key": "ledger_semantic_fact_v2_1602993f6c8d62abad5717c5", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000019.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000019", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000019", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 3226 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_af5f6b09ed6477d7cf6fb597", + "semantic_fact_key": "ledger_semantic_fact_v2_118d2f52c6a11d732174de87", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000020.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000020", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000020", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 724 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_8fafd2ff663bc393c1a4777c", + "semantic_fact_key": "ledger_semantic_fact_v2_b3f3abaa73b06ae4d057089d", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000021.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000021", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000021", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 1274 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_728bf55a5dc6c846f63df557", + "semantic_fact_key": "ledger_semantic_fact_v2_e31d82479d7a610403218205", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000023.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000023", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000023", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 27 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_d4df6d00bc7c443bd3cd23a1", + "semantic_fact_key": "ledger_semantic_fact_v2_bfde47f7e3dba0205bd5c966", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000026.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000026", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000026", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 4734 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_d3139d996a1e4aef0d49b457", + "semantic_fact_key": "ledger_semantic_fact_v2_29bfa314d1937af0c2ae8831", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000027.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000027", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000027", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 73 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_57f9e9e4d129a52539f3ba19", + "semantic_fact_key": "ledger_semantic_fact_v2_9dc0be836b3fd542d03aa708", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000028.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000028", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000028", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 3477 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_e9dbe9673835b9f499c47c37", + "semantic_fact_key": "ledger_semantic_fact_v2_cbd0f3d2c1fbc5037a8c1523", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000029.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000029", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000029", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 7359 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_198fcc99468b686ca7fb4316", + "semantic_fact_key": "ledger_semantic_fact_v2_62c7816e72981e9c40d2bdee", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000030.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000030", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000030", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 5572 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_b6f4bbb673abdd57f993401f", + "semantic_fact_key": "ledger_semantic_fact_v2_a6929a86c1d052607cfa1212", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000033.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000033", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000033", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 8335 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_3e1c3e744b0ea4e36a2251fe", + "semantic_fact_key": "ledger_semantic_fact_v2_54c2bbd733d1e0354da5f6ad", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000034.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000034", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000034", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 11652 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_405949d4432d2801978d4809", + "semantic_fact_key": "ledger_semantic_fact_v2_c441894d8c0790061e3ace7d", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000035.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000035", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000035", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 3055 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_98bf026a1e6e1cff0d78a71c", + "semantic_fact_key": "ledger_semantic_fact_v2_29dec956b48ac3908ba74faf", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000036.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000036", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000036", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 23814 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_c79a107a041201a26cb27b5e", + "semantic_fact_key": "ledger_semantic_fact_v2_7f433db567ec7d96837527df", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000038.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000038", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000038", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 4455 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_d347c8d9372414504f99c902", + "semantic_fact_key": "ledger_semantic_fact_v2_0b8888a9c0f3a9d17663bc91", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000039.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000039", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000039", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 835 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_2dd20f571d179f08fafec1bc", + "semantic_fact_key": "ledger_semantic_fact_v2_1f2d40d4dc1df2588f9adb70", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000040.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000040", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000040", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 3406 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_94d9b68e66f5d3efdb9e3b76", + "semantic_fact_key": "ledger_semantic_fact_v2_8c2bdbc9c20741ee436e2e96", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000041.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000041", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000041", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 1778 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_857aa55c9e82b5922d94d93a", + "semantic_fact_key": "ledger_semantic_fact_v2_44c1dd6f610e04c52c76f2a1", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000042.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000042", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000042", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 1155 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_23ad9343b4c6826fd09c6d00", + "semantic_fact_key": "ledger_semantic_fact_v2_b3642ab444b081085698f44c", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000045.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000045", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000045", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 7195 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_a30498dab6ca7c4d1ac53c4d", + "semantic_fact_key": "ledger_semantic_fact_v2_0db996575b6b5f53cb36e507", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000047.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000047", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000047", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 6975 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_ccb9be7a0933397db7b38afe", + "semantic_fact_key": "ledger_semantic_fact_v2_191577a4f02d8697cfcbd1c2", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000048.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000048", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000048", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 6747 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_32128217b46a2f4152f835dd", + "semantic_fact_key": "ledger_semantic_fact_v2_f8aa0b165dbec2cf951e76c8", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000049.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000049", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000049", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 6499 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_884a967ad84ce654fdfd074d", + "semantic_fact_key": "ledger_semantic_fact_v2_aef737ba157c07e3a9e78690", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000050.band_g", + "concept": "scotgov.chargeable_dwellings_band_g", + "measure_id": "band_g", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000050", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000050", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 3174 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_fac7305277638488671cf6fc", + "semantic_fact_key": "ledger_semantic_fact_v2_5a074a1b2e58aaad2d0c1313", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000005.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000005", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000005", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 49 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_455c28954e9a628e1bb90bc8", + "semantic_fact_key": "ledger_semantic_fact_v2_9643aa6a421b850a72e5fa21", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000006.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000006", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000006", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 152 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_1852a696d0bf5a54a68bd460", + "semantic_fact_key": "ledger_semantic_fact_v2_5623bfd7fdcfefd2d65a0bf6", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000008.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000008", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000008", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 49 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_ed3b3fcd228af2a74e447c8d", + "semantic_fact_key": "ledger_semantic_fact_v2_a877ab1cf419414300b857f8", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000010.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000010", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000010", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 719 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_13d5ad1e3953197f7f7d1eda", + "semantic_fact_key": "ledger_semantic_fact_v2_b4d07842a0712348e5784974", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000011.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000011", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000011", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 800 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_9e34f4031f1be6d3df9405d2", + "semantic_fact_key": "ledger_semantic_fact_v2_e7a2edcb146b51ce6d97a2f9", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000013.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000013", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000013", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 5 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_327655cab0c0faaf932d4b56", + "semantic_fact_key": "ledger_semantic_fact_v2_28cd41e532c9bff9b58e1bae", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000014.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000014", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000014", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 81 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_a0f0e079a9f59bf91e274299", + "semantic_fact_key": "ledger_semantic_fact_v2_531da74119000ad65e63f1ca", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000017.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000017", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000017", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 338 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_e60828b7f0f21dbe16ccf9f2", + "semantic_fact_key": "ledger_semantic_fact_v2_3ed3599d1f306a6f287c1ff0", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000018.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000018", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000018", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 215 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_8ba582766695e1e0b9723ce4", + "semantic_fact_key": "ledger_semantic_fact_v2_d458179551909ef83b153815", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000019.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000019", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000019", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 185 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_023527c98f2b5becf99300dc", + "semantic_fact_key": "ledger_semantic_fact_v2_843ded19a243d1540070411f", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000020.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000020", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000020", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 51 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_23c3e33976f863048bc71a3e", + "semantic_fact_key": "ledger_semantic_fact_v2_fd935186bde680300fc3dc5b", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000021.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000021", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000021", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 61 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_f7b79da8e7ac960ec8076ee6", + "semantic_fact_key": "ledger_semantic_fact_v2_80dffd7f51c45a06b04c06f7", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000023.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000023", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000023", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 5 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_e76243649a1b2016cb086559", + "semantic_fact_key": "ledger_semantic_fact_v2_4bbfddf32067fe5ac8fa0d75", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000026.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000026", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000026", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 493 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_f85767260b0bd5bf06c02b66", + "semantic_fact_key": "ledger_semantic_fact_v2_4eef26ceb7fd4309ac2ecc09", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000027.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000027", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000027", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 1 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_9ae4a3db4d4dc349663eae51", + "semantic_fact_key": "ledger_semantic_fact_v2_7b9ad235d7b4262f2cf87066", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000028.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000028", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000028", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 301 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_9e944a4d1d295da49b9d225e", + "semantic_fact_key": "ledger_semantic_fact_v2_0b344d3d2df2577281c305c6", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000029.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000029", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000029", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 594 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_091f355146ce2cb031d8ff79", + "semantic_fact_key": "ledger_semantic_fact_v2_a137ee6deec8ec552fb9a380", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000030.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000030", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000030", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 750 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_f7bc5fac3f7c97c240a664c5", + "semantic_fact_key": "ledger_semantic_fact_v2_f9a34dab65cdcb19581b435e", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000033.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000033", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000033", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 1163 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_afcf1674a3272bbe36ec6704", + "semantic_fact_key": "ledger_semantic_fact_v2_cc2fbb8aa02679f9967da2d4", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000034.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000034", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000034", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 645 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_4e105b8f56560baa421db0d6", + "semantic_fact_key": "ledger_semantic_fact_v2_3de5969a61836bb376ae1c3d", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000035.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000035", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000035", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 244 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_1509487f932fc390fb1842d7", + "semantic_fact_key": "ledger_semantic_fact_v2_0aa611c22a0c3e9b5ce44dc8", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000036.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000036", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000036", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 4306 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_90dc20d3694b152c7a57c4bc", + "semantic_fact_key": "ledger_semantic_fact_v2_806012cfefaa173778e78ed6", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000038.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000038", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000038", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 194 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_0a66bd9c0ac5ec89d7ee34f2", + "semantic_fact_key": "ledger_semantic_fact_v2_42fc7922ee5834aadb6d5d52", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000039.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000039", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000039", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 70 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_5fc38b9cc225591f7acf4050", + "semantic_fact_key": "ledger_semantic_fact_v2_c480e0bcc08bd3ee753d65b2", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000040.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000040", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000040", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 203 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_2b39a053a2baf8139a6aaa5e", + "semantic_fact_key": "ledger_semantic_fact_v2_e95d3d7432ddc5e94cdbd1b0", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000041.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000041", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000041", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 148 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_7dd4ab9f131acdb0c2e971f8", + "semantic_fact_key": "ledger_semantic_fact_v2_1f0c9b064b652ffb0e93cdff", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000042.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000042", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000042", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 37 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_2369bc00149fe7a0d25a8e5a", + "semantic_fact_key": "ledger_semantic_fact_v2_d209c7ab8e33b68928132ecb", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000045.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000045", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000045", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 683 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_7bb6e62056e533b11a06ffbc", + "semantic_fact_key": "ledger_semantic_fact_v2_c18be2f1cd176a35eb5b49d1", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000047.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000047", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000047", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 436 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_b54cb9a8b7b95a0ab69f366c", + "semantic_fact_key": "ledger_semantic_fact_v2_2090e845389b7fe7de858a77", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000048.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000048", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000048", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 696 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_0f40e23e4450acbc463ff164", + "semantic_fact_key": "ledger_semantic_fact_v2_e2cf3459b2a8b096d15246d4", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000049.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000049", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000049", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 638 + }, + { + "aggregate_fact_key": "ledger_aggregate_fact_v2_a75d7930adb3a0be66acd326", + "semantic_fact_key": "ledger_semantic_fact_v2_d20163fc9433ad57e740d960", + "source_record_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area.s12000050.band_h", + "concept": "scotgov.chargeable_dwellings_band_h", + "measure_id": "band_h", + "unit": "count", + "aggregation": "sum", + "entity": { + "name": "dwelling", + "role": "chargeable_dwelling" + }, + "geography": { + "id": "S12000050", + "level": "local_authority", + "vintage": "ca_2019" + }, + "period": { + "type": "month", + "value": "2025-09" + }, + "period_coverage": { + "start_date": null, + "end_date": null, + "basis": null + }, + "layout": { + "record_set_id": "scotgov.ctaxbase2025.chargeable_dwellings.council_area", + "groupby_dimension": "geography", + "groupby_value_id": "s12000050", + "table_record_kind": "detail" + }, + "dimensions": {}, + "source": { + "source_name": "scotgov", + "source_table": "Number of chargeable dwellings, September 2025 (CTAXBASE 2025)", + "source_file": "CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx", + "source_sha256": "8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f", + "vintage": "ctaxbase_2025", + "raw_r2_key": "raw/scotgov/scotgov-council-tax-bands-2025/2025/8e431837aa37ee298c9a2b9b010b8ecbc7e3a817573a3a84f6251e6db00a591f/CTAXBASE_2025_Tables_Chargeable_Dwellings.xlsx" + }, + "value": 169 + } + ] +} diff --git a/packages/microcosm-build/src/microcosm/build/uk/source_stages.json b/packages/microcosm-build/src/microcosm/build/uk/source_stages.json index 288eed25b1..c9c402188b 100644 --- a/packages/microcosm-build/src/microcosm/build/uk/source_stages.json +++ b/packages/microcosm-build/src/microcosm/build/uk/source_stages.json @@ -655,6 +655,16 @@ "foster_parent_code": 9, "below_age": 16 }, + "non_parental_care_child": { + "child_codes": [ + 3, + 4 + ], + "parent_codes": [ + 7, + 8 + ] + }, "one_person_age_split": 65, "family_role_values": [ "COUPLE_PARTNER", @@ -688,12 +698,13 @@ "ons_family_role", "ons_family_index", "is_looked_after_by_local_authority", + "child_limit_non_parental_caring_exception", "ons_household_type" ], "nonnegative_outputs": [ "ons_family_index" ], - "notes": "Derives the ONS Families and households Table 7 household type from the FRS household grid (microcosm#791). Every person's relhrp code becomes relationship_to_head (HEAD for the household reference person, whose relhrp is blank and whose hrpid is 1; hrpnum on the househol tab is the independent check). The pairwise R01-R14 matrix builds ONS families: any partner pair (spouse, cohabitee, civil partner) is a couple; a person with no partner and no own child in the household joins a parent's family through a natural/adopted or step child link (natural before step, then the lowest person number, on ties); foster, in-law, grandparent and sibling links never form a family, so foster children and grandchildren without a parent present stay individuals, as ONS treats them. A child is dependent under 16, or 16-18 in full-time education (child-tab members are in full-time non-advanced education by construction; adults use educft, fted on earlier tapes); 19 and over is non-dependent whatever the education status - the FRS child tab runs to 19, ONS stops at 18, so the two definitions are translated here rather than assumed equal. Household type: one person (split at 65), no family present (two or more unrelated adults, which counts related non-family households such as two siblings), exactly one family classified by that family whatever other individuals live there (a couple plus a lodger is a couple household - the class the #757 person-count restrictions could not place), or two or more families. The ten values are the Chronicle ons-families-households-2025 ons.household_type value ids verbatim, so the frame value, this declaration, the contract row and the published fact share one string. The reciprocity tolerance is the 2024-25 tape's three ordered pairs (two households) where a child records a parent link the parent records as non-relative or sibling; either side's declaration establishes the link, and any other count refuses the build for review. It also sets is_looked_after_by_local_authority for a child-table member under 16 whose grid code toward an adult in their own benefit unit is foster child (5), or toward whom that adult records foster parent (9). The FRS 2024-25 question instructions (Benefit Unit Allocation) put foster children under 16 in the carer's benefit unit, so without the flag policyengine-uk's child tests (Universal Credit, Child Tax Credit, Pension Credit, Tax-Free Childcare, extended childcare and the legacy benefits) count them as the carer's own children. The same instructions make a foster child aged 16 or over a separate benefit unit where a local authority maintenance allowance covers them, so one who stays in the carer's unit has no such allowance and is not marked. The flag follows the relationship code alone: few such children are recorded, and the carer's local-authority fostering allowance (ALLOW3) covers fewer still." + "notes": "Derives the ONS Families and households Table 7 household type from the FRS household grid (microcosm#791). Every person's relhrp code becomes relationship_to_head (HEAD for the household reference person, whose relhrp is blank and whose hrpid is 1; hrpnum on the househol tab is the independent check). The pairwise R01-R14 matrix builds ONS families: any partner pair (spouse, cohabitee, civil partner) is a couple; a person with no partner and no own child in the household joins a parent's family through a natural/adopted or step child link (natural before step, then the lowest person number, on ties); foster, in-law, grandparent and sibling links never form a family, so foster children and grandchildren without a parent present stay individuals, as ONS treats them. A child is dependent under 16, or 16-18 in full-time education (child-tab members are in full-time non-advanced education by construction; adults use educft, fted on earlier tapes); 19 and over is non-dependent whatever the education status - the FRS child tab runs to 19, ONS stops at 18, so the two definitions are translated here rather than assumed equal. Household type: one person (split at 65), no family present (two or more unrelated adults, which counts related non-family households such as two siblings), exactly one family classified by that family whatever other individuals live there (a couple plus a lodger is a couple household - the class the #757 person-count restrictions could not place), or two or more families. The ten values are the Chronicle ons-families-households-2025 ons.household_type value ids verbatim, so the frame value, this declaration, the contract row and the published fact share one string. The reciprocity tolerance is the 2024-25 tape's three ordered pairs (two households) where a child records a parent link the parent records as non-relative or sibling; either side's declaration establishes the link, and any other count refuses the build for review. It also sets is_looked_after_by_local_authority for a child-table member under 16 whose grid code toward an adult in their own benefit unit is foster child (5), or toward whom that adult records foster parent (9). The FRS 2024-25 question instructions (Benefit Unit Allocation) put foster children under 16 in the carer's benefit unit, so without the flag policyengine-uk's child tests (Universal Credit, Child Tax Credit, Pension Credit, Tax-Free Childcare, extended childcare and the legacy benefits) count them as the carer's own children. The same instructions make a foster child aged 16 or over a separate benefit unit where a local authority maintenance allowance covers them, so one who stays in the carer's unit has no such allowance and is not marked. The flag follows the relationship code alone: few such children are recorded, and the carer's local-authority fostering allowance (ALLOW3) covers fewer still. It also sets child_limit_non_parental_caring_exception, policyengine-uk's two-child limit exception for non-parental caring arrangements (UC Regs 2013 Sch 12 para 4; CTC Regs 2002 reg 12), for a child-table member whom no adult of their own benefit unit claims as a natural, adopted or step child (the child's grid code toward the adult is child or step child, 3 or 4, or the adult's toward the child is parent or step parent, 7 or 8) and whom no local authority placed there: a child living with kinship or friends carers, or with a claimant whose own child is the child's parent. Nothing set it before, so the engine paid no child element for such a third or later child born from 6 April 2017. The multiple births, adoption and non-consensual conception exceptions stay at the engine's default: the FRS has no twin field and its birth dates are blank (María's ruling of 2 November 2026; microcosm#1095)." }, { "stage": "frs_employment", @@ -1912,7 +1923,7 @@ "spi_losses_brought_forward_draw": "self_employment_income" }, "predictors": [ - "age", + "spi_age_band", "gender", "region", "main_source", @@ -1921,6 +1932,7 @@ "at_or_over_spa" ], "categorical_predictors": [ + "spi_age_band", "gender", "region", "main_source" @@ -1986,7 +1998,7 @@ "seed": 45, "n_estimators": 100, "folds": 5, - "fold_key": "predictor cell (gender, region, whole-year age, main_source, has_pay, has_trade, at_or_over_spa), the fold being floor(uniform x folds) of the cell's stable_identity_uniforms draw at the stage seed and salt spi_stage1:reference_fold; each fold's recipients are located by a forest fitted on the other folds, so the forest that locates a copy never saw its twin, and every row of a cell is located by one forest", + "fold_key": "predictor cell (gender, region, spi_age_band, main_source, has_pay, has_trade, at_or_over_spa), the fold being floor(uniform x folds) of the cell's stable_identity_uniforms draw at the stage seed and salt spi_stage1:reference_fold; each fold's recipients are located by a forest fitted on the other folds, so the forest that locates a copy never saw its twin, and every row of a cell is located by one forest", "method": "Rosenblatt transport (microcosm#840): each drawn recipient's twin values are located on the reference forest, the sign uniform in the gate's cumulative class probabilities and the quantile on the sign's magnitude forest, each leaf chained on the twin's observed earlier leaves, and the stage-1 forest draws at those uniforms, so the recipient receives the SPI income of someone in the same position among SPI people like it as the twin holds among FRS people like it. taxable_savings_interest is savings_interest_income, the interest outside ISAs, floored at zero. A leaf without an analogue, or whose analogue is degenerate on the FRS rows, draws at identity-keyed uniforms, as do the placements inside a class or a flat stretch of a conditional; no model random stream is consumed. The reference locates a leaf given the twin's observed earlier analogue leaves, while the stage-1 forest draws it given every earlier output, the identity-uniform leaves included, so the located quantile is read off a conditional the identity draws also shape (microcosm#840 follow-up: the chain order). A full build refuses a reference the predictor cells cannot cross-fit (only a sampled rung or a synthetic fixture may locate in-sample, and its receipt says so), a recipient whose fold differs from its twin's, and a reference whose sign classes differ from the stage-1 forest's on any located target.", "receipt": "per target the analogue, the FRS regime and sign classes, the uniform source and the Kolmogorov-Smirnov distance of the sign uniforms and of the quantiles over positive rows from U[0,1), overall and by main_source over at least 10 rows (a statistical floor, as a distance over fewer says nothing); positive-row counts are rounded as every receipt count is, one or two rows reading <3; the counts in the stage evidence stay with the build and are not published" }, @@ -2173,6 +2185,23 @@ "outputs": "stage-1 outputs, uprated as the stage-1 draws", "seed": 44 }, + { + "kind": "floor_spi_employment_pay_at_minimum_wage", + "column": "hmrc_spi_pay", + "hours_column": "hours_worked", + "hours_basis": "annual usual hours: the FRS adult's usual weekly hours in all jobs (TOTHOURS) times 52, read back to weekly hours", + "weeks_in_year": 52, + "hourly_rate": "the lower of policyengine-uk gov.hmrc.minimum_wage.non_apprentice by the twin's age, read as the engine reads the build year (30 April), and the twin's own hourly pay (its employment income before the draw over its annual hours)", + "employee_statuses": [ + "FT_EMPLOYED", + "PT_EMPLOYED" + ], + "rows": "drawn recipients other than reserved band carriers, whose twin has no trade (has_trade 0), an employee main job and usual hours above zero, and whose drawn PAY is positive; FRS rows, undrawn copies and every other leaf keep their values", + "pay_basis": "tape PAY is taxable pay, net of net-pay pension contributions and salary sacrifice; the minimum wage binds gross pay, and the engine reads employment_income (PAY + EPB + TAXTERM) as gross pay, so PAY alone is compared with the gross minimum and a twin at the minimum wage who pays net-pay contributions can be lifted by up to them", + "reason": "stage 1 draws annual tape pay without hours and the tape holds part-year workers, so a twin reporting usual employee hours could draw a year's pay below what those hours earn at the minimum wage (uk-data#629)", + "annual_income": "the floored pay is the row's current pay; its employment_income_annual_share becomes its unfloored over its floored employment income, so the annual measures read the tape's year of pay", + "receipt": "eligible and floored source households (rounded), weighted people, the weighted share floored, the weighted mean uplift and the amount added; figures on one or two source households are <3, and the floored weight, share and amount are given only where neither the floored nor the unfloored side rests on one or two; the hourly-pay check gives the weighted shares of the drawn employees below the minimum wage for their age before and after the floor, beside the FRS employees' share, each withheld beside a side on one or two, and the eligible rows still below their floor (banded, zero exact)" + }, { "kind": "fit_weighted_qrf_stage2", "training_population": "uk_frs_raw_spine_base_support_channel", @@ -3814,7 +3843,7 @@ "seed": 0 } }, - "additional_residential_targets": "Table 6b HRAD transactions and value, 2024-25, times individuals' shares of Table 8a residential transactions and value; Table 6b bands with the five above GBP 2m combined", + "additional_residential_targets": "Table 6b HRAD transactions and value, 2024-25: at or below GBP 250,000, the band less other buyers' HRAD, their Table 8a receipts over Table 6b's gross HRAD receipts per transaction and per pound; above it, times individuals' shares of Table 8a residential transactions and value; Table 6b bands with the five above GBP 2m combined, at the households' counts and values", "non_residential_targets": "Table 8b individuals' transactions, value and bands, 2024-25" }, { @@ -4267,7 +4296,7 @@ { "stage": "lcfs_consumption", "survey": "Living Costs and Food Survey 2024-25", - "source": "UK Data Service SN 9603 Living Costs and Food Survey 2024-25 (2nd edition) household/person tabs and the vendored Chronicle facts for NEED 2024 mean kWh, DESNZ Energy Trends and QEP average prices paid for calendar 2024, road-fuel outturn (DESNZ, HMRC, ONS Consumer Trends) and road fuel by vehicle type (DESNZ), ONS Consumer Trends household spending by COICOP division, the DfT VEH1103 licensed-car stock, NTS bus use, and the DfT and devolved bus finance tables and fares indices.", + "source": "UK Data Service SN 9603 Living Costs and Food Survey 2024-25 (2nd edition) household/person tabs and the vendored Chronicle facts for NEED 2024 mean kWh, DESNZ Energy Trends and QEP average prices paid for calendar 2024, road-fuel outturn (DESNZ, HMRC, ONS Consumer Trends) and road fuel by vehicle type (DESNZ), ONS Consumer Trends household spending by COICOP division, the DfT VEH1103 licensed-car stock, NTS bus use, the NTS private cars (UK Data Service SN 5340, End User Licence; the vehicle and household tabs, survey years 2022-2024) for the zero-emission share by income fifth and the household-paid road-fuel mix, and the DfT and devolved bus finance tables and fares indices.", "grain": "household", "base_candidate": { "filename": "populace_uk_2023.h5", @@ -4302,6 +4331,30 @@ "runtime_sha256_required": true, "filename": "dvper_uk_anon_2024.tab" }, + { + "role": "nts_household_tab", + "kind": "private_microdata", + "ukds_study_number": 5340, + "doi": "10.5255/UKDA-SN-5340-19", + "filename": "household_eul_2002-2024.tab", + "sha256": "b70252b606b13c2b7f32e6da09e202e47514f6414045a017e77deb1d2a87ceb7", + "size_bytes": 117993975, + "access": "private_local_input", + "locator": "caller-supplied local input", + "runtime_sha256_required": true + }, + { + "role": "nts_vehicle_tab", + "kind": "private_microdata", + "ukds_study_number": 5340, + "doi": "10.5255/UKDA-SN-5340-19", + "filename": "vehicle_eul_2002-2024.tab", + "sha256": "f3f50dfff2dfb86ace531362e35668403e35893f8c46d07def417236dde68dba", + "size_bytes": 41650772, + "access": "private_local_input", + "locator": "caller-supplied local input", + "runtime_sha256_required": true + }, { "role": "need_energy_facts", "resource": "need_energy_facts.json", @@ -4632,13 +4685,42 @@ "kind": "assign_binary_from_rate", "target": "has_fuel_consumption", "rate_resource": "licensed_cars_fuel_type.json", - "rate_rule": "per_car_zero_emission_share", + "rate_rule": "per_car_zero_emission_share_by_income_quintile", "period_value": 2024, "geography_id": "K03000001", "zero_emission_fuel_types": [ "battery_electric", "fuel_cell_electric" ], + "nts_cars": { + "survey_years": [ + 2022, + 2023, + 2024 + ], + "vehicle_types": [ + 1, + 3 + ], + "private_keeper": [ + 1 + ], + "company_keeper": [ + 2 + ], + "weight": "w3", + "income_quintile": "hhincqisengts_b01id", + "zero_emission_co2_bands": [ + 1 + ], + "propulsion": { + "petrol_spending": 1, + "diesel_spending": 2 + } + }, + "minimum_zero_emission_cars": 10, + "frame_income": "household_gross_income", + "frame_equivalisation": "household_equivalisation_bhc", "condition": "num_vehicles > 0", "seed": 0 }, @@ -5037,7 +5119,34 @@ "other_fuels_rule": "lcfs_donor_other_fuels_share", "other_fuels_codes": [ "c72213" - ] + ], + "mix_rule": "household_paid_litres", + "nts_cars": { + "survey_years": [ + 2022, + 2023, + 2024 + ], + "vehicle_types": [ + 1, + 3 + ], + "private_keeper": [ + 1 + ], + "company_keeper": [ + 2 + ], + "weight": "w3", + "income_quintile": "hhincqisengts_b01id", + "zero_emission_co2_bands": [ + 1 + ], + "propulsion": { + "petrol_spending": 1, + "diesel_spending": 2 + } + } }, { "kind": "recompose_from_remainder", @@ -5450,6 +5559,40 @@ } } }, + { + "kind": "assign_car_attributes_from_nts", + "nts_cars": { + "survey_years": [ + 2022, + 2023, + 2024 + ], + "vehicle_types": [ + 1, + 3 + ], + "private_keeper": [ + 1 + ], + "company_keeper": [ + 2 + ], + "weight": "w3", + "income_quintile": "hhincqisengts_b01id", + "zero_emission_co2_bands": [ + 1 + ], + "propulsion": { + "petrol_spending": 1, + "diesel_spending": 2 + } + }, + "reference_date": "2025-10-01", + "oldest_age_years": 25, + "default_engine_size_cc": 1600, + "seed": 0, + "salt": "lcfs_car_attributes" + }, { "kind": "record_mass_conservation_receipt", "entity": "household", @@ -5504,7 +5647,12 @@ "remote_uk_horseracing_betting_net_losses", "remote_other_betting_net_losses", "betting_exchange_commission", - "horse_and_dog_pool_betting_net_losses" + "horse_and_dog_pool_betting_net_losses", + "car_fuel_type", + "car_co2_emissions", + "car_engine_size", + "car_first_registration_date", + "car_is_ved_exempt" ], "nonnegative_outputs": [ "food_and_non_alcoholic_beverages_consumption", @@ -5552,9 +5700,11 @@ "remote_uk_horseracing_betting_net_losses", "remote_other_betting_net_losses", "betting_exchange_commission", - "horse_and_dog_pool_betting_net_losses" + "horse_and_dog_pool_betting_net_losses", + "car_co2_emissions", + "car_engine_size" ], - "notes": "Ports the incumbent LCFS consumption QRF, including NEED energy raking, with adjudicated weighted fits and an identity-keyed seed-0 fuel flag. The vehicle count is a numeric QRF predictor on both sides (LCFS a124 on the donor, the was_wealth draw of WAS vcarnr8 on the recipient, both clipped to 0-5), which retires the incumbent's WAS-to-LCFS has-fuel bridge (microcosm#890 A). The recipient fuel flag draws each of a household's vehicles as zero-emission at the battery-electric and fuel-cell share of the vendored DfT VEH1103 licensed-car stock (2024, Great Britain; plug-in hybrids count as fuel buyers), replacing the hand-copied NTS share (microcosm#890 E2): a household with vehicles buys fuel unless every one of them is zero-emission, so it is flagged at one minus that share raised to its vehicle count, and a one-vehicle household keeps the draw it had when the whole household was drawn at once (microcosm#1278; before, a household with several vehicles was all one or the other). The frame holds no fuel type, so the draw, keyed on the household identity, is what makes a vehicle-owning household a fuel buyer: it is random with respect to income and every other characteristic. With the redraw of microcosm#1113 every flagged household buys fuel, so this flag alone sets fuel incidence; who holds the zero-emission cars by income is a known residual. The household input uses_energy_prepayment_meter, which policyengine-uk reads for the July 2023 to March 2024 Energy Price Guarantee prepayment discount (PolicyEngine/policyengine-uk#2098, from 2.123.3), is drawn by the declared impute_prepayment_meter step (microcosm#1110): the donor prepays when it last put money on an electricity, gas or combined key or meter (b1751, b1701, b233, which the LCF asks only of prepayment-meter households) or its diary records a slot-meter payment (c45114, c45214), so electricity-only prepayment counts and a household with no meter payment, including one that did not answer, does not; a weighted regime-gated QRF on the chain's predictors fits that flag and each recipient draws it at uniforms keyed on its household id, which moves no other draw. The release exports it: policyengine-uk reads it from 2.123.3 and an older engine, Microcosm's locked one among them, ignores a column it does not know; the incumbent does not carry it until uk-data#539, so it is a reviewed extra column of the export surface. The frame flags about 3.0 million Great Britain households (10.5 %) at prior weights, against the around three million prepayment households the government counted when the discount began in July 2023 (a different reference period, households in both). Energy support clipping is exempt because NEED raking governs those columns. Bus fares are clipped to donor support before the pricing step (María's rulings 2026-09-15 and 2026-09-17), which bounds the region no area prices (Wales keeps the chain's raw draw) while the priced regions move beyond donor support afterwards; for that reason the column carries no committed support bound for the terminal gate. Domestic energy is raked in kWh to the NEED 2024 shape at the DESNZ level and priced at the average prices paid (microcosm#890 F, chronicle#270), where both NEED rakes take their mean-kWh margins from the vendored NEED 2024 tables (England and Wales by income band, tenure, property type and region; Scotland by income band, tenure and property type with the all-dwellings mean as its region margin; Northern Ireland untouched), the declared price_domestic_energy step converts spend to kWh and back at each household's QEP price region through the committed crosswalk using the calendar-2024 average variable unit cost and fixed cost across payment methods, standard metering, including VAT (Northern Ireland gas at the UK average because QEP publishes no Northern Ireland gas row), a gas fixed cost only for connected households, the gas connection imposed on the recipient frame at the published share of each region (DESNZ subnational gas meters over electricity meters, 2024) by disconnecting gas-positive households in an identity-keyed uniform order, skipping a household whose weight would overshoot the published share (Northern Ireland has no subnational row and keeps the positive-gas rule), and, where the draw leaves a region below its share, by the declared connect_rule (microcosm#1164): two weighted fits on the chain's predictors give each zero-gas household the probability that a donor like it pays for gas (a gradient-boosted classifier of the donor's gas payers) and the gas such a donor pays (a regime-gated QRF of the payers' gas spend, at quantiles keyed on the household id), and the region's zero-gas households are connected in an identity-keyed order drawn in proportion to that probability, by the same weight-fitting walk, until the share is met. The labelled energy split leaves about 80 % of donors paying for gas against the about 85 % of homes DESNZ counts gas meters for (the derivation it replaced gave gas to 98 %), so without the connect leg nine of the eleven Great Britain regions fell short of their share, and after the four-margin NEED rake one factor per fuel scales the kWh so the prior-weighted frame total equals the fuel's declared level for calendar 2024: for gas the DESNZ Energy Trends domestic consumption at actual temperature summed over the four quarters, and for electricity, the one fuel in spend_level_fuels (microcosm#1418), the kWh the ONS Consumer Trends 04.5.1 household spending buys at QEP's United Kingdom average prices once the standing charges of every UK domestic meter DESNZ counts come off (gas stays on Energy Trends while ONS 04.5.2 counts bottled gas, microcosm#1095); NEED gas means are per gas-metered household, so the gas kWh margins are raked over connected households only while electricity is raked over every household, and the energy_rake gate recomputes every NEED mean, the DESNZ level and the connection shares from the vendored rows. After the level, no household is left above the domestic meter definitions behind the DESNZ total (NEED Annex B: gas meters under 73,200 kWh a year, electricity meters under 50,000 kWh on profile classes 1 and 2; María's ruling of 2026-10-12 on microcosm#1207's extreme energy values): the declared household_kwh_ceiling caps a household there, the households below it in the capped households' own NEED cells are re-raked to those cells' levelled means, and a proportional step restores the DESNZ total (microcosm#1164); the receipt counts the households capped and the share of the total they gave up, and the energy_rake gate checks both. Mobile homes have no NEED property-type row, so the rake takes them to the all-dwellings mean, the incumbent's translation; where every mobile home of a NEED geography draws a spend at or below the standing charge, that cell has no kWh for the rake to scale, and the declared zero_kwh_cells_at_need_mean starts it at its NEED mean before the first sweep (microcosm#1240). The receipt lists the cells it started, and the energy_rake gate fails on a started cell the stage does not declare and on any other cell with a zero mean. Both rakes band households on gross income, NEED's concept: the donor on LCFS p344p, cash income before tax, National Insurance, council tax and pension contributions, and the recipient on the same concept, its HBAI net income with the deductions policyengine-uk takes to reach it added back (council tax and domestic rates, income tax, National Insurance, student loan repayments, employee and personal pension contributions, maintenance and child payments, LVT), which the stage materializes for that band alone (microcosm#1164). Before it the recipient fell back to its HBAI net income, which put households in too low a band; the engine's household_gross_income would put them in too high a one, since it adds capital gains and the in-kind NHS, education and transport spending to cash income. The disconnection walk's seed-0 uniform order makes every group of households (dwelling type, income band, support channel) lose the same expected share of its drawn connected mass, so only the level of the drawn connection moves; the smallest-drawn-gas-first order it replaces piled the disconnections onto low-draw flats once the SPI support households drew gas from their own incomes, and NEED's Scottish property-type means then implied a level 2.6 % above the Scottish all-dwellings mean, a margin conflict the rake could not close. Bus fares are priced from journeys (microcosm#930), where the nts_bus_travel stage imputes each person's annual bus-in-London and other-local-bus trips and their concessionary eligibility, and the declared price_bus_journeys step sets bus_fare_spending as the sum over the household's non-eligible persons of trips times boardings per resident trip (the published BUS01 journeys over the published NTS0705a trips per resident times the ONS population) times the yield per fare-paying boarding (BUS05ai receipts over journeys less concessionary journeys; in England outside London only the older and disabled ones of BUS01c, as policyengine-uk prices it from 2.158.3), per area; bus-in-London trips take the London area's price for every resident, other-local-bus trips the price of the residence area (England outside London; Scotland and Northern Ireland from their own receipts and journeys with England's trip rate as the declared proxy); Wales is unpriced and keeps the raw draw. The chain still draws bus_fare_spending so later targets condition on the same raw draw; the emitted column is the priced value. The receipt records every factor, the frame-implied boardings beside the published ones and the frame's eligible trip share beside the publisher's concessionary boarding share, so the prior-weight fit of the bound receipts targets is read as a composition check, never a level the stage set; the #890 incidence draw and fare rake are retired. The 2024-25 diary (UKDS SN 9603, 2nd edition, whose household tab carries the annual weight as cal_weight_annual, the name weighta had; microcosm#1164) is moved to the base year by the declared uprate_donor_columns step (microcosm#890). Consumption columns and bus fares take the engine's CPI index from the April-to-March diary year, placed on the calendar-year index at three quarters of 2024 and one of 2025, back a quarter to calendar 2024 (microcosm#1113; the diary sits a quarter past it, so the factor is below one; the fare factor survives only where no fare cell levels the column, i.e. Wales). Income predictors take a factor of one: the diary year is the FRS 2024-25 year they are matched against. Petrol and diesel take the DESNZ pump-price times HMRC litres per head outturn from the vendored road_fuel_anchors.json, which sets only their donor distribution because the level step follows; the energy columns are exempt because the NEED 2024 shape at the DESNZ level and the QEP average prices paid set their level. The household adult and child counts (LCFS G018 and G019, the survey's age-18 split) predict on both sides; the recipient counts its members by age, not through the engine's is_adult and is_child flags, which policyengine-uk#1896 deprecates (uk-data#486, microcosm#1095). Road fuel incidence and level are set by two declared steps (microcosm#1113). The two-week diary leaves about a third of car-owning donors with no fuel purchase, which the chain reproduces among the households the fuel flag marks as fuel buyers, so the redraw_zero_road_fuel step redraws a flagged household that drew zero from the donor's distribution among households with positive road fuel, on the chain's predictors: a weighted regime-gated QRF draws the total, positive by construction, then the petrol share of it, at quantiles keyed on the household id; positive draws are kept. Then the level_road_fuel step, after the fuel flag has zeroed the households without a fuel car, scales petrol and diesel so their prior-weighted total equals ONS Consumer Trends household spending on COICOP 07.2.2 for calendar 2024 (the year of the DESNZ pump prices the donor uprating uses) less the donor's own other-fuels share of 07.2.2 (c72213), keeping the drawn mix. The diary's 07.2.2 has three lines (c72211 petrol, c72212 diesel and c72213, the other motor fuels and lubricants) and none for vehicle electricity. The LCFS diary records about a quarter less road fuel than ONS, and binding the OBR cars receipts had closed that gap by moving weight onto fuel-buying households; petrol and diesel therefore carry no committed support bound, like the other levelled columns. The totals that contain levelled columns are written back around them by the declared recompose_from_remainder step (microcosm#1113): each keeps its own chain draw less the chain's draws of the parts the stage re-levels, kept before any step touches them and floored at zero where the parts outgrow the total, and adds the levelled parts back, so housing_water_and_electricity_consumption is its draw less the drawn electricity and gas plus the levelled electricity and gas, and transport_consumption its draw less the drawn petrol, diesel and bus fares plus the levelled petrol and diesel and the priced bus fares. The chain draws each part after, and conditional on, its total, so the remainder is the chain's own split; a remainder drawn as a chain target of its own over-drew the vehicle-purchase tail of transport, 10 to 13 percent above the donor in-sample. The chain's domestic-energy target is the electricity and gas the stage derives from the diary's fuel, light and power (p537) by its labelled parts, from the LCF User Guide's derived-variable labels and P537 definition (microcosm#1164): each fuel's last account payment less its rebate (b489 electricity, b490 gas, read as the tab carries them; the stage refuses a donor where b489 equals b175 less b178, or b490 equals b170 less b173, to the penny for under 95 percent of that fuel's account payers, which pins the labels and the rebate's sign), its prepayment key or meter payment (b1751, b1701), its component of a combined utilities bill (b227 electricity, b226 gas) and of a combined key or meter payment (b2332, b2331), and the diary's second-dwelling account and slot-meter lines (c45112 and c45114, c45212 and c45214); what a combined payment leaves unsplit (the combined bill b231 less its rebate b174, and the combined key or meter payment b233, each less its parts) goes by the household's own electricity share where it pays for both fuels, and otherwise by the donor's mean share of the households that do, since a combined payment means the household pays for both; a donor with no such household fails. The diary's other fuels (central-heating oil b017 and c45312, bottled gas b018 and c45222, coal and coke c45411, wood and peat c45412, hot water, steam and ice c45511) are neither, and the donor_energy_split receipt records the split against p537: what reading refunds as zero adds, what the unclipped parts differ from p537 by, the weighted share of donors whose unclipped parts differ from their p537, and the account identity shares. The derivation it replaces read b226 as electricity by direct debit and b489 and b490 as prepayment payments, where the labels make them the gas component of a combined bill and the electricity and gas account payments less rebates. The liquid fuels (central-heating oil and paraffin with bottled gas, LPG with liquid) and the solid fuels (coal, coke, wood and peat) are drawn as liquid_fuel_consumption and solid_fuel_consumption, the inputs policyengine-uk 2.149.0 reads (pe-uk#2572; María's ruling of 2026-10-22), after the eighteen spend targets so that every earlier draw is the chain's own, uprated to calendar-2024 prices as every diary spend column is; the housing total nets their draws and adds them back unchanged, so it always holds them, and hot water, steam and ice stays in its remainder. The receipt records the published ONS 04.5.3 and 04.5.4 spend beside each fuel's donor total at diary prices and the frame's draw (published_fuels). Before the hold, each COICOP division's drawn spend per household (a recomposed total's remainder, any other division's whole draw) is set against the donor's mean of the same spend (for housing and transport, the donor's total less the same parts, since the levelled parts keep their published levels and are no over-draw); a division above the divisions' shared ratio, measured once before any levelling, comes down to it (María's rulings of 2026-10-23 and 2026-10-24, microcosm#1278; Vahid's review of microcosm#1383, item 9); the receipt records each division's ratio and factor and the shared ratio (division_levelling) and each recomposed total's levelling_factor. Each total is then held to the donor's realised maximum of that total (maximum_total: donor_support, the support every drawn column is clipped to; microcosm#1164), never below its parts, the excess coming out of its remainder: a remainder near the top of the diary's range plus levelled parts larger than the drawn ones would otherwise leave it. The two totals keep their committed support bounds, which the terminal support gate applies to the emitted frame; the recomposed_totals gate checks the declaration and the receipt, whose rows held at the maximum and weighted mass taken enter its identities. Every household spend column is at calendar-2024 prices as households paid them, the H5's year that policyengine-uk projects from and the calibration uprates to the calendar-2025 window (microcosm#1113): the diary columns by the CPI uprating to 2024, road fuel at ONS 07.2.2 for 2024, energy at DESNZ volume and QEP prices for 2024, and bus fares at each area's fiscal-year yield re-priced to 2024 by its fares index (the DfT local bus fares index by quarter for London and England outside London, Scotland's calendar-year index; Northern Ireland, which publishes no fares index, from its own yields of the two fiscal years 2024 overlaps, weighted three months and nine (microcosm#1207), in place of England's index, which carries the January 2025 rise in the English fare cap Northern Ireland did not have); the consumption_basis gate holds every level-setting step to that year. policyengine-uk applies the fiscal 2024-25 rules to model year 2024 (it samples each parameter at 30 April), so every levelled column sits about a quarter before the midpoint of the policy year it is taxed in; the calibration binds calendar-year facts as published and fiscal-year facts at the calendar window (María's rule of 2026-09-22). The stage receipt also reports, for each of the twelve COICOP divisions, the prior-weighted frame total against ONS Consumer Trends for the same calendar year less the classes a household diary does not record (02.3 narcotics, 04.2 owner-occupiers' imputed rent and 12.6.1 FISIM), on ONS's domestic concept, and the twelve together against the national concept as well; it is report-only (microcosm#1113). The report-only litres audit compares each fuel's frame litres with HMRC's clearances of that fuel scaled by the cars share of its road use, from the vendored DESNZ sub-national road transport fuel consumption by vehicle type and fuel (PolicyEngine/chronicle#322); the OBR cars share of fuel duty receipts, uniform across fuels, stays beside the total. The liquid fuels hold bottled gas (b018, c45222), which COICOP puts under 04.5.2 (gas) and ONS's 04.5.3 leaves out, so the receipt also gives the donor's liquid fuels without it; neither heating-fuel column is levelled to ONS: the donor's diary totals are about twice ONS's, and the frame's draws reach neither those nor ONS's, so a costing on either needs levelling to ONS first (Vahid's review of microcosm#1383, item 8). After its spend targets and the two fuels the chain draws five shares the derive step computes on the donor from the diary lines (microcosm#1359): tobacco's share of the off-trade alcohol and tobacco that make up P602 (c22111, c22121 and c22131 over those three and the seven lines of alcohol brought home, c21111 to c21311; P602 also sums narcotics, c23111, which the end-user tab does not carry), on-trade alcohol's share of restaurants and hotels (the eight lines of drinks away from home, cb111c to cb111j, over P611, clipped at one because the tab stores P611 to one decimal place), gambling stakes' share of recreation (the seven games-of-chance stake lines P609 sums, c94311 to c94316 and c94319: pools, bingo, lotteries, bookmaker and tote betting with gaming machines, and the National Lottery; the winnings lines beside them sit in no total), the National Lottery's share of those stakes (scratchcards and draws, c94316 and c94319, over the seven) and the betting and gaming share of the rest (football pools, bingo, and bookmaker and tote betting with gaming machines, c94311, c94312 and c94314, over the other five; society lotteries, c94313, and the Irish Lottery, c94315, pay no UK gambling duty). A household's tobacco, off-trade alcohol, on-trade alcohol and gambling stakes are its shares of the totals it carries, and its National Lottery and betting and gaming stakes its shares of its stakes, so the parts sum to the totals and no total, the VAT base included, moves; appended after the twenty targets, the shares move none of their draws. The shares and the spending they give are scratch, on no table; the report-only excise_shares receipt records each share on the frame beside the donor. The declared level_excise_quantities step turns that spending into policyengine-uk's excise inputs (microcosm#1359), so alcohol, tobacco and gambling duty stop scoring zero. Each national quantity is a published FY2024-25 figure from the vendored excise_facts.json, and the step gives each household its part in proportion to the spending that buys it, at prior weights (one factor per input, the level_road_fuel scaling), so the frame's weighted total of each input is the published one; a household that buys one product of a kind buys all of that kind in the national mix. Alcohol: each product's litres are HMRC's clearances of beer, cider, wine, spirits and other fermented products (the Alcohol Bulletin, in litres of pure alcohol) over the engine's own strength for the product, which policyengine-uk multiplies back, shared by off- and on-trade alcohol spending together; beer and cider take their draught shares from the clearances under draught relief, alone or with small producer relief, over all of their clearances, and the other products, whose draught clearances HMRC does not publish, keep the engine's zero, as does sparkling cider, which the bulletin counts within cider. A pound buys the same volume in a pub as in a shop under this rule, which leans the volume, and so the duty, towards on-trade drinkers: against a published on-trade volume share of about 27 percent, a pound spent in a pub is given about 1.6 times the volume it buys and a pound spent in a shop about 0.78 times, and about 11 percent of the volume sits with other households on the 2024-25 diary. No on-trade volume share can be archived (MESAS is a NielsenIQ and Circana dashboard with no fixed file), so the spending rule stands, its lean documented (María's ruling of 2026-10-23). Tobacco: cigarettes a week and grams a week of hand-rolling tobacco, cigars and other tobacco are HMRC's clearances (the Tobacco Bulletin) over the engine's 52 weeks, shared by tobacco spending; heated tobacco sits within other tobacco in the bulletin, so it is charged at the other-tobacco rate and its own input keeps the engine's zero. Gambling: each input is its duty's dutiable base, HMRC's cash receipts for the duty (the Betting and Gaming bulletin) or Machine Games Duty's declared liabilities for the band, over the engine's FY2024-25 rate (Gaming Duty over the engine's effective-rate proxy for it), so the engine charges back the published receipts. General Betting Duty's base, its receipts over the fixed-odds rate, is split over the land-based fixed-odds, remote horse-racing, remote other, exchange and horse-and-dog pool inputs by the Gambling Commission's gross gambling yield for Great Britain, remote fixed-odds betting by the horse-racing share of all remote betting yield, since the Commission publishes no betting activity by event; its horse racing is not only UK racing, so the remote UK horse-racing input is overstated and, from April 2027, when the engine charges other remote betting at 25 percent, too much of the base stays at 15 percent and the rise is understated; and its pool betting can hold pools on other events, such as football pools, which pay Pool Betting Duty. Spread betting, which the Commission does not regulate, has no published base and keeps the engine's zero. Lottery Duty's base is shared by the National Lottery stakes and every other gambling base by the betting and gaming stakes, since the diary cannot tell remote from land-based play or one betting product from another; the society and Irish lotteries carry none. Both keys are first brought to published participation by the declared top_up_gambling_participation step (microcosm#1359; María's ruling of 2026-10-25). The diary records a stake for about a fifth of the households the Gambling Commission's Gambling Survey for Great Britain 2025 implies (PolicyEngine/chronicle#391), and under any steady rate of play a two-week diary sees at least half of the four-week players, so the gap is play the diary misses, not its window. Each adult's chance of playing in four weeks and in twelve months is GSGB's published rate for its sex and age band (tables B.1 and B.3), as the union of a key's activities (table B.9: the National Lottery's draws, scratchcards and online instant-win games; betting, bingo, casino games, fruit and slots, football pools, other online instant-win games and other gambling), taken as independent within the population that plays any of them (all gamblers, or those who play more than lottery draws). A household plays when any adult does, combined at theta: 1 - (1 - p_max) x prod(1 - p_other)^theta, where 0 is one player per household and 1 adults who play independently. Theta is fitted on the donor so that GSGB's rates, applied to the donors' own adults, give the diary's ratio of the two-adult to the one-adult household rate, in which under-recording cancels if it is the same for both: 0.9 for the National Lottery, whose couples mostly buy their own tickets, and 0.08 for betting and gaming, mostly one adult's. Within nine strata (one, two, or three or more adults, by the youngest adult's age band: 18 to 34, 35 to 54, 55 and over), households without a stake are added by the gas connection walk's weight-fitting rule, in an identity-keyed order drawn in proportion to a regularised donor propensity (on the chain's predictors and spend draws, with recreation net of its gambling stakes, so that a recorded stake does not predict itself) times the household's published chance, first to the stratum's four-week share (regular players) and then on to its twelve-month share (occasional players); households the diary saw keep their stakes and count as regular. An added household's stake is a draw from the donor's positive stakes at a quantile keyed on its id, scaled so the added regular players' mean is the mean of the households the diary saw, and an occasional player's is a tenth of that. Both are assumptions: a two-week diary is more likely to catch frequent players, so the households it saw are probably the heavier players and equal means spread the base more evenly than play probably is; the tenth stands until GSGB publishes how often people play. The keys only re-share the bases: the stored spending stays the drawn one, so an added household's stakes are not in its recorded recreation spending. The gambling_participation gate recomputes the rates from the vendored rows, checks every stratum's shares, and holds each key's stake scale within 0.5 to 2, so a broken stake draw that the scaling would hide fails it. Known biases: the quantities are levelled to the published figures while spending and the diary's incidence stay at survey level (María's ruling of 2026-10-23), so a household's alcohol or tobacco duty is one multiple of its own spending, the same for every household that carries it: at prior weights alcohol duty is about 0.41 times alcohol spending and tobacco duty about 2.2 times tobacco spending, since the diary records a fraction of what is bought; VAT on the same goods stays on the survey base. Tobacco duty also sits on fewer households than smoke: 8.2 percent of households carry it, against 11.9 percent of UK adults who smoked cigarettes in 2023 (ONS), while the share of households with a smoker is above the adult rate; the duty per carrying household is higher by the same factor. Part of the gap is the frame's: the chain's share draws come out zero more often than the donors' (10.3 percent of donors carry tobacco), mostly within households that carry the parent total. The gambling duties sit on the households the top-up brings to participation: 62.7 percent of households carry Lottery Duty and 29.8 percent the other gambling duties, against 10.7 and 2.0 percent on the diary's draws alone, and 47 percent of adults in Great Britain who gambled in the past four weeks of 2025 (27 percent once lottery-draw-only players are left out). The top-up's own biases: GSGB is taken as the level, though the Gambling Commission's guidance on its statistics reports that an invitation that mentions gambling raised participation estimates, and that its experiment could not conclude which estimates are the more accurate; under-recording is taken as even across households, so the donor propensity carries the diary's gradient by income, tenure, region and spending; the activity unions take activities as independent within their population, which GSGB's table B.13 rules out among players (45 percent of four-week gamblers took part in one activity, against 26 percent under independence), but a model in which each adult's activities share an intensity, which comes within 2.5 points of that share in every age band, moves neither key's union by more than 9 percent in any age band, nor the share of households carrying either key by more than 0.1 points; theta is one per key, fits households of three or more adults less well, and takes the share carrying betting and gaming from 28.5 percent at 0 to 41.2 percent at 1; the stake assumptions above; and GSGB covers adults in Great Britain in calendar 2025, so Northern Ireland's adults take its rates, against the FY2024-25 bases. On the real spine at prior weights, the share of households carrying the National Lottery rises from 51.5 percent in the bottom equivalised-income decile to 67.3 percent in the top, and betting and gaming from 26.8 to 34.8 percent, whose top decile holds 25.3 percent of the base; on the diary's draws alone betting and gaming is almost flat (1.9 to 2.1 percent, 18.9 percent of the base in the top decile). Ordered by the published chance alone, betting and gaming would run from 29.2 to 29.8 percent and the Lottery from 57.0 to 67.9 percent with GSGB's age mix, but neither key's regional pattern would follow GSGB's. With the propensity, the Lottery's does (a correlation of 0.67 across Great Britain's eleven regions, London lowest, as in GSGB), and betting and gaming's barely (0.11). Other tobacco (c22131) includes e-cigarette refills, so the tobacco inputs also follow vaping spending and a household that only vapes carries tobacco duty; Vaping Products Duty, from 1 October 2026, needs a key of its own. The draught shares are national constants, so a household that buys alcohol only in shops takes the same draught relief as one that drinks in pubs. The quantities are FY2024-25's, the excise year policyengine-uk charges in model year 2024 (its excise year runs from 6 April), and the engine holds them flat after it (PolicyEngine/policyengine-uk#2596). The step moves no spending column; the excise_quantities gate recomputes every level from the vendored rows." + "notes": "Ports the incumbent LCFS consumption QRF, including NEED energy raking, with adjudicated weighted fits and an identity-keyed seed-0 fuel flag. The vehicle count is a numeric QRF predictor on both sides (LCFS a124 on the donor, the was_wealth draw of WAS vcarnr8 on the recipient, both clipped to 0-5), which retires the incumbent's WAS-to-LCFS has-fuel bridge (microcosm#890 A). The recipient fuel flag draws each of a household's vehicles as zero-emission at the battery-electric and fuel-cell share of the vendored DfT VEH1103 licensed-car stock (2024, Great Britain; plug-in hybrids count as fuel buyers), replacing the hand-copied NTS share (microcosm#890 E2): a household with vehicles buys fuel unless every one of them is zero-emission, so it is flagged at one minus that share raised to its vehicle count, and a one-vehicle household keeps the draw it had when the whole household was drawn at once (microcosm#1278; before, a household with several vehicles was all one or the other). The frame holds no fuel type, so the draw, keyed on the household identity, is what makes a vehicle-owning household a fuel buyer. Since microcosm#1095 B3 (J2) the per-car zero-emission share follows the household's income fifth: the national share times the fifth's relative risk among the cars NTS households keep (UK Data Service SN 5340, survey years 2022-2024, at the interview weight W3; zero-emission in the DVLA-linked 0 g/km CO2 band, the about three in ten cars without a linked band left out, as missing at random within their fifth), normalised over the frame's cars so the national share is the licensed-car one. The NTS ranks England's households by total gross income, McClements-equivalised, so the frame ranks household_gross_income over the engine's before-housing-costs equivalence scale, in household-weighted fifths; a fifth on fewer than 10 zero-emission NTS cars would pool with its neighbour (a statistical floor, not the disclosure floor of 3). The uniforms are the same, so only the threshold moves. With the redraw of microcosm#1113 every flagged household buys fuel, so this flag alone sets fuel incidence; within an income fifth, who holds the zero-emission cars stays random. The household input uses_energy_prepayment_meter, which policyengine-uk reads for the July 2023 to March 2024 Energy Price Guarantee prepayment discount (PolicyEngine/policyengine-uk#2098, from 2.123.3), is drawn by the declared impute_prepayment_meter step (microcosm#1110): the donor prepays when it last put money on an electricity, gas or combined key or meter (b1751, b1701, b233, which the LCF asks only of prepayment-meter households) or its diary records a slot-meter payment (c45114, c45214), so electricity-only prepayment counts and a household with no meter payment, including one that did not answer, does not; a weighted regime-gated QRF on the chain's predictors fits that flag and each recipient draws it at uniforms keyed on its household id, which moves no other draw. The release exports it: policyengine-uk reads it from 2.123.3 and an older engine, Microcosm's locked one among them, ignores a column it does not know; the incumbent does not carry it until uk-data#539, so it is a reviewed extra column of the export surface. The frame flags about 3.0 million Great Britain households (10.5 %) at prior weights, against the around three million prepayment households the government counted when the discount began in July 2023 (a different reference period, households in both). Energy support clipping is exempt because NEED raking governs those columns. Bus fares are clipped to donor support before the pricing step (María's rulings 2026-09-15 and 2026-09-17), which bounds the region no area prices (Wales keeps the chain's raw draw) while the priced regions move beyond donor support afterwards; for that reason the column carries no committed support bound for the terminal gate. Domestic energy is raked in kWh to the NEED 2024 shape at the DESNZ level and priced at the average prices paid (microcosm#890 F, chronicle#270), where both NEED rakes take their mean-kWh margins from the vendored NEED 2024 tables (England and Wales by income band, tenure, property type and region; Scotland by income band, tenure and property type with the all-dwellings mean as its region margin; Northern Ireland untouched), the declared price_domestic_energy step converts spend to kWh and back at each household's QEP price region through the committed crosswalk using the calendar-2024 average variable unit cost and fixed cost across payment methods, standard metering, including VAT (Northern Ireland gas at the UK average because QEP publishes no Northern Ireland gas row), a gas fixed cost only for connected households, the gas connection imposed on the recipient frame at the published share of each region (DESNZ subnational gas meters over electricity meters, 2024) by disconnecting gas-positive households in an identity-keyed uniform order, skipping a household whose weight would overshoot the published share (Northern Ireland has no subnational row and keeps the positive-gas rule), and, where the draw leaves a region below its share, by the declared connect_rule (microcosm#1164): two weighted fits on the chain's predictors give each zero-gas household the probability that a donor like it pays for gas (a gradient-boosted classifier of the donor's gas payers) and the gas such a donor pays (a regime-gated QRF of the payers' gas spend, at quantiles keyed on the household id), and the region's zero-gas households are connected in an identity-keyed order drawn in proportion to that probability, by the same weight-fitting walk, until the share is met. The labelled energy split leaves about 80 % of donors paying for gas against the about 85 % of homes DESNZ counts gas meters for (the derivation it replaced gave gas to 98 %), so without the connect leg nine of the eleven Great Britain regions fell short of their share, and after the four-margin NEED rake one factor per fuel scales the kWh so the prior-weighted frame total equals the fuel's declared level for calendar 2024: for gas the DESNZ Energy Trends domestic consumption at actual temperature summed over the four quarters, and for electricity, the one fuel in spend_level_fuels (microcosm#1418), the kWh the ONS Consumer Trends 04.5.1 household spending buys at QEP's United Kingdom average prices once the standing charges of every UK domestic meter DESNZ counts come off (gas stays on Energy Trends while ONS 04.5.2 counts bottled gas, microcosm#1095); NEED gas means are per gas-metered household, so the gas kWh margins are raked over connected households only while electricity is raked over every household, and the energy_rake gate recomputes every NEED mean, the DESNZ level and the connection shares from the vendored rows. After the level, no household is left above the domestic meter definitions behind the DESNZ total (NEED Annex B: gas meters under 73,200 kWh a year, electricity meters under 50,000 kWh on profile classes 1 and 2; María's ruling of 2026-10-12 on microcosm#1207's extreme energy values): the declared household_kwh_ceiling caps a household there, the households below it in the capped households' own NEED cells are re-raked to those cells' levelled means, and a proportional step restores the DESNZ total (microcosm#1164); the receipt counts the households capped and the share of the total they gave up, and the energy_rake gate checks both. Mobile homes have no NEED property-type row, so the rake takes them to the all-dwellings mean, the incumbent's translation; where every mobile home of a NEED geography draws a spend at or below the standing charge, that cell has no kWh for the rake to scale, and the declared zero_kwh_cells_at_need_mean starts it at its NEED mean before the first sweep (microcosm#1240). The receipt lists the cells it started, and the energy_rake gate fails on a started cell the stage does not declare and on any other cell with a zero mean. Both rakes band households on gross income, NEED's concept: the donor on LCFS p344p, cash income before tax, National Insurance, council tax and pension contributions, and the recipient on the same concept, its HBAI net income with the deductions policyengine-uk takes to reach it added back (council tax and domestic rates, income tax, National Insurance, student loan repayments, employee and personal pension contributions, maintenance and child payments, LVT), which the stage materializes for that band alone (microcosm#1164). Before it the recipient fell back to its HBAI net income, which put households in too low a band; the engine's household_gross_income would put them in too high a one, since it adds capital gains and the in-kind NHS, education and transport spending to cash income. The disconnection walk's seed-0 uniform order makes every group of households (dwelling type, income band, support channel) lose the same expected share of its drawn connected mass, so only the level of the drawn connection moves; the smallest-drawn-gas-first order it replaces piled the disconnections onto low-draw flats once the SPI support households drew gas from their own incomes, and NEED's Scottish property-type means then implied a level 2.6 % above the Scottish all-dwellings mean, a margin conflict the rake could not close. Bus fares are priced from journeys (microcosm#930), where the nts_bus_travel stage imputes each person's annual bus-in-London and other-local-bus trips and their concessionary eligibility, and the declared price_bus_journeys step sets bus_fare_spending as the sum over the household's non-eligible persons of trips times boardings per resident trip (the published BUS01 journeys over the published NTS0705a trips per resident times the ONS population) times the yield per fare-paying boarding (BUS05ai receipts over journeys less concessionary journeys; in England outside London only the older and disabled ones of BUS01c, as policyengine-uk prices it from 2.158.3), per area; bus-in-London trips take the London area's price for every resident, other-local-bus trips the price of the residence area (England outside London; Scotland and Northern Ireland from their own receipts and journeys with England's trip rate as the declared proxy); Wales is unpriced and keeps the raw draw. The chain still draws bus_fare_spending so later targets condition on the same raw draw; the emitted column is the priced value. The receipt records every factor, the frame-implied boardings beside the published ones and the frame's eligible trip share beside the publisher's concessionary boarding share, so the prior-weight fit of the bound receipts targets is read as a composition check, never a level the stage set; the #890 incidence draw and fare rake are retired. The 2024-25 diary (UKDS SN 9603, 2nd edition, whose household tab carries the annual weight as cal_weight_annual, the name weighta had; microcosm#1164) is moved to the base year by the declared uprate_donor_columns step (microcosm#890). Consumption columns and bus fares take the engine's CPI index from the April-to-March diary year, placed on the calendar-year index at three quarters of 2024 and one of 2025, back a quarter to calendar 2024 (microcosm#1113; the diary sits a quarter past it, so the factor is below one; the fare factor survives only where no fare cell levels the column, i.e. Wales). Income predictors take a factor of one: the diary year is the FRS 2024-25 year they are matched against. Petrol and diesel take the DESNZ pump-price times HMRC litres per head outturn from the vendored road_fuel_anchors.json, which sets only their donor distribution because the level step follows; the energy columns are exempt because the NEED 2024 shape at the DESNZ level and the QEP average prices paid set their level. The household adult and child counts (LCFS G018 and G019, the survey's age-18 split) predict on both sides; the recipient counts its members by age, not through the engine's is_adult and is_child flags, which policyengine-uk#1896 deprecates (uk-data#486, microcosm#1095). Road fuel incidence and level are set by two declared steps (microcosm#1113). The two-week diary leaves about a third of car-owning donors with no fuel purchase, which the chain reproduces among the households the fuel flag marks as fuel buyers, so the redraw_zero_road_fuel step redraws a flagged household that drew zero from the donor's distribution among households with positive road fuel, on the chain's predictors: a weighted regime-gated QRF draws the total, positive by construction, then the petrol share of it, at quantiles keyed on the household id; positive draws are kept. Then the level_road_fuel step, after the fuel flag has zeroed the households without a fuel car, scales petrol and diesel so their prior-weighted total equals ONS Consumer Trends household spending on COICOP 07.2.2 for calendar 2024 (the year of the DESNZ pump prices the donor uprating uses) less the donor's own other-fuels share of 07.2.2 (c72213). Since microcosm#1095 B3 (K) each fuel is levelled to that total times its share of household-paid spend, so the total stays and each household's spend within a fuel keeps its relative size, but the diary's petrol/diesel mix gives way to the household one: HMRC's FY2024-25 litres of the fuel times DESNZ's cars share of its road use (the litres audit's benchmark), times the NTS household-paid share of car miles, at the 2024 pump prices. A kept car's private and commuting miles are household-paid, its business miles and every company-car mile are not, and England stands for the UK. The diary's 07.2.2 has three lines (c72211 petrol, c72212 diesel and c72213, the other motor fuels and lubricants) and none for vehicle electricity. The LCFS diary records about a quarter less road fuel than ONS, and binding the OBR cars receipts had closed that gap by moving weight onto fuel-buying households; petrol and diesel therefore carry no committed support bound, like the other levelled columns. The totals that contain levelled columns are written back around them by the declared recompose_from_remainder step (microcosm#1113): each keeps its own chain draw less the chain's draws of the parts the stage re-levels, kept before any step touches them and floored at zero where the parts outgrow the total, and adds the levelled parts back, so housing_water_and_electricity_consumption is its draw less the drawn electricity and gas plus the levelled electricity and gas, and transport_consumption its draw less the drawn petrol, diesel and bus fares plus the levelled petrol and diesel and the priced bus fares. The chain draws each part after, and conditional on, its total, so the remainder is the chain's own split; a remainder drawn as a chain target of its own over-drew the vehicle-purchase tail of transport, 10 to 13 percent above the donor in-sample. The chain's domestic-energy target is the electricity and gas the stage derives from the diary's fuel, light and power (p537) by its labelled parts, from the LCF User Guide's derived-variable labels and P537 definition (microcosm#1164): each fuel's last account payment less its rebate (b489 electricity, b490 gas, read as the tab carries them; the stage refuses a donor where b489 equals b175 less b178, or b490 equals b170 less b173, to the penny for under 95 percent of that fuel's account payers, which pins the labels and the rebate's sign), its prepayment key or meter payment (b1751, b1701), its component of a combined utilities bill (b227 electricity, b226 gas) and of a combined key or meter payment (b2332, b2331), and the diary's second-dwelling account and slot-meter lines (c45112 and c45114, c45212 and c45214); what a combined payment leaves unsplit (the combined bill b231 less its rebate b174, and the combined key or meter payment b233, each less its parts) goes by the household's own electricity share where it pays for both fuels, and otherwise by the donor's mean share of the households that do, since a combined payment means the household pays for both; a donor with no such household fails. The diary's other fuels (central-heating oil b017 and c45312, bottled gas b018 and c45222, coal and coke c45411, wood and peat c45412, hot water, steam and ice c45511) are neither, and the donor_energy_split receipt records the split against p537: what reading refunds as zero adds, what the unclipped parts differ from p537 by, the weighted share of donors whose unclipped parts differ from their p537, and the account identity shares. The derivation it replaces read b226 as electricity by direct debit and b489 and b490 as prepayment payments, where the labels make them the gas component of a combined bill and the electricity and gas account payments less rebates. The liquid fuels (central-heating oil and paraffin with bottled gas, LPG with liquid) and the solid fuels (coal, coke, wood and peat) are drawn as liquid_fuel_consumption and solid_fuel_consumption, the inputs policyengine-uk 2.149.0 reads (pe-uk#2572; María's ruling of 2026-10-22), after the eighteen spend targets so that every earlier draw is the chain's own, uprated to calendar-2024 prices as every diary spend column is; the housing total nets their draws and adds them back unchanged, so it always holds them, and hot water, steam and ice stays in its remainder. The receipt records the published ONS 04.5.3 and 04.5.4 spend beside each fuel's donor total at diary prices and the frame's draw (published_fuels). Before the hold, each COICOP division's drawn spend per household (a recomposed total's remainder, any other division's whole draw) is set against the donor's mean of the same spend (for housing and transport, the donor's total less the same parts, since the levelled parts keep their published levels and are no over-draw); a division above the divisions' shared ratio, measured once before any levelling, comes down to it (María's rulings of 2026-10-23 and 2026-10-24, microcosm#1278; Vahid's review of microcosm#1383, item 9); the receipt records each division's ratio and factor and the shared ratio (division_levelling) and each recomposed total's levelling_factor. Each total is then held to the donor's realised maximum of that total (maximum_total: donor_support, the support every drawn column is clipped to; microcosm#1164), never below its parts, the excess coming out of its remainder: a remainder near the top of the diary's range plus levelled parts larger than the drawn ones would otherwise leave it. The two totals keep their committed support bounds, which the terminal support gate applies to the emitted frame; the recomposed_totals gate checks the declaration and the receipt, whose rows held at the maximum and weighted mass taken enter its identities. Every household spend column is at calendar-2024 prices as households paid them, the H5's year that policyengine-uk projects from and the calibration uprates to the calendar-2025 window (microcosm#1113): the diary columns by the CPI uprating to 2024, road fuel at ONS 07.2.2 for 2024, energy at DESNZ volume and QEP prices for 2024, and bus fares at each area's fiscal-year yield re-priced to 2024 by its fares index (the DfT local bus fares index by quarter for London and England outside London, Scotland's calendar-year index; Northern Ireland, which publishes no fares index, from its own yields of the two fiscal years 2024 overlaps, weighted three months and nine (microcosm#1207), in place of England's index, which carries the January 2025 rise in the English fare cap Northern Ireland did not have); the consumption_basis gate holds every level-setting step to that year. policyengine-uk applies the fiscal 2024-25 rules to model year 2024 (it samples each parameter at 30 April), so every levelled column sits about a quarter before the midpoint of the policy year it is taxed in; the calibration binds calendar-year facts as published and fiscal-year facts at the calendar window (María's rule of 2026-09-22). The stage receipt also reports, for each of the twelve COICOP divisions, the prior-weighted frame total against ONS Consumer Trends for the same calendar year less the classes a household diary does not record (02.3 narcotics, 04.2 owner-occupiers' imputed rent and 12.6.1 FISIM), on ONS's domestic concept, and the twelve together against the national concept as well; it is report-only (microcosm#1113). The report-only litres audit compares each fuel's frame litres with HMRC's clearances of that fuel scaled by the cars share of its road use, from the vendored DESNZ sub-national road transport fuel consumption by vehicle type and fuel (PolicyEngine/chronicle#322); the OBR cars share of fuel duty receipts, uniform across fuels, stays beside the total. The liquid fuels hold bottled gas (b018, c45222), which COICOP puts under 04.5.2 (gas) and ONS's 04.5.3 leaves out, so the receipt also gives the donor's liquid fuels without it; neither heating-fuel column is levelled to ONS: the donor's diary totals are about twice ONS's, and the frame's draws reach neither those nor ONS's, so a costing on either needs levelling to ONS first (Vahid's review of microcosm#1383, item 8). After its spend targets and the two fuels the chain draws five shares the derive step computes on the donor from the diary lines (microcosm#1359): tobacco's share of the off-trade alcohol and tobacco that make up P602 (c22111, c22121 and c22131 over those three and the seven lines of alcohol brought home, c21111 to c21311; P602 also sums narcotics, c23111, which the end-user tab does not carry), on-trade alcohol's share of restaurants and hotels (the eight lines of drinks away from home, cb111c to cb111j, over P611, clipped at one because the tab stores P611 to one decimal place), gambling stakes' share of recreation (the seven games-of-chance stake lines P609 sums, c94311 to c94316 and c94319: pools, bingo, lotteries, bookmaker and tote betting with gaming machines, and the National Lottery; the winnings lines beside them sit in no total), the National Lottery's share of those stakes (scratchcards and draws, c94316 and c94319, over the seven) and the betting and gaming share of the rest (football pools, bingo, and bookmaker and tote betting with gaming machines, c94311, c94312 and c94314, over the other five; society lotteries, c94313, and the Irish Lottery, c94315, pay no UK gambling duty). A household's tobacco, off-trade alcohol, on-trade alcohol and gambling stakes are its shares of the totals it carries, and its National Lottery and betting and gaming stakes its shares of its stakes, so the parts sum to the totals and no total, the VAT base included, moves; appended after the twenty targets, the shares move none of their draws. The shares and the spending they give are scratch, on no table; the report-only excise_shares receipt records each share on the frame beside the donor. The declared level_excise_quantities step turns that spending into policyengine-uk's excise inputs (microcosm#1359), so alcohol, tobacco and gambling duty stop scoring zero. Each national quantity is a published FY2024-25 figure from the vendored excise_facts.json, and the step gives each household its part in proportion to the spending that buys it, at prior weights (one factor per input, the level_road_fuel scaling), so the frame's weighted total of each input is the published one; a household that buys one product of a kind buys all of that kind in the national mix. Alcohol: each product's litres are HMRC's clearances of beer, cider, wine, spirits and other fermented products (the Alcohol Bulletin, in litres of pure alcohol) over the engine's own strength for the product, which policyengine-uk multiplies back, shared by off- and on-trade alcohol spending together; beer and cider take their draught shares from the clearances under draught relief, alone or with small producer relief, over all of their clearances, and the other products, whose draught clearances HMRC does not publish, keep the engine's zero, as does sparkling cider, which the bulletin counts within cider. A pound buys the same volume in a pub as in a shop under this rule, which leans the volume, and so the duty, towards on-trade drinkers: against a published on-trade volume share of about 27 percent, a pound spent in a pub is given about 1.6 times the volume it buys and a pound spent in a shop about 0.78 times, and about 11 percent of the volume sits with other households on the 2024-25 diary. No on-trade volume share can be archived (MESAS is a NielsenIQ and Circana dashboard with no fixed file), so the spending rule stands, its lean documented (María's ruling of 2026-10-23). Tobacco: cigarettes a week and grams a week of hand-rolling tobacco, cigars and other tobacco are HMRC's clearances (the Tobacco Bulletin) over the engine's 52 weeks, shared by tobacco spending; heated tobacco sits within other tobacco in the bulletin, so it is charged at the other-tobacco rate and its own input keeps the engine's zero. Gambling: each input is its duty's dutiable base, HMRC's cash receipts for the duty (the Betting and Gaming bulletin) or Machine Games Duty's declared liabilities for the band, over the engine's FY2024-25 rate (Gaming Duty over the engine's effective-rate proxy for it), so the engine charges back the published receipts. General Betting Duty's base, its receipts over the fixed-odds rate, is split over the land-based fixed-odds, remote horse-racing, remote other, exchange and horse-and-dog pool inputs by the Gambling Commission's gross gambling yield for Great Britain, remote fixed-odds betting by the horse-racing share of all remote betting yield, since the Commission publishes no betting activity by event; its horse racing is not only UK racing, so the remote UK horse-racing input is overstated and, from April 2027, when the engine charges other remote betting at 25 percent, too much of the base stays at 15 percent and the rise is understated; and its pool betting can hold pools on other events, such as football pools, which pay Pool Betting Duty. Spread betting, which the Commission does not regulate, has no published base and keeps the engine's zero. Lottery Duty's base is shared by the National Lottery stakes and every other gambling base by the betting and gaming stakes, since the diary cannot tell remote from land-based play or one betting product from another; the society and Irish lotteries carry none. Both keys are first brought to published participation by the declared top_up_gambling_participation step (microcosm#1359; María's ruling of 2026-10-25). The diary records a stake for about a fifth of the households the Gambling Commission's Gambling Survey for Great Britain 2025 implies (PolicyEngine/chronicle#391), and under any steady rate of play a two-week diary sees at least half of the four-week players, so the gap is play the diary misses, not its window. Each adult's chance of playing in four weeks and in twelve months is GSGB's published rate for its sex and age band (tables B.1 and B.3), as the union of a key's activities (table B.9: the National Lottery's draws, scratchcards and online instant-win games; betting, bingo, casino games, fruit and slots, football pools, other online instant-win games and other gambling), taken as independent within the population that plays any of them (all gamblers, or those who play more than lottery draws). A household plays when any adult does, combined at theta: 1 - (1 - p_max) x prod(1 - p_other)^theta, where 0 is one player per household and 1 adults who play independently. Theta is fitted on the donor so that GSGB's rates, applied to the donors' own adults, give the diary's ratio of the two-adult to the one-adult household rate, in which under-recording cancels if it is the same for both: 0.9 for the National Lottery, whose couples mostly buy their own tickets, and 0.08 for betting and gaming, mostly one adult's. Within nine strata (one, two, or three or more adults, by the youngest adult's age band: 18 to 34, 35 to 54, 55 and over), households without a stake are added by the gas connection walk's weight-fitting rule, in an identity-keyed order drawn in proportion to a regularised donor propensity (on the chain's predictors and spend draws, with recreation net of its gambling stakes, so that a recorded stake does not predict itself) times the household's published chance, first to the stratum's four-week share (regular players) and then on to its twelve-month share (occasional players); households the diary saw keep their stakes and count as regular. An added household's stake is a draw from the donor's positive stakes at a quantile keyed on its id, scaled so the added regular players' mean is the mean of the households the diary saw, and an occasional player's is a tenth of that. Both are assumptions: a two-week diary is more likely to catch frequent players, so the households it saw are probably the heavier players and equal means spread the base more evenly than play probably is; the tenth stands until GSGB publishes how often people play. The keys only re-share the bases: the stored spending stays the drawn one, so an added household's stakes are not in its recorded recreation spending. The gambling_participation gate recomputes the rates from the vendored rows, checks every stratum's shares, and holds each key's stake scale within 0.5 to 2, so a broken stake draw that the scaling would hide fails it. Known biases: the quantities are levelled to the published figures while spending and the diary's incidence stay at survey level (María's ruling of 2026-10-23), so a household's alcohol or tobacco duty is one multiple of its own spending, the same for every household that carries it: at prior weights alcohol duty is about 0.41 times alcohol spending and tobacco duty about 2.2 times tobacco spending, since the diary records a fraction of what is bought; VAT on the same goods stays on the survey base. Tobacco duty also sits on fewer households than smoke: 8.2 percent of households carry it, against 11.9 percent of UK adults who smoked cigarettes in 2023 (ONS), while the share of households with a smoker is above the adult rate; the duty per carrying household is higher by the same factor. Part of the gap is the frame's: the chain's share draws come out zero more often than the donors' (10.3 percent of donors carry tobacco), mostly within households that carry the parent total. The gambling duties sit on the households the top-up brings to participation: 62.7 percent of households carry Lottery Duty and 29.8 percent the other gambling duties, against 10.7 and 2.0 percent on the diary's draws alone, and 47 percent of adults in Great Britain who gambled in the past four weeks of 2025 (27 percent once lottery-draw-only players are left out). The top-up's own biases: GSGB is taken as the level, though the Gambling Commission's guidance on its statistics reports that an invitation that mentions gambling raised participation estimates, and that its experiment could not conclude which estimates are the more accurate; under-recording is taken as even across households, so the donor propensity carries the diary's gradient by income, tenure, region and spending; the activity unions take activities as independent within their population, which GSGB's table B.13 rules out among players (45 percent of four-week gamblers took part in one activity, against 26 percent under independence), but a model in which each adult's activities share an intensity, which comes within 2.5 points of that share in every age band, moves neither key's union by more than 9 percent in any age band, nor the share of households carrying either key by more than 0.1 points; theta is one per key, fits households of three or more adults less well, and takes the share carrying betting and gaming from 28.5 percent at 0 to 41.2 percent at 1; the stake assumptions above; and GSGB covers adults in Great Britain in calendar 2025, so Northern Ireland's adults take its rates, against the FY2024-25 bases. On the real spine at prior weights, the share of households carrying the National Lottery rises from 51.5 percent in the bottom equivalised-income decile to 67.3 percent in the top, and betting and gaming from 26.8 to 34.8 percent, whose top decile holds 25.3 percent of the base; on the diary's draws alone betting and gaming is almost flat (1.9 to 2.1 percent, 18.9 percent of the base in the top decile). Ordered by the published chance alone, betting and gaming would run from 29.2 to 29.8 percent and the Lottery from 57.0 to 67.9 percent with GSGB's age mix, but neither key's regional pattern would follow GSGB's. With the propensity, the Lottery's does (a correlation of 0.67 across Great Britain's eleven regions, London lowest, as in GSGB), and betting and gaming's barely (0.11). Other tobacco (c22131) includes e-cigarette refills, so the tobacco inputs also follow vaping spending and a household that only vapes carries tobacco duty; Vaping Products Duty, from 1 October 2026, needs a key of its own. The draught shares are national constants, so a household that buys alcohol only in shops takes the same draught relief as one that drinks in pubs. The quantities are FY2024-25's, the excise year policyengine-uk charges in model year 2024 (its excise year runs from 6 April), and the engine holds them flat after it (PolicyEngine/policyengine-uk#2596). The step moves no spending column; the excise_quantities gate recomputes every level from the vendored rows. Since microcosm#1095 B3 the declared assign_car_attributes_from_nts step writes policyengine-uk's vehicle excise duty inputs, which no stage wrote, so every household's duty was zero: a household's vehicles less its members' company cars (an employer pays their duty) go one to each other adult, oldest first, a car beyond the adults left out (policyengine-uk holds one car a person); a household the fuel flag leaves without road fuel keeps zero-emission cars only, and one that buys fuel holds a petrol, diesel or other car first and further cars at its own per-car zero-emission share; each car is a kept NTS car of its class in the household's income fifth, drawn at its interview weight scaled to its fifth and age band's kept cars (fewer of the newest and oldest cars carry the registration record its CO2 bands come from), giving car_fuel_type (a diesel registered from 2021 meets RDE2), car_co2_emissions (its band's midpoint on the scale its duty regime reads), car_engine_size (none for a zero-emission car), car_first_registration_date (the reference date of 1 October 2025 less its age, drawn uniformly within its NTS band, so each car keeps its age; the open band of over 18 years closes at 25) and car_is_ved_exempt (DLA's higher-rate or PIP's enhanced mobility component exempts the member's own car, or the oldest car-holder's in their benefit unit). The list price keeps the engine's default, so no car pays the expensive-car supplement. Vehicle excise duty is measured, never bound: no target carries it." }, { "stage": "etb_vat", @@ -6175,7 +6325,6 @@ "kind": "zero_spi_channel_reports", "rows": "spi_synthetic_support_channel", "columns": [ - "jsa_contrib_reported", "jsa_income_reported", "esa_income_reported", "income_support_reported", @@ -6199,6 +6348,21 @@ "linkage": "person_source_id -> FRS-channel person_id", "reason": "follows an injury, service or a death, not income" }, + { + "kind": "restore_spi_channel_reports_from_source_within_earnings_limit", + "rows": "spi_synthetic_support_channel", + "columns": [ + "jsa_contrib_reported", + "esa_contrib_reported" + ], + "linkage": "person_source_id -> FRS-channel person_id", + "earnings": "(employment_income + max(self_employment_income, 0)) / 52, the SPI row's own", + "weekly_limit": "esa_contrib_reported: up to policyengine-uk esa_exempt_work_higher_earnings_limit (ESA Regs 2008 reg 45(4)); jsa_contrib_reported: below the age-related amount (gov.dwp.JSA.contrib.amount_18_24 under 25, amount_over_25 from 25) plus gov.dwp.JSA.contrib.earn_disregard, the prescribed amount being that sum less 1p (JSA Regs 1996 reg 56); weekly, at the frame's year", + "hours": "hours_worked / 52, the twin's usual hours, which the SPI row keeps", + "weekly_hours_limit": "esa_contrib_reported: below gov.dwp.ESA.exempt_work.hours_limit (ESA Regs 2008 reg 45(4)); jsa_contrib_reported: below gov.dwp.JSA.remunerative_work.claimant_hours (JSA Regs 1996 reg 51(1)(a)); weekly, at the frame's year", + "award": "esa_contrib_reported: the twin's; jsa_contrib_reported: the lower of the twin's and 52 times the age-related amount less the earnings above the disregard (Jobseekers Act 1995 s. 4(1)(b), JSA Regs 1996 reg 80); nil outside the limits", + "reason": "a contributory award follows the person's National Insurance record and, for ESA, incapacity, which the copy keeps, but not work outside each benefit's own earnings and hours limits" + }, { "kind": "derive", "scope": "disability categories and flags re-derived on SPI-channel rows from the final reports with the frs_disability rule at its declared year; the categories, which read only AA, DLA and PIP, asserted unchanged" @@ -6238,7 +6402,6 @@ ], "outputs": [], "rewrites": [ - "jsa_contrib_reported", "jsa_income_reported", "esa_income_reported", "income_support_reported", @@ -6251,13 +6414,15 @@ "bsp_reported", "war_widows_pension_reported", "widowed_parents_allowance_reported", + "jsa_contrib_reported", + "esa_contrib_reported", "is_disabled_for_benefits", "is_enhanced_disabled_for_benefits", "is_severely_disabled_for_benefits", "receives_benefits_in_own_right", "would_claim_uc" ], - "notes": "Runs on SPI-channel rows after uc_reporter_redraw, the last writer of Universal Credit reports, and before uc_capital_coherence and the Pension Credit, Child Benefit and Carer's Allowance take-up stages (microcosm#1095, uk-data#514). The stage-2 forests of hmrc_spi_income_spine re-impute each SPI adult's benefit reports from age, gender, region and the new incomes, with nothing of the benefit unit's entitlement or claim history. This stage zeroes the SPI rows' contributory and income-based JSA, income-related ESA, Income Support, Working and Child Tax Credit, Severe Disablement Allowance and Sure Start Maternity Grant reports, whose award needs an existing legacy claim, an out-of-work test, or a claim the copied household's new incomes cannot carry (policyengine-uk pays income-related ESA as reported behind a capital test alone); restores Industrial Injuries Disablement Benefit, the Armed Forces Compensation Scheme and bereavement support from the FRS twin (person_source_id), since they follow an injury, service or a death; re-derives the disability flags (the categories, which read only AA, DLA and PIP, are asserted unchanged) and receives_benefits_in_own_right from the final reports; and redraws would_claim_uc for SPI benefit units as frs_take_up draws it for FRS units: a unit with a Universal Credit reporter claims, and the other units in frs_take_up's Universal Credit population (a UC claimant or partner aged 18 to under Pension Credit qualifying age) claim as the residual of the contract's universal_credit rate on draws keyed on the SPI unit's own identity. That draw stands for a unit with no award; uc_take_up redraws every entitled unit of both channels by award band and family type once uc_capital_coherence has set the capital the engine assesses (microcosm#1334). Contributory ESA, PIP, DLA, AA, Carer's Allowance, State Pension and Winter Fuel Payment keep their draws (carers_allowance_take_up later opens the Carer's Allowance claim flag to carers over the earnings limit, microcosm#1319), and FRS rows are never modified; contributory ESA is open to new claims and not income-tested, and the incapacity it needs follows the person, whose health and disability reports the SPI copy keeps." + "notes": "Runs on SPI-channel rows after uc_reporter_redraw, the last writer of Universal Credit reports, and before uc_capital_coherence and the Pension Credit, Child Benefit and Carer's Allowance take-up stages (microcosm#1095, uk-data#514). The stage-2 forests of hmrc_spi_income_spine re-impute each SPI adult's benefit reports from age, gender, region and the new incomes, with nothing of the benefit unit's entitlement or claim history. This stage zeroes the SPI rows' income-based JSA, income-related ESA, Income Support, Working and Child Tax Credit, Severe Disablement Allowance and Sure Start Maternity Grant reports, whose award needs an existing legacy claim, an out-of-work test, or a claim the copied household's new incomes cannot carry (policyengine-uk pays income-related ESA as reported behind a capital test alone); restores Industrial Injuries Disablement Benefit, the Armed Forces Compensation Scheme and bereavement support from the FRS twin (person_source_id), since they follow an injury, service or a death; gives contributory JSA and ESA the FRS twin's award where the copy's own work stays within each benefit's limits, and none outside them, since a contributory award follows the person's National Insurance record and, for ESA, incapacity, which the copy keeps, but not the copy's work (María's ruling of 29 October 2026, microcosm#1095 B10): ESA's permitted work, under 16 hours a week and earnings up to policyengine-uk's esa_exempt_work_higher_earnings_limit, and JSA's own limits (Vahid's review of microcosm#1426), under 16 hours a week and earnings below the age-related amount plus the earnings disregard, with the award cut to that amount less the earnings above the disregard, all at the frame's year, on the copy's employment income plus any self-employment profit over 52 weeks and its twin's usual hours; re-derives the disability flags (the categories, which read only AA, DLA and PIP, are asserted unchanged) and receives_benefits_in_own_right from the final reports; and redraws would_claim_uc for SPI benefit units as frs_take_up draws it for FRS units: a unit with a Universal Credit reporter claims, and the other units in frs_take_up's Universal Credit population (a UC claimant or partner aged 18 to under Pension Credit qualifying age) claim as the residual of the contract's universal_credit rate on draws keyed on the SPI unit's own identity. That draw stands for a unit with no award; uc_take_up redraws every entitled unit of both channels by award band and family type once uc_capital_coherence has set the capital the engine assesses (microcosm#1334). PIP, DLA, AA, Carer's Allowance, State Pension and Winter Fuel Payment keep their draws (carers_allowance_take_up later opens the Carer's Allowance claim flag to carers over the earnings limit, microcosm#1319), and FRS rows are never modified." }, { "stage": "uc_capital_coherence", @@ -6621,41 +6786,6 @@ ], "notes": "Runs after the SPI income chain, UC capital coherence and the Pension Credit redraw, before CGT cloning (microcosm#1063). frs_take_up draws would_claim_child_benefit early at one flat rate over every benefit unit with the reporters on top, and child_benefit_opts_out at a flat rate whatever the unit's income; this stage redraws both. One temporary engine materialization gives each person's eligibility as a child or qualifying young person and each person's adjusted net income (consumed only). A family claims for all its children or none, so the draw is by family, keyed on the age of its eldest eligible child: a reporter claims, and the other families claim at rates solved from the eldest age down so that the claimed share of the eligible children of each single year of age is HMRC's published one (Table 15, May 2025, opted-out families included), weighted at the stage's household weights. The published opted-out share of registered families (August 2025) is drawn among claiming non-reporters, fully charged first. Opt-out-aware models restrict both the full-charge and taper pools to a positive charge fraction at least the installed opt_out_charge_share. With the default share of one, only fully charged families can opt out; an insufficient pool is recorded as a shortfall instead of selecting paid taper families. Legacy models retain the original full-charge pool and taper fallback. Models exposing gov.hmrc.child_benefit.opt_out_charge_share (policyengine-uk#2140) receive registered claims, including opted-out families, in would_claim_child_benefit and the separate opt-out in child_benefit_opts_out. Older models receive the legacy claims-and-not-opted-out payment flag because they ignore the opt-out input. Stage evidence records the selected encoding, evaluated opt-out charge share and engine parameter source. The in-payment audit counts claims-and-not-opted-out in the draw, with new candidates aligned to baseline payment suppression; it is not a fresh model run or population calibration evidence. A benefit unit with no eligible child keeps its early draw and is never opted out." }, - { - "stage": "carers_allowance_take_up", - "survey": "Family Resources Survey 2024-25", - "source": "Independent Review of Carer's Allowance Overpayments (July 2025), chapter 7, and DWP benefit statistics, through the UK take-up contract's carers_allowance_newly_entitled rate, applied to PolicyEngine-UK's Carer's Allowance earnings test after the SPI income chain.", - "grain": "person", - "artifacts": [], - "operations": [ - { - "kind": "materialize_rules_engine_predictors", - "predictors": [ - "is_gainfully_employed_for_carers_allowance", - "is_severely_disabled_for_carers_allowance", - "carers_allowance_earnings" - ], - "consumed_only": true, - "year_rule": "survey_year" - }, - { - "kind": "assign_binary_from_rate", - "output": "would_claim_carers_allowance", - "draw": "would_claim_carers_allowance", - "assignment_unit": "person", - "eligibility": "persons whose care_hours reach policyengine-uk's gov.dwp.carers_allowance.min_hours, who care for a severely disabled person, who report no Carer's Allowance, and whom is_gainfully_employed_for_carers_allowance holds gainfully employed at the survey year: the carers the earnings limit alone keeps from the allowance (a carer whose frs_care_hours_in_household reach min_hours cares for a severely disabled person when another member of the household is is_severely_disabled_for_carers_allowance at the survey year; a carer whose largest in-household band does not reach the hours does on a second identity-keyed uniform (salt carers_allowance_outside_household_pool), placed by weight within strata of survey-year means-tested receipt and earnings band, below the household-weighted share of the in-household carers reporting no allowance who have such a member). In Scotland the flag is Carer Support Payment's, which policyengine-uk pays under its own earnings limit from 2.146.1", - "reported_true_anchor": "carers_allowance_reported > 0", - "rate_key": "carers_allowance_newly_entitled", - "rate_derivation": "the take-up contract's carers_allowance_newly_entitled rate, with the identity-keyed uniforms placed by weight within strata (the route (in-household or not), whether the benefit unit reports a means-tested benefit at the survey year (universal credit, housing benefit, income support, income-based JSA, income-related ESA, tax credits or pension credit), and the survey-year weekly earnings band, one weekly rate wide above the limit and open above three; the pool's strata are the last two) and rotated by a start drawn per stratum, so that every stratum claims the rate of its eligible weight to within one record and every eligible carer claims with probability equal to the rate; would_claim = reported OR (eligible AND position < rate), so a reporter stays true and every other person false", - "seed": 0 - } - ], - "outputs": [], - "rewrites": [ - "would_claim_carers_allowance" - ], - "notes": "Runs after the SPI income chain, UC capital coherence and the Pension Credit and Child Benefit redraws, before CGT cloning, so every clone carries its source's draw (microcosm#1319). frs_spine sets would_claim_carers_allowance from reported receipt and the SPI income chain re-derives it from the refilled receipt on the rows it redraws, so that care_hours qualifies a carer for the Universal Credit carer element without paying the allowance to every carer (#882). A carer above the earnings limit cannot report the allowance, so no reform that widens it reached a carer who would claim once entitled: the April 2025 rise of the limit from £151 to £196 a week brought an estimated 61,000 more people into eligibility (Independent Review of Carer's Allowance Overpayments, July 2025, chapter 7). One temporary engine materialization at the survey year, on the frame's own values, gives each person's is_gainfully_employed_for_carers_allowance, is_severely_disabled_for_carers_allowance and carers_allowance_earnings (consumed only); the engine reads a year's parameters at 30 April, so the limit is 2024-25's £151. The allowance is paid only for caring for a severely disabled person (SSCBA 1992 s. 70(2)), which the care hours do not record (microcosm#1418): a carer whose largest in-household band alone reaches the hours (frs_care_hours_in_household) qualifies when another member of the household is severely disabled, and a carer whose largest in-household band does not reach them (care outside the household, or hours spread over bands; the allowance needs the hours for one person) joins on a second identity-keyed uniform (salt carers_allowance_outside_household_pool), placed by weight within strata of survey-year means-tested receipt and earnings band, below the household-weighted share of the in-household carers reporting no allowance who have such a member (María's decision (a) of 2026-10-28). A person in that pool whose care_hours reach the engine's gov.dwp.carers_allowance.min_hours (35), who reports no allowance and whom the earnings test holds gainfully employed claims at the take-up contract's carers_allowance_newly_entitled rate (0.6, María's ruling of 2026-10-20, sensitivity 0.45 to 0.75) on the person's identity-keyed uniform (seed 0, salt would_claim_carers_allowance), placed by weight within strata and rotated by a start drawn per stratum, so that each stratum claims the rate of its eligible weight to within one record and each eligible carer with probability equal to the rate (weight_balanced_uniforms, policyengine-uk's stratified_uniform with a random start; microcosm#1418 and the independent review of microcosm#1420): the route, whether the benefit unit reports a means-tested benefit at the survey year, and the survey-year weekly earnings band, one weekly rate wide above the limit and open above three. would_claim = reported OR (eligible AND position < rate). A reporter stays true; a carer under the limit who reports no allowance stays false, as the survey records them entitled and not claiming. Scotland is drawn too (María's ruling of 2026-10-23): there the flag is Carer Support Payment's, which policyengine-uk pays only under its own earnings limit from 2.146.1 (PolicyEngine/policyengine-uk#2473), and the receipt reports Scotland apart. The earnings test is read before salary_sacrifice moves some contributors' pension amounts out of their pay, so a drawn carer whom that conversion takes under the survey year's limit keeps the flag although the file then shows them entitled and not reporting. The stage rebuilds the flag from reported receipt and refuses a frame whose flag no longer follows it. Its receipt bands support on distinct source households (household_source_id), and gives a weighted total only where three or more carry it and a share only where neither of its sides rests on one or two; it lists each stratum's realised share against its target, and the stage refuses a take-up or pool stratum whose drawn weight misses its share by more than its heaviest record, the most the rotated placement allows, so the balance holds on every build (Anthony's reviews of microcosm#1420). The stage has no health gate." - }, { "stage": "uc_deduction_attributes", "survey": "DWP Universal Credit deductions statistics, March 2025 to February 2026", @@ -7536,6 +7666,41 @@ ], "notes": "The QRF trains only on the 2024-25 FRS asked subset with pay. Salary sacrifice is pay given up, so every amount, reported or predicted, is limited to the pay the person still receives, and a person without pay has none (uk-data#518, microcosm#1095); the limit bites above all on SPI-channel rows, which keep their FRS twin's answer beside pay redrawn from the SPI. The second arm creates support toward the reviewed 5.4m staging target by moving contributors' pension amounts, up to half their pay, into salary sacrifice and lowering their pay by the same amount, since the engine reads employment_income after sacrifice; what does not move stays an employee contribution, so the sacrifice never exceeds the pay that remains. Before microcosm#1069 c9 the pay stayed whole and the converted record lost its net-pay relief. The third arm adds bonus sacrifice beside pay toward the OBR's 2027-28 base above GBP 2,000 (microcosm#1340). A sacrificed bonus is never received, so the FRS records it in neither pay nor its bonus amounts, and pay stays as it is (María's ruling of 2026-10-24 on Vahid's review of microcosm#1383); a received FRS bonus marks a bonus-paying job and its size. An SPI-channel adult's FRS bonus is its twin's, beside the tape's pay, so it draws a bonus share of pay from a base-FRS adult in its pay cell instead." }, + { + "stage": "carers_allowance_take_up", + "survey": "Family Resources Survey 2024-25", + "source": "Independent Review of Carer's Allowance Overpayments (July 2025), chapter 7, and DWP benefit statistics, through the UK take-up contract's carers_allowance_newly_entitled rate, applied to PolicyEngine-UK's Carer's Allowance earnings test after the SPI income chain.", + "grain": "person", + "artifacts": [], + "operations": [ + { + "kind": "materialize_rules_engine_predictors", + "predictors": [ + "is_gainfully_employed_for_carers_allowance", + "is_severely_disabled_for_carers_allowance", + "carers_allowance_earnings" + ], + "consumed_only": true, + "year_rule": "survey_year" + }, + { + "kind": "assign_binary_from_rate", + "output": "would_claim_carers_allowance", + "draw": "would_claim_carers_allowance", + "assignment_unit": "person", + "eligibility": "persons whose care_hours reach policyengine-uk's gov.dwp.carers_allowance.min_hours, who care for a severely disabled person, who report no Carer's Allowance, and whom is_gainfully_employed_for_carers_allowance holds gainfully employed at the survey year: the carers the earnings limit alone keeps from the allowance (a carer whose frs_care_hours_in_household reach min_hours cares for a severely disabled person when another member of the household is is_severely_disabled_for_carers_allowance at the survey year; a carer whose largest in-household band does not reach the hours does on a second identity-keyed uniform (salt carers_allowance_outside_household_pool), placed by weight within strata of survey-year means-tested receipt and earnings band, below the household-weighted share of the in-household carers reporting no allowance who have such a member). In Scotland the flag is Carer Support Payment's, which policyengine-uk pays under its own earnings limit from 2.146.1", + "reported_true_anchor": "carers_allowance_reported > 0", + "rate_key": "carers_allowance_newly_entitled", + "rate_derivation": "the take-up contract's carers_allowance_newly_entitled rate, with the identity-keyed uniforms placed by weight within strata (the route (in-household or not), whether the benefit unit reports a means-tested benefit at the survey year (universal credit, housing benefit, income support, income-based JSA, income-related ESA, tax credits or pension credit), and the survey-year weekly earnings band, one weekly rate wide above the limit and open above three; the pool's strata are the last two) and rotated by a start drawn per stratum, so that every stratum claims the rate of its eligible weight to within one record and every eligible carer claims with probability equal to the rate; a CGT copy draws as the member it copies, placed with it as one record of their joint weight, so the two claim together; would_claim = reported OR (eligible AND position < rate), so a reporter stays true and every other person false", + "seed": 0 + } + ], + "outputs": [], + "rewrites": [ + "would_claim_carers_allowance" + ], + "notes": "Runs after the SPI income chain, UC capital coherence, the Pension Credit and Child Benefit redraws and salary_sacrifice, so the earnings test reads the pay salary sacrifice converts (microcosm#1095 B5); a CGT copy draws as the member it copies, placed with it as one record of their joint weight, so every clone carries its source's draw (microcosm#1319). frs_spine sets would_claim_carers_allowance from reported receipt and the SPI income chain re-derives it from the refilled receipt on the rows it redraws, so that care_hours qualifies a carer for the Universal Credit carer element without paying the allowance to every carer (#882). A carer above the earnings limit cannot report the allowance, so no reform that widens it reached a carer who would claim once entitled: the April 2025 rise of the limit from £151 to £196 a week brought an estimated 61,000 more people into eligibility (Independent Review of Carer's Allowance Overpayments, July 2025, chapter 7). One temporary engine materialization at the survey year, on the frame's own values, gives each person's is_gainfully_employed_for_carers_allowance, is_severely_disabled_for_carers_allowance and carers_allowance_earnings (consumed only); the engine reads a year's parameters at 30 April, so the limit is 2024-25's £151. The allowance is paid only for caring for a severely disabled person (SSCBA 1992 s. 70(2)), which the care hours do not record (microcosm#1418): a carer whose largest in-household band alone reaches the hours (frs_care_hours_in_household) qualifies when another member of the household is severely disabled, and a carer whose largest in-household band does not reach them (care outside the household, or hours spread over bands; the allowance needs the hours for one person) joins on a second identity-keyed uniform (salt carers_allowance_outside_household_pool), placed by weight within strata of survey-year means-tested receipt and earnings band, below the household-weighted share of the in-household carers reporting no allowance who have such a member (María's decision (a) of 2026-10-28). A person in that pool whose care_hours reach the engine's gov.dwp.carers_allowance.min_hours (35), who reports no allowance and whom the earnings test holds gainfully employed claims at the take-up contract's carers_allowance_newly_entitled rate (0.6, María's ruling of 2026-10-20, sensitivity 0.45 to 0.75) on the person's identity-keyed uniform (seed 0, salt would_claim_carers_allowance), placed by weight within strata and rotated by a start drawn per stratum, so that each stratum claims the rate of its eligible weight to within one record and each eligible carer with probability equal to the rate (weight_balanced_uniforms, policyengine-uk's stratified_uniform with a random start; microcosm#1418 and the independent review of microcosm#1420): the route, whether the benefit unit reports a means-tested benefit at the survey year, and the survey-year weekly earnings band, one weekly rate wide above the limit and open above three. would_claim = reported OR (eligible AND position < rate). A reporter stays true; a carer under the limit who reports no allowance stays false, as the survey records them entitled and not claiming. Scotland is drawn too (María's ruling of 2026-10-23): there the flag is Carer Support Payment's, which policyengine-uk pays only under its own earnings limit from 2.146.1 (PolicyEngine/policyengine-uk#2473), and the receipt reports Scotland apart. The earnings test is read before salary_sacrifice moves some contributors' pension amounts out of their pay, so a drawn carer whom that conversion takes under the survey year's limit keeps the flag although the file then shows them entitled and not reporting. The stage rebuilds the flag from reported receipt and refuses a frame whose flag no longer follows it. Its receipt bands support on distinct source households (household_source_id), and gives a weighted total only where three or more carry it and a share only where neither of its sides rests on one or two; it lists each stratum's realised share against its target, and the stage refuses a take-up or pool stratum whose drawn weight misses its share by more than its heaviest record, the most the rotated placement allows, so the balance holds on every build (Anthony's reviews of microcosm#1420). The stage has no health gate." + }, { "stage": "student_loans", "survey": "Family Resources Survey 2024-25 and Student Loans Company borrower forecasts for England", @@ -7625,16 +7790,22 @@ "salt": "student_loan_plan_2", "realization": "identity_uniform_order_walk", "realization_bound": "the realised top-up sits within the weight of the lightest person the walk skipped of the shortfall, so the plan's final England count sits within that weight of the stock; a pool lighter than the shortfall is taken whole and receipted as exhausted, and a plan already at or above its stock is left as reported", - "reason": "Student-loan plan assignment writes an enum column only; household rows and typed household weights pass through and total household mass is conserved." + "reason": "Student-loan plan assignment writes the plan and re-splits each household's student-loan balance among its members; household rows and typed household weights pass through and total household mass is conserved." + }, + { + "kind": "derive", + "output": "student_loan_balance", + "formula": "each household's student_loan_balance re-split to its members with student_loan_plan != NONE, by student_loan_repayments where any of them repays, else equally; a household with no such member keeps was_wealth's split, and every household's total is unchanged" } ], "outputs": [ "student_loan_plan" ], "rewrites": [ - "student_loan_plan" + "student_loan_plan", + "student_loan_balance" ], - "notes": "Reported borrowers are PAYE repayers, classified without a country gate, and, in England and Wales, adults who report an outstanding loan (FRS SLOS) and are not in full-time education, the borrowers below the repayment threshold (microcosm#868). A course starts three years before its borrower left full-time education (FRS EDUCLEFT), or at 18 without an answer, and its start year sets the plan, except that before 2026 a repayer never takes PLAN_5: nobody repays a Plan 5 loan before April 2026, so SLC counts no Plan 5 borrower above the threshold in academic year 2024/25. England tertiary cohorts are then topped up PLAN_5 first and PLAN_2 second to the pinned liable stocks at the FRS release calibration year. The PLAN_2 walk takes nobody in full-time education, since a student is not yet liable to repay; the PLAN_5 walk keeps the age rule, since its starters have mostly not left education. The stocks are SLC academic year 2024/25, whose reference date falls in calendar 2025, the year the borrower targets bind (ruling of 2026-10-16). PLAN_4 is never imputed, and a Scottish or Northern Irish answer of an outstanding loan assigns no plan." + "notes": "Reported borrowers are PAYE repayers, classified without a country gate, and, in England and Wales, adults who report an outstanding loan (FRS SLOS) and are not in full-time education, the borrowers below the repayment threshold (microcosm#868). A course starts three years before its borrower left full-time education (FRS EDUCLEFT), or at 18 without an answer, and its start year sets the plan, except that before 2026 a repayer never takes PLAN_5: nobody repays a Plan 5 loan before April 2026, so SLC counts no Plan 5 borrower above the threshold in academic year 2024/25. England tertiary cohorts are then topped up PLAN_5 first and PLAN_2 second to the pinned liable stocks at the FRS release calibration year. The PLAN_2 walk takes nobody in full-time education, since a student is not yet liable to repay; the PLAN_5 walk keeps the age rule, since its starters have mostly not left education. The stocks are SLC academic year 2024/25, whose reference date falls in calendar 2025, the year the borrower targets bind (ruling of 2026-10-16). PLAN_4 is never imputed, and a Scottish or Northern Irish answer of an outstanding loan assigns no plan. Once the plans are set, each household's student-loan balance, which was_wealth draws from the WAS and splits before any plan exists, moves to the members who hold a plan, by their repayments where any of them repays and equally otherwise; a household with no borrower keeps was_wealth's split and no household's total moves. policyengine-uk caps a borrower's repayment at a positive balance, so the split decides which repayments the balance can cap (microcosm#1095 B9)." }, { "stage": "childcare_copy_take_up", diff --git a/packages/microcosm-build/src/microcosm/build/uk/spec/sources.yaml b/packages/microcosm-build/src/microcosm/build/uk/spec/sources.yaml index 517e9dc901..519dd8067b 100644 --- a/packages/microcosm-build/src/microcosm/build/uk/spec/sources.yaml +++ b/packages/microcosm-build/src/microcosm/build/uk/spec/sources.yaml @@ -685,6 +685,9 @@ stages: foster_child_code: 5 foster_parent_code: 9 below_age: 16 + non_parental_care_child: + child_codes: [3, 4] + parent_codes: [7, 8] one_person_age_split: 65 family_role_values: [COUPLE_PARTNER, LONE_PARENT, DEPENDENT_CHILD, NON_DEPENDENT_CHILD, INDIVIDUAL] household_type_values: @@ -708,10 +711,11 @@ stages: - ons_family_role - ons_family_index - is_looked_after_by_local_authority + - child_limit_non_parental_caring_exception - ons_household_type nonnegative_outputs: - ons_family_index - notes: "Derives the ONS Families and households Table 7 household type from the FRS household grid (microcosm#791). Every person's relhrp code becomes relationship_to_head (HEAD for the household reference person, whose relhrp is blank and whose hrpid is 1; hrpnum on the househol tab is the independent check). The pairwise R01-R14 matrix builds ONS families: any partner pair (spouse, cohabitee, civil partner) is a couple; a person with no partner and no own child in the household joins a parent's family through a natural/adopted or step child link (natural before step, then the lowest person number, on ties); foster, in-law, grandparent and sibling links never form a family, so foster children and grandchildren without a parent present stay individuals, as ONS treats them. A child is dependent under 16, or 16-18 in full-time education (child-tab members are in full-time non-advanced education by construction; adults use educft, fted on earlier tapes); 19 and over is non-dependent whatever the education status - the FRS child tab runs to 19, ONS stops at 18, so the two definitions are translated here rather than assumed equal. Household type: one person (split at 65), no family present (two or more unrelated adults, which counts related non-family households such as two siblings), exactly one family classified by that family whatever other individuals live there (a couple plus a lodger is a couple household - the class the #757 person-count restrictions could not place), or two or more families. The ten values are the Chronicle ons-families-households-2025 ons.household_type value ids verbatim, so the frame value, this declaration, the contract row and the published fact share one string. The reciprocity tolerance is the 2024-25 tape's three ordered pairs (two households) where a child records a parent link the parent records as non-relative or sibling; either side's declaration establishes the link, and any other count refuses the build for review. It also sets is_looked_after_by_local_authority for a child-table member under 16 whose grid code toward an adult in their own benefit unit is foster child (5), or toward whom that adult records foster parent (9). The FRS 2024-25 question instructions (Benefit Unit Allocation) put foster children under 16 in the carer's benefit unit, so without the flag policyengine-uk's child tests (Universal Credit, Child Tax Credit, Pension Credit, Tax-Free Childcare, extended childcare and the legacy benefits) count them as the carer's own children. The same instructions make a foster child aged 16 or over a separate benefit unit where a local authority maintenance allowance covers them, so one who stays in the carer's unit has no such allowance and is not marked. The flag follows the relationship code alone: few such children are recorded, and the carer's local-authority fostering allowance (ALLOW3) covers fewer still." + notes: "Derives the ONS Families and households Table 7 household type from the FRS household grid (microcosm#791). Every person's relhrp code becomes relationship_to_head (HEAD for the household reference person, whose relhrp is blank and whose hrpid is 1; hrpnum on the househol tab is the independent check). The pairwise R01-R14 matrix builds ONS families: any partner pair (spouse, cohabitee, civil partner) is a couple; a person with no partner and no own child in the household joins a parent's family through a natural/adopted or step child link (natural before step, then the lowest person number, on ties); foster, in-law, grandparent and sibling links never form a family, so foster children and grandchildren without a parent present stay individuals, as ONS treats them. A child is dependent under 16, or 16-18 in full-time education (child-tab members are in full-time non-advanced education by construction; adults use educft, fted on earlier tapes); 19 and over is non-dependent whatever the education status - the FRS child tab runs to 19, ONS stops at 18, so the two definitions are translated here rather than assumed equal. Household type: one person (split at 65), no family present (two or more unrelated adults, which counts related non-family households such as two siblings), exactly one family classified by that family whatever other individuals live there (a couple plus a lodger is a couple household - the class the #757 person-count restrictions could not place), or two or more families. The ten values are the Chronicle ons-families-households-2025 ons.household_type value ids verbatim, so the frame value, this declaration, the contract row and the published fact share one string. The reciprocity tolerance is the 2024-25 tape's three ordered pairs (two households) where a child records a parent link the parent records as non-relative or sibling; either side's declaration establishes the link, and any other count refuses the build for review. It also sets is_looked_after_by_local_authority for a child-table member under 16 whose grid code toward an adult in their own benefit unit is foster child (5), or toward whom that adult records foster parent (9). The FRS 2024-25 question instructions (Benefit Unit Allocation) put foster children under 16 in the carer's benefit unit, so without the flag policyengine-uk's child tests (Universal Credit, Child Tax Credit, Pension Credit, Tax-Free Childcare, extended childcare and the legacy benefits) count them as the carer's own children. The same instructions make a foster child aged 16 or over a separate benefit unit where a local authority maintenance allowance covers them, so one who stays in the carer's unit has no such allowance and is not marked. The flag follows the relationship code alone: few such children are recorded, and the carer's local-authority fostering allowance (ALLOW3) covers fewer still. It also sets child_limit_non_parental_caring_exception, policyengine-uk's two-child limit exception for non-parental caring arrangements (UC Regs 2013 Sch 12 para 4; CTC Regs 2002 reg 12), for a child-table member whom no adult of their own benefit unit claims as a natural, adopted or step child (the child's grid code toward the adult is child or step child, 3 or 4, or the adult's toward the child is parent or step parent, 7 or 8) and whom no local authority placed there: a child living with kinship or friends carers, or with a claimant whose own child is the child's parent. Nothing set it before, so the engine paid no child element for such a third or later child born from 6 April 2017. The multiple births, adoption and non-consensual conception exceptions stay at the engine's default: the FRS has no twin field and its birth dates are blank (María's ruling of 2 November 2026; microcosm#1095)." - stage: frs_employment survey: Family Resources Survey 2024-25 source: Department for Work and Pensions Family Resources Survey 2024-25, UK Data Service SN 9563, DOI 10.5255/UKDA-SN-9563-1; local licensed 2024_25 tabs. @@ -1656,7 +1660,7 @@ stages: spi_profit_before_losses_draw: self_employment_income spi_losses_brought_forward_draw: self_employment_income predictors: - - age + - spi_age_band - gender - region - main_source @@ -1664,6 +1668,7 @@ stages: - has_trade - at_or_over_spa categorical_predictors: + - spi_age_band - gender - region - main_source @@ -1721,7 +1726,7 @@ stages: seed: 45 n_estimators: 100 folds: 5 - fold_key: 'predictor cell (gender, region, whole-year age, main_source, has_pay, has_trade, at_or_over_spa), the fold being floor(uniform x folds) of the cell''s stable_identity_uniforms draw at the stage seed and salt spi_stage1:reference_fold; each fold''s recipients are located by a forest fitted on the other folds, so the forest that locates a copy never saw its twin, and every row of a cell is located by one forest' + fold_key: 'predictor cell (gender, region, spi_age_band, main_source, has_pay, has_trade, at_or_over_spa), the fold being floor(uniform x folds) of the cell''s stable_identity_uniforms draw at the stage seed and salt spi_stage1:reference_fold; each fold''s recipients are located by a forest fitted on the other folds, so the forest that locates a copy never saw its twin, and every row of a cell is located by one forest' method: 'Rosenblatt transport (microcosm#840): each drawn recipient''s twin values are located on the reference forest, the sign uniform in the gate''s cumulative class probabilities and the quantile on the sign''s magnitude forest, each leaf chained on the twin''s observed earlier leaves, and the stage-1 forest draws at those uniforms, so the recipient receives the SPI income of someone in the same position among SPI people like it as the twin holds among FRS people like it. taxable_savings_interest is savings_interest_income, the interest outside ISAs, floored at zero. A leaf without an analogue, or whose analogue is degenerate on the FRS rows, draws at identity-keyed uniforms, as do the placements inside a class or a flat stretch of a conditional; no model random stream is consumed. The reference locates a leaf given the twin''s observed earlier analogue leaves, while the stage-1 forest draws it given every earlier output, the identity-uniform leaves included, so the located quantile is read off a conditional the identity draws also shape (microcosm#840 follow-up: the chain order). A full build refuses a reference the predictor cells cannot cross-fit (only a sampled rung or a synthetic fixture may locate in-sample, and its receipt says so), a recipient whose fold differs from its twin''s, and a reference whose sign classes differ from the stage-1 forest''s on any located target.' receipt: per target the analogue, the FRS regime and sign classes, the uniform source and the Kolmogorov-Smirnov distance of the sign uniforms and of the quantiles over positive rows from U[0,1), overall and by main_source over at least 10 rows (a statistical floor, as a distance over fewer says nothing); positive-row counts are rounded as every receipt count is, one or two rows reading <3; the counts in the stage evidence stay with the build and are not published identity_uniforms: @@ -1868,6 +1873,20 @@ stages: salt: spi_income_band_donor_leaf_draw outputs: stage-1 outputs, uprated as the stage-1 draws seed: 44 + - kind: floor_spi_employment_pay_at_minimum_wage + column: hmrc_spi_pay + hours_column: hours_worked + hours_basis: "annual usual hours: the FRS adult's usual weekly hours in all jobs (TOTHOURS) times 52, read back to weekly hours" + weeks_in_year: 52 + hourly_rate: "the lower of policyengine-uk gov.hmrc.minimum_wage.non_apprentice by the twin's age, read as the engine reads the build year (30 April), and the twin's own hourly pay (its employment income before the draw over its annual hours)" + employee_statuses: + - FT_EMPLOYED + - PT_EMPLOYED + rows: "drawn recipients other than reserved band carriers, whose twin has no trade (has_trade 0), an employee main job and usual hours above zero, and whose drawn PAY is positive; FRS rows, undrawn copies and every other leaf keep their values" + pay_basis: "tape PAY is taxable pay, net of net-pay pension contributions and salary sacrifice; the minimum wage binds gross pay, and the engine reads employment_income (PAY + EPB + TAXTERM) as gross pay, so PAY alone is compared with the gross minimum and a twin at the minimum wage who pays net-pay contributions can be lifted by up to them" + reason: "stage 1 draws annual tape pay without hours and the tape holds part-year workers, so a twin reporting usual employee hours could draw a year's pay below what those hours earn at the minimum wage (uk-data#629)" + annual_income: "the floored pay is the row's current pay; its employment_income_annual_share becomes its unfloored over its floored employment income, so the annual measures read the tape's year of pay" + receipt: "eligible and floored source households (rounded), weighted people, the weighted share floored, the weighted mean uplift and the amount added; figures on one or two source households are <3, and the floored weight, share and amount are given only where neither the floored nor the unfloored side rests on one or two; the hourly-pay check gives the weighted shares of the drawn employees below the minimum wage for their age before and after the floor, beside the FRS employees' share, each withheld beside a side on one or two, and the eligible rows still below their floor (banded, zero exact)" - kind: fit_weighted_qrf_stage2 training_population: uk_frs_raw_spine_base_support_channel target_population: spi_synthetic_support_channel claimants and partners (is_uc_claimant) aged 16 and over @@ -3172,7 +3191,7 @@ stages: event_salt: non_residential_property_purchased price_salt: non_residential_property_purchased_price seed: 0 - additional_residential_targets: Table 6b HRAD transactions and value, 2024-25, times individuals' shares of Table 8a residential transactions and value; Table 6b bands with the five above GBP 2m combined + additional_residential_targets: 'Table 6b HRAD transactions and value, 2024-25: at or below GBP 250,000, the band less other buyers'' HRAD, their Table 8a receipts over Table 6b''s gross HRAD receipts per transaction and per pound; above it, times individuals'' shares of Table 8a residential transactions and value; Table 6b bands with the five above GBP 2m combined, at the households'' counts and values' non_residential_targets: Table 8b individuals' transactions, value and bands, 2024-25 - kind: record_mass_conservation_receipt entity: household @@ -3526,7 +3545,7 @@ stages: notes: Imputes local-bus travel per person from the National Travel Survey microdata (microcosm#930; the structural fix Maria ruled on 2026-09-15 for the rake-then-bind bus fares of microcosm#890). The donor is the NTS End User Licence extract (England residents only since 2013) pooled over the declared survey years for the conditional fit; the artifact pins are the 19th-edition (November 2025) tabs, verified at runtime, and the H2 fixture drives the stage with synthetic tabs in the same codebook. One QRF target, the interview frequency-of-use band (the variable behind NTS0313; 0 is the non-user band), conditioned on age band, sex, cars (the was_wealth draw on the recipient), household size, the three-band gross household income (on the recipient its HBAI net income with the deductions policyengine-uk takes to reach it added back, gross cash income as the NTS band measures it; the engine's household_gross_income adds capital gains and imputed NHS, education and transport spending, which put a fifth of households a band too high; microcosm#1164) and region, drawn from identity-keyed uniforms and rounded to the nearest band; devolved recipients take a declared proxy region for prediction only. Each person's annual local-bus trips are the diary's weighted mean for their band and residence group (London or the rest of England), split into the bus-in-London and other-local-bus series by main mode, W5 x JJXSC over W2 persons annualised by 52.14 weeks; a seven-day diary annualised per person would be right in aggregate and wrong in distribution, so it supplies band means, not per-person counts. If the extract carries no frequency column the band is drawn from the vendored NTS0313/NTS0621 shares and declared band midpoints are scaled to the vendored NTS0303 rate (the receipt names the path). Concessionary eligibility is the declared statutory age rule of the person's area, emitted for the lcfs pricing step to zero-price eligible persons' trips; the donor's eligible share of trips per series is receipted beside the publisher's concessionary boarding share. The stage and ticket tables class every diary bus boarding by how it was paid for (at the point of use, a season ticket or pass, a concessionary pass, free) and give each person the share of fare-paying boardings paid at the point of use for their band and residence group (local_bus_single_fare_share), the boardings a per-journey fare cap binds on, with the fare paid per boarding by residence group and survey year receipted beside it (microcosm#930 C13, María's ask of 2026-09-23). The share is read on the cap years declared in fare_cap_regime only (England's £2 single-fare cap outside London ran from 1 January 2023 to 31 December 2024, and an NTS survey year is a calendar year), because nine months of the FRS 2024-25 base year (April to December 2024) sit under that cap and the last three under the £3 cap that followed it; 2022, before it, stays in the band and trip fit. The share under the £3 cap or with no cap is not observed, because the extract ends in 2024 (microcosm#1331). For England outside London the receipt also carries fare-mix lines, aggregates only. Before the cap they give the share of point-of-use boardings paid above the cap and their mean fare, at that year's prices; under it, the share paid at the cap, within the declared tolerance. A line that rests on fewer than 3 unweighted boardings or 3 distinct households, or whose complement does, reads <3. The stage records the frame's band shares against NTS0313/NTS0621, its trips per person against NTS0303 and by age band against NTS0601, and the frame's car availability against NTS0205, all from vendored rows; nothing derived from the licensed rows is committed. - stage: lcfs_consumption survey: Living Costs and Food Survey 2024-25 - source: UK Data Service SN 9603 Living Costs and Food Survey 2024-25 (2nd edition) household/person tabs and the vendored Chronicle facts for NEED 2024 mean kWh, DESNZ Energy Trends and QEP average prices paid for calendar 2024, road-fuel outturn (DESNZ, HMRC, ONS Consumer Trends) and road fuel by vehicle type (DESNZ), ONS Consumer Trends household spending by COICOP division, the DfT VEH1103 licensed-car stock, NTS bus use, and the DfT and devolved bus finance tables and fares indices. + source: UK Data Service SN 9603 Living Costs and Food Survey 2024-25 (2nd edition) household/person tabs and the vendored Chronicle facts for NEED 2024 mean kWh, DESNZ Energy Trends and QEP average prices paid for calendar 2024, road-fuel outturn (DESNZ, HMRC, ONS Consumer Trends) and road fuel by vehicle type (DESNZ), ONS Consumer Trends household spending by COICOP division, the DfT VEH1103 licensed-car stock, NTS bus use, the NTS private cars (UK Data Service SN 5340, End User Licence; the vehicle and household tabs, survey years 2022-2024) for the zero-emission share by income fifth and the household-paid road-fuel mix, and the DfT and devolved bus finance tables and fares indices. grain: household base_candidate: filename: populace_uk_2023.h5 @@ -3556,6 +3575,26 @@ stages: size_bytes: 7491335 runtime_sha256_required: true filename: dvper_uk_anon_2024.tab + - role: nts_household_tab + kind: private_microdata + ukds_study_number: 5340 + doi: 10.5255/UKDA-SN-5340-19 + filename: household_eul_2002-2024.tab + sha256: b70252b606b13c2b7f32e6da09e202e47514f6414045a017e77deb1d2a87ceb7 + size_bytes: 117993975 + access: private_local_input + locator: caller-supplied local input + runtime_sha256_required: true + - role: nts_vehicle_tab + kind: private_microdata + ukds_study_number: 5340 + doi: 10.5255/UKDA-SN-5340-19 + filename: vehicle_eul_2002-2024.tab + sha256: f3f50dfff2dfb86ace531362e35668403e35893f8c46d07def417236dde68dba + size_bytes: 41650772 + access: private_local_input + locator: caller-supplied local input + runtime_sha256_required: true - role: need_energy_facts resource: need_energy_facts.json kind: public_aggregate_reference @@ -3805,12 +3844,34 @@ stages: - kind: assign_binary_from_rate target: has_fuel_consumption rate_resource: licensed_cars_fuel_type.json - rate_rule: per_car_zero_emission_share + rate_rule: per_car_zero_emission_share_by_income_quintile period_value: 2024 geography_id: K03000001 zero_emission_fuel_types: - battery_electric - fuel_cell_electric + nts_cars: + survey_years: + - 2022 + - 2023 + - 2024 + vehicle_types: + - 1 + - 3 + private_keeper: + - 1 + company_keeper: + - 2 + weight: w3 + income_quintile: hhincqisengts_b01id + zero_emission_co2_bands: + - 1 + propulsion: + petrol_spending: 1 + diesel_spending: 2 + minimum_zero_emission_cars: 10 + frame_income: household_gross_income + frame_equivalisation: household_equivalisation_bhc condition: num_vehicles > 0 seed: 0 - kind: materialize_rules_engine_predictors @@ -4126,6 +4187,26 @@ stages: other_fuels_rule: lcfs_donor_other_fuels_share other_fuels_codes: - c72213 + mix_rule: household_paid_litres + nts_cars: + survey_years: + - 2022 + - 2023 + - 2024 + vehicle_types: + - 1 + - 3 + private_keeper: + - 1 + company_keeper: + - 2 + weight: w3 + income_quintile: hhincqisengts_b01id + zero_emission_co2_bands: + - 1 + propulsion: + petrol_spending: 1 + diesel_spending: 2 - kind: recompose_from_remainder parents: housing_water_and_electricity_consumption: @@ -4416,6 +4497,31 @@ stages: casino: value: 0.235487 parameter_path: household.consumption.gambling.casino_effective_rate + - kind: assign_car_attributes_from_nts + nts_cars: + survey_years: + - 2022 + - 2023 + - 2024 + vehicle_types: + - 1 + - 3 + private_keeper: + - 1 + company_keeper: + - 2 + weight: w3 + income_quintile: hhincqisengts_b01id + zero_emission_co2_bands: + - 1 + propulsion: + petrol_spending: 1 + diesel_spending: 2 + reference_date: '2025-10-01' + oldest_age_years: 25 + default_engine_size_cc: 1600 + seed: 0 + salt: lcfs_car_attributes - kind: record_mass_conservation_receipt entity: household reason: 'LCFS consumption imputation on the source spine: household weights pass through unchanged and total household mass is conserved.' @@ -4468,6 +4574,11 @@ stages: - remote_other_betting_net_losses - betting_exchange_commission - horse_and_dog_pool_betting_net_losses + - car_fuel_type + - car_co2_emissions + - car_engine_size + - car_first_registration_date + - car_is_ved_exempt nonnegative_outputs: - food_and_non_alcoholic_beverages_consumption - alcohol_and_tobacco_consumption @@ -4515,7 +4626,9 @@ stages: - remote_other_betting_net_losses - betting_exchange_commission - horse_and_dog_pool_betting_net_losses - notes: 'Ports the incumbent LCFS consumption QRF, including NEED energy raking, with adjudicated weighted fits and an identity-keyed seed-0 fuel flag. The vehicle count is a numeric QRF predictor on both sides (LCFS a124 on the donor, the was_wealth draw of WAS vcarnr8 on the recipient, both clipped to 0-5), which retires the incumbent''s WAS-to-LCFS has-fuel bridge (microcosm#890 A). The recipient fuel flag draws each of a household''s vehicles as zero-emission at the battery-electric and fuel-cell share of the vendored DfT VEH1103 licensed-car stock (2024, Great Britain; plug-in hybrids count as fuel buyers), replacing the hand-copied NTS share (microcosm#890 E2): a household with vehicles buys fuel unless every one of them is zero-emission, so it is flagged at one minus that share raised to its vehicle count, and a one-vehicle household keeps the draw it had when the whole household was drawn at once (microcosm#1278; before, a household with several vehicles was all one or the other). The frame holds no fuel type, so the draw, keyed on the household identity, is what makes a vehicle-owning household a fuel buyer: it is random with respect to income and every other characteristic. With the redraw of microcosm#1113 every flagged household buys fuel, so this flag alone sets fuel incidence; who holds the zero-emission cars by income is a known residual. The household input uses_energy_prepayment_meter, which policyengine-uk reads for the July 2023 to March 2024 Energy Price Guarantee prepayment discount (PolicyEngine/policyengine-uk#2098, from 2.123.3), is drawn by the declared impute_prepayment_meter step (microcosm#1110): the donor prepays when it last put money on an electricity, gas or combined key or meter (b1751, b1701, b233, which the LCF asks only of prepayment-meter households) or its diary records a slot-meter payment (c45114, c45214), so electricity-only prepayment counts and a household with no meter payment, including one that did not answer, does not; a weighted regime-gated QRF on the chain''s predictors fits that flag and each recipient draws it at uniforms keyed on its household id, which moves no other draw. The release exports it: policyengine-uk reads it from 2.123.3 and an older engine, Microcosm''s locked one among them, ignores a column it does not know; the incumbent does not carry it until uk-data#539, so it is a reviewed extra column of the export surface. The frame flags about 3.0 million Great Britain households (10.5 %) at prior weights, against the around three million prepayment households the government counted when the discount began in July 2023 (a different reference period, households in both). Energy support clipping is exempt because NEED raking governs those columns. Bus fares are clipped to donor support before the pricing step (María''s rulings 2026-09-15 and 2026-09-17), which bounds the region no area prices (Wales keeps the chain''s raw draw) while the priced regions move beyond donor support afterwards; for that reason the column carries no committed support bound for the terminal gate. Domestic energy is raked in kWh to the NEED 2024 shape at the DESNZ level and priced at the average prices paid (microcosm#890 F, chronicle#270), where both NEED rakes take their mean-kWh margins from the vendored NEED 2024 tables (England and Wales by income band, tenure, property type and region; Scotland by income band, tenure and property type with the all-dwellings mean as its region margin; Northern Ireland untouched), the declared price_domestic_energy step converts spend to kWh and back at each household''s QEP price region through the committed crosswalk using the calendar-2024 average variable unit cost and fixed cost across payment methods, standard metering, including VAT (Northern Ireland gas at the UK average because QEP publishes no Northern Ireland gas row), a gas fixed cost only for connected households, the gas connection imposed on the recipient frame at the published share of each region (DESNZ subnational gas meters over electricity meters, 2024) by disconnecting gas-positive households in an identity-keyed uniform order, skipping a household whose weight would overshoot the published share (Northern Ireland has no subnational row and keeps the positive-gas rule), and, where the draw leaves a region below its share, by the declared connect_rule (microcosm#1164): two weighted fits on the chain''s predictors give each zero-gas household the probability that a donor like it pays for gas (a gradient-boosted classifier of the donor''s gas payers) and the gas such a donor pays (a regime-gated QRF of the payers'' gas spend, at quantiles keyed on the household id), and the region''s zero-gas households are connected in an identity-keyed order drawn in proportion to that probability, by the same weight-fitting walk, until the share is met. The labelled energy split leaves about 80 % of donors paying for gas against the about 85 % of homes DESNZ counts gas meters for (the derivation it replaced gave gas to 98 %), so without the connect leg nine of the eleven Great Britain regions fell short of their share, and after the four-margin NEED rake one factor per fuel scales the kWh so the prior-weighted frame total equals the fuel''s declared level for calendar 2024: for gas the DESNZ Energy Trends domestic consumption at actual temperature summed over the four quarters, and for electricity, the one fuel in spend_level_fuels (microcosm#1418), the kWh the ONS Consumer Trends 04.5.1 household spending buys at QEP''s United Kingdom average prices once the standing charges of every UK domestic meter DESNZ counts come off (gas stays on Energy Trends while ONS 04.5.2 counts bottled gas, microcosm#1095); NEED gas means are per gas-metered household, so the gas kWh margins are raked over connected households only while electricity is raked over every household, and the energy_rake gate recomputes every NEED mean, the DESNZ level and the connection shares from the vendored rows. After the level, no household is left above the domestic meter definitions behind the DESNZ total (NEED Annex B: gas meters under 73,200 kWh a year, electricity meters under 50,000 kWh on profile classes 1 and 2; María''s ruling of 2026-10-12 on microcosm#1207''s extreme energy values): the declared household_kwh_ceiling caps a household there, the households below it in the capped households'' own NEED cells are re-raked to those cells'' levelled means, and a proportional step restores the DESNZ total (microcosm#1164); the receipt counts the households capped and the share of the total they gave up, and the energy_rake gate checks both. Mobile homes have no NEED property-type row, so the rake takes them to the all-dwellings mean, the incumbent''s translation; where every mobile home of a NEED geography draws a spend at or below the standing charge, that cell has no kWh for the rake to scale, and the declared zero_kwh_cells_at_need_mean starts it at its NEED mean before the first sweep (microcosm#1240). The receipt lists the cells it started, and the energy_rake gate fails on a started cell the stage does not declare and on any other cell with a zero mean. Both rakes band households on gross income, NEED''s concept: the donor on LCFS p344p, cash income before tax, National Insurance, council tax and pension contributions, and the recipient on the same concept, its HBAI net income with the deductions policyengine-uk takes to reach it added back (council tax and domestic rates, income tax, National Insurance, student loan repayments, employee and personal pension contributions, maintenance and child payments, LVT), which the stage materializes for that band alone (microcosm#1164). Before it the recipient fell back to its HBAI net income, which put households in too low a band; the engine''s household_gross_income would put them in too high a one, since it adds capital gains and the in-kind NHS, education and transport spending to cash income. The disconnection walk''s seed-0 uniform order makes every group of households (dwelling type, income band, support channel) lose the same expected share of its drawn connected mass, so only the level of the drawn connection moves; the smallest-drawn-gas-first order it replaces piled the disconnections onto low-draw flats once the SPI support households drew gas from their own incomes, and NEED''s Scottish property-type means then implied a level 2.6 % above the Scottish all-dwellings mean, a margin conflict the rake could not close. Bus fares are priced from journeys (microcosm#930), where the nts_bus_travel stage imputes each person''s annual bus-in-London and other-local-bus trips and their concessionary eligibility, and the declared price_bus_journeys step sets bus_fare_spending as the sum over the household''s non-eligible persons of trips times boardings per resident trip (the published BUS01 journeys over the published NTS0705a trips per resident times the ONS population) times the yield per fare-paying boarding (BUS05ai receipts over journeys less concessionary journeys; in England outside London only the older and disabled ones of BUS01c, as policyengine-uk prices it from 2.158.3), per area; bus-in-London trips take the London area''s price for every resident, other-local-bus trips the price of the residence area (England outside London; Scotland and Northern Ireland from their own receipts and journeys with England''s trip rate as the declared proxy); Wales is unpriced and keeps the raw draw. The chain still draws bus_fare_spending so later targets condition on the same raw draw; the emitted column is the priced value. The receipt records every factor, the frame-implied boardings beside the published ones and the frame''s eligible trip share beside the publisher''s concessionary boarding share, so the prior-weight fit of the bound receipts targets is read as a composition check, never a level the stage set; the #890 incidence draw and fare rake are retired. The 2024-25 diary (UKDS SN 9603, 2nd edition, whose household tab carries the annual weight as cal_weight_annual, the name weighta had; microcosm#1164) is moved to the base year by the declared uprate_donor_columns step (microcosm#890). Consumption columns and bus fares take the engine''s CPI index from the April-to-March diary year, placed on the calendar-year index at three quarters of 2024 and one of 2025, back a quarter to calendar 2024 (microcosm#1113; the diary sits a quarter past it, so the factor is below one; the fare factor survives only where no fare cell levels the column, i.e. Wales). Income predictors take a factor of one: the diary year is the FRS 2024-25 year they are matched against. Petrol and diesel take the DESNZ pump-price times HMRC litres per head outturn from the vendored road_fuel_anchors.json, which sets only their donor distribution because the level step follows; the energy columns are exempt because the NEED 2024 shape at the DESNZ level and the QEP average prices paid set their level. The household adult and child counts (LCFS G018 and G019, the survey''s age-18 split) predict on both sides; the recipient counts its members by age, not through the engine''s is_adult and is_child flags, which policyengine-uk#1896 deprecates (uk-data#486, microcosm#1095). Road fuel incidence and level are set by two declared steps (microcosm#1113). The two-week diary leaves about a third of car-owning donors with no fuel purchase, which the chain reproduces among the households the fuel flag marks as fuel buyers, so the redraw_zero_road_fuel step redraws a flagged household that drew zero from the donor''s distribution among households with positive road fuel, on the chain''s predictors: a weighted regime-gated QRF draws the total, positive by construction, then the petrol share of it, at quantiles keyed on the household id; positive draws are kept. Then the level_road_fuel step, after the fuel flag has zeroed the households without a fuel car, scales petrol and diesel so their prior-weighted total equals ONS Consumer Trends household spending on COICOP 07.2.2 for calendar 2024 (the year of the DESNZ pump prices the donor uprating uses) less the donor''s own other-fuels share of 07.2.2 (c72213), keeping the drawn mix. The diary''s 07.2.2 has three lines (c72211 petrol, c72212 diesel and c72213, the other motor fuels and lubricants) and none for vehicle electricity. The LCFS diary records about a quarter less road fuel than ONS, and binding the OBR cars receipts had closed that gap by moving weight onto fuel-buying households; petrol and diesel therefore carry no committed support bound, like the other levelled columns. The totals that contain levelled columns are written back around them by the declared recompose_from_remainder step (microcosm#1113): each keeps its own chain draw less the chain''s draws of the parts the stage re-levels, kept before any step touches them and floored at zero where the parts outgrow the total, and adds the levelled parts back, so housing_water_and_electricity_consumption is its draw less the drawn electricity and gas plus the levelled electricity and gas, and transport_consumption its draw less the drawn petrol, diesel and bus fares plus the levelled petrol and diesel and the priced bus fares. The chain draws each part after, and conditional on, its total, so the remainder is the chain''s own split; a remainder drawn as a chain target of its own over-drew the vehicle-purchase tail of transport, 10 to 13 percent above the donor in-sample. The chain''s domestic-energy target is the electricity and gas the stage derives from the diary''s fuel, light and power (p537) by its labelled parts, from the LCF User Guide''s derived-variable labels and P537 definition (microcosm#1164): each fuel''s last account payment less its rebate (b489 electricity, b490 gas, read as the tab carries them; the stage refuses a donor where b489 equals b175 less b178, or b490 equals b170 less b173, to the penny for under 95 percent of that fuel''s account payers, which pins the labels and the rebate''s sign), its prepayment key or meter payment (b1751, b1701), its component of a combined utilities bill (b227 electricity, b226 gas) and of a combined key or meter payment (b2332, b2331), and the diary''s second-dwelling account and slot-meter lines (c45112 and c45114, c45212 and c45214); what a combined payment leaves unsplit (the combined bill b231 less its rebate b174, and the combined key or meter payment b233, each less its parts) goes by the household''s own electricity share where it pays for both fuels, and otherwise by the donor''s mean share of the households that do, since a combined payment means the household pays for both; a donor with no such household fails. The diary''s other fuels (central-heating oil b017 and c45312, bottled gas b018 and c45222, coal and coke c45411, wood and peat c45412, hot water, steam and ice c45511) are neither, and the donor_energy_split receipt records the split against p537: what reading refunds as zero adds, what the unclipped parts differ from p537 by, the weighted share of donors whose unclipped parts differ from their p537, and the account identity shares. The derivation it replaces read b226 as electricity by direct debit and b489 and b490 as prepayment payments, where the labels make them the gas component of a combined bill and the electricity and gas account payments less rebates. The liquid fuels (central-heating oil and paraffin with bottled gas, LPG with liquid) and the solid fuels (coal, coke, wood and peat) are drawn as liquid_fuel_consumption and solid_fuel_consumption, the inputs policyengine-uk 2.149.0 reads (pe-uk#2572; María''s ruling of 2026-10-22), after the eighteen spend targets so that every earlier draw is the chain''s own, uprated to calendar-2024 prices as every diary spend column is; the housing total nets their draws and adds them back unchanged, so it always holds them, and hot water, steam and ice stays in its remainder. The receipt records the published ONS 04.5.3 and 04.5.4 spend beside each fuel''s donor total at diary prices and the frame''s draw (published_fuels). Before the hold, each COICOP division''s drawn spend per household (a recomposed total''s remainder, any other division''s whole draw) is set against the donor''s mean of the same spend (for housing and transport, the donor''s total less the same parts, since the levelled parts keep their published levels and are no over-draw); a division above the divisions'' shared ratio, measured once before any levelling, comes down to it (María''s rulings of 2026-10-23 and 2026-10-24, microcosm#1278; Vahid''s review of microcosm#1383, item 9); the receipt records each division''s ratio and factor and the shared ratio (division_levelling) and each recomposed total''s levelling_factor. Each total is then held to the donor''s realised maximum of that total (maximum_total: donor_support, the support every drawn column is clipped to; microcosm#1164), never below its parts, the excess coming out of its remainder: a remainder near the top of the diary''s range plus levelled parts larger than the drawn ones would otherwise leave it. The two totals keep their committed support bounds, which the terminal support gate applies to the emitted frame; the recomposed_totals gate checks the declaration and the receipt, whose rows held at the maximum and weighted mass taken enter its identities. Every household spend column is at calendar-2024 prices as households paid them, the H5''s year that policyengine-uk projects from and the calibration uprates to the calendar-2025 window (microcosm#1113): the diary columns by the CPI uprating to 2024, road fuel at ONS 07.2.2 for 2024, energy at DESNZ volume and QEP prices for 2024, and bus fares at each area''s fiscal-year yield re-priced to 2024 by its fares index (the DfT local bus fares index by quarter for London and England outside London, Scotland''s calendar-year index; Northern Ireland, which publishes no fares index, from its own yields of the two fiscal years 2024 overlaps, weighted three months and nine (microcosm#1207), in place of England''s index, which carries the January 2025 rise in the English fare cap Northern Ireland did not have); the consumption_basis gate holds every level-setting step to that year. policyengine-uk applies the fiscal 2024-25 rules to model year 2024 (it samples each parameter at 30 April), so every levelled column sits about a quarter before the midpoint of the policy year it is taxed in; the calibration binds calendar-year facts as published and fiscal-year facts at the calendar window (María''s rule of 2026-09-22). The stage receipt also reports, for each of the twelve COICOP divisions, the prior-weighted frame total against ONS Consumer Trends for the same calendar year less the classes a household diary does not record (02.3 narcotics, 04.2 owner-occupiers'' imputed rent and 12.6.1 FISIM), on ONS''s domestic concept, and the twelve together against the national concept as well; it is report-only (microcosm#1113). The report-only litres audit compares each fuel''s frame litres with HMRC''s clearances of that fuel scaled by the cars share of its road use, from the vendored DESNZ sub-national road transport fuel consumption by vehicle type and fuel (PolicyEngine/chronicle#322); the OBR cars share of fuel duty receipts, uniform across fuels, stays beside the total. The liquid fuels hold bottled gas (b018, c45222), which COICOP puts under 04.5.2 (gas) and ONS''s 04.5.3 leaves out, so the receipt also gives the donor''s liquid fuels without it; neither heating-fuel column is levelled to ONS: the donor''s diary totals are about twice ONS''s, and the frame''s draws reach neither those nor ONS''s, so a costing on either needs levelling to ONS first (Vahid''s review of microcosm#1383, item 8). After its spend targets and the two fuels the chain draws five shares the derive step computes on the donor from the diary lines (microcosm#1359): tobacco''s share of the off-trade alcohol and tobacco that make up P602 (c22111, c22121 and c22131 over those three and the seven lines of alcohol brought home, c21111 to c21311; P602 also sums narcotics, c23111, which the end-user tab does not carry), on-trade alcohol''s share of restaurants and hotels (the eight lines of drinks away from home, cb111c to cb111j, over P611, clipped at one because the tab stores P611 to one decimal place), gambling stakes'' share of recreation (the seven games-of-chance stake lines P609 sums, c94311 to c94316 and c94319: pools, bingo, lotteries, bookmaker and tote betting with gaming machines, and the National Lottery; the winnings lines beside them sit in no total), the National Lottery''s share of those stakes (scratchcards and draws, c94316 and c94319, over the seven) and the betting and gaming share of the rest (football pools, bingo, and bookmaker and tote betting with gaming machines, c94311, c94312 and c94314, over the other five; society lotteries, c94313, and the Irish Lottery, c94315, pay no UK gambling duty). A household''s tobacco, off-trade alcohol, on-trade alcohol and gambling stakes are its shares of the totals it carries, and its National Lottery and betting and gaming stakes its shares of its stakes, so the parts sum to the totals and no total, the VAT base included, moves; appended after the twenty targets, the shares move none of their draws. The shares and the spending they give are scratch, on no table; the report-only excise_shares receipt records each share on the frame beside the donor. The declared level_excise_quantities step turns that spending into policyengine-uk''s excise inputs (microcosm#1359), so alcohol, tobacco and gambling duty stop scoring zero. Each national quantity is a published FY2024-25 figure from the vendored excise_facts.json, and the step gives each household its part in proportion to the spending that buys it, at prior weights (one factor per input, the level_road_fuel scaling), so the frame''s weighted total of each input is the published one; a household that buys one product of a kind buys all of that kind in the national mix. Alcohol: each product''s litres are HMRC''s clearances of beer, cider, wine, spirits and other fermented products (the Alcohol Bulletin, in litres of pure alcohol) over the engine''s own strength for the product, which policyengine-uk multiplies back, shared by off- and on-trade alcohol spending together; beer and cider take their draught shares from the clearances under draught relief, alone or with small producer relief, over all of their clearances, and the other products, whose draught clearances HMRC does not publish, keep the engine''s zero, as does sparkling cider, which the bulletin counts within cider. A pound buys the same volume in a pub as in a shop under this rule, which leans the volume, and so the duty, towards on-trade drinkers: against a published on-trade volume share of about 27 percent, a pound spent in a pub is given about 1.6 times the volume it buys and a pound spent in a shop about 0.78 times, and about 11 percent of the volume sits with other households on the 2024-25 diary. No on-trade volume share can be archived (MESAS is a NielsenIQ and Circana dashboard with no fixed file), so the spending rule stands, its lean documented (María''s ruling of 2026-10-23). Tobacco: cigarettes a week and grams a week of hand-rolling tobacco, cigars and other tobacco are HMRC''s clearances (the Tobacco Bulletin) over the engine''s 52 weeks, shared by tobacco spending; heated tobacco sits within other tobacco in the bulletin, so it is charged at the other-tobacco rate and its own input keeps the engine''s zero. Gambling: each input is its duty''s dutiable base, HMRC''s cash receipts for the duty (the Betting and Gaming bulletin) or Machine Games Duty''s declared liabilities for the band, over the engine''s FY2024-25 rate (Gaming Duty over the engine''s effective-rate proxy for it), so the engine charges back the published receipts. General Betting Duty''s base, its receipts over the fixed-odds rate, is split over the land-based fixed-odds, remote horse-racing, remote other, exchange and horse-and-dog pool inputs by the Gambling Commission''s gross gambling yield for Great Britain, remote fixed-odds betting by the horse-racing share of all remote betting yield, since the Commission publishes no betting activity by event; its horse racing is not only UK racing, so the remote UK horse-racing input is overstated and, from April 2027, when the engine charges other remote betting at 25 percent, too much of the base stays at 15 percent and the rise is understated; and its pool betting can hold pools on other events, such as football pools, which pay Pool Betting Duty. Spread betting, which the Commission does not regulate, has no published base and keeps the engine''s zero. Lottery Duty''s base is shared by the National Lottery stakes and every other gambling base by the betting and gaming stakes, since the diary cannot tell remote from land-based play or one betting product from another; the society and Irish lotteries carry none. Both keys are first brought to published participation by the declared top_up_gambling_participation step (microcosm#1359; María''s ruling of 2026-10-25). The diary records a stake for about a fifth of the households the Gambling Commission''s Gambling Survey for Great Britain 2025 implies (PolicyEngine/chronicle#391), and under any steady rate of play a two-week diary sees at least half of the four-week players, so the gap is play the diary misses, not its window. Each adult''s chance of playing in four weeks and in twelve months is GSGB''s published rate for its sex and age band (tables B.1 and B.3), as the union of a key''s activities (table B.9: the National Lottery''s draws, scratchcards and online instant-win games; betting, bingo, casino games, fruit and slots, football pools, other online instant-win games and other gambling), taken as independent within the population that plays any of them (all gamblers, or those who play more than lottery draws). A household plays when any adult does, combined at theta: 1 - (1 - p_max) x prod(1 - p_other)^theta, where 0 is one player per household and 1 adults who play independently. Theta is fitted on the donor so that GSGB''s rates, applied to the donors'' own adults, give the diary''s ratio of the two-adult to the one-adult household rate, in which under-recording cancels if it is the same for both: 0.9 for the National Lottery, whose couples mostly buy their own tickets, and 0.08 for betting and gaming, mostly one adult''s. Within nine strata (one, two, or three or more adults, by the youngest adult''s age band: 18 to 34, 35 to 54, 55 and over), households without a stake are added by the gas connection walk''s weight-fitting rule, in an identity-keyed order drawn in proportion to a regularised donor propensity (on the chain''s predictors and spend draws, with recreation net of its gambling stakes, so that a recorded stake does not predict itself) times the household''s published chance, first to the stratum''s four-week share (regular players) and then on to its twelve-month share (occasional players); households the diary saw keep their stakes and count as regular. An added household''s stake is a draw from the donor''s positive stakes at a quantile keyed on its id, scaled so the added regular players'' mean is the mean of the households the diary saw, and an occasional player''s is a tenth of that. Both are assumptions: a two-week diary is more likely to catch frequent players, so the households it saw are probably the heavier players and equal means spread the base more evenly than play probably is; the tenth stands until GSGB publishes how often people play. The keys only re-share the bases: the stored spending stays the drawn one, so an added household''s stakes are not in its recorded recreation spending. The gambling_participation gate recomputes the rates from the vendored rows, checks every stratum''s shares, and holds each key''s stake scale within 0.5 to 2, so a broken stake draw that the scaling would hide fails it. Known biases: the quantities are levelled to the published figures while spending and the diary''s incidence stay at survey level (María''s ruling of 2026-10-23), so a household''s alcohol or tobacco duty is one multiple of its own spending, the same for every household that carries it: at prior weights alcohol duty is about 0.41 times alcohol spending and tobacco duty about 2.2 times tobacco spending, since the diary records a fraction of what is bought; VAT on the same goods stays on the survey base. Tobacco duty also sits on fewer households than smoke: 8.2 percent of households carry it, against 11.9 percent of UK adults who smoked cigarettes in 2023 (ONS), while the share of households with a smoker is above the adult rate; the duty per carrying household is higher by the same factor. Part of the gap is the frame''s: the chain''s share draws come out zero more often than the donors'' (10.3 percent of donors carry tobacco), mostly within households that carry the parent total. The gambling duties sit on the households the top-up brings to participation: 62.7 percent of households carry Lottery Duty and 29.8 percent the other gambling duties, against 10.7 and 2.0 percent on the diary''s draws alone, and 47 percent of adults in Great Britain who gambled in the past four weeks of 2025 (27 percent once lottery-draw-only players are left out). The top-up''s own biases: GSGB is taken as the level, though the Gambling Commission''s guidance on its statistics reports that an invitation that mentions gambling raised participation estimates, and that its experiment could not conclude which estimates are the more accurate; under-recording is taken as even across households, so the donor propensity carries the diary''s gradient by income, tenure, region and spending; the activity unions take activities as independent within their population, which GSGB''s table B.13 rules out among players (45 percent of four-week gamblers took part in one activity, against 26 percent under independence), but a model in which each adult''s activities share an intensity, which comes within 2.5 points of that share in every age band, moves neither key''s union by more than 9 percent in any age band, nor the share of households carrying either key by more than 0.1 points; theta is one per key, fits households of three or more adults less well, and takes the share carrying betting and gaming from 28.5 percent at 0 to 41.2 percent at 1; the stake assumptions above; and GSGB covers adults in Great Britain in calendar 2025, so Northern Ireland''s adults take its rates, against the FY2024-25 bases. On the real spine at prior weights, the share of households carrying the National Lottery rises from 51.5 percent in the bottom equivalised-income decile to 67.3 percent in the top, and betting and gaming from 26.8 to 34.8 percent, whose top decile holds 25.3 percent of the base; on the diary''s draws alone betting and gaming is almost flat (1.9 to 2.1 percent, 18.9 percent of the base in the top decile). Ordered by the published chance alone, betting and gaming would run from 29.2 to 29.8 percent and the Lottery from 57.0 to 67.9 percent with GSGB''s age mix, but neither key''s regional pattern would follow GSGB''s. With the propensity, the Lottery''s does (a correlation of 0.67 across Great Britain''s eleven regions, London lowest, as in GSGB), and betting and gaming''s barely (0.11). Other tobacco (c22131) includes e-cigarette refills, so the tobacco inputs also follow vaping spending and a household that only vapes carries tobacco duty; Vaping Products Duty, from 1 October 2026, needs a key of its own. The draught shares are national constants, so a household that buys alcohol only in shops takes the same draught relief as one that drinks in pubs. The quantities are FY2024-25''s, the excise year policyengine-uk charges in model year 2024 (its excise year runs from 6 April), and the engine holds them flat after it (PolicyEngine/policyengine-uk#2596). The step moves no spending column; the excise_quantities gate recomputes every level from the vendored rows.' + - car_co2_emissions + - car_engine_size + notes: 'Ports the incumbent LCFS consumption QRF, including NEED energy raking, with adjudicated weighted fits and an identity-keyed seed-0 fuel flag. The vehicle count is a numeric QRF predictor on both sides (LCFS a124 on the donor, the was_wealth draw of WAS vcarnr8 on the recipient, both clipped to 0-5), which retires the incumbent''s WAS-to-LCFS has-fuel bridge (microcosm#890 A). The recipient fuel flag draws each of a household''s vehicles as zero-emission at the battery-electric and fuel-cell share of the vendored DfT VEH1103 licensed-car stock (2024, Great Britain; plug-in hybrids count as fuel buyers), replacing the hand-copied NTS share (microcosm#890 E2): a household with vehicles buys fuel unless every one of them is zero-emission, so it is flagged at one minus that share raised to its vehicle count, and a one-vehicle household keeps the draw it had when the whole household was drawn at once (microcosm#1278; before, a household with several vehicles was all one or the other). The frame holds no fuel type, so the draw, keyed on the household identity, is what makes a vehicle-owning household a fuel buyer. Since microcosm#1095 B3 (J2) the per-car zero-emission share follows the household''s income fifth: the national share times the fifth''s relative risk among the cars NTS households keep (UK Data Service SN 5340, survey years 2022-2024, at the interview weight W3; zero-emission in the DVLA-linked 0 g/km CO2 band, the about three in ten cars without a linked band left out, as missing at random within their fifth), normalised over the frame''s cars so the national share is the licensed-car one. The NTS ranks England''s households by total gross income, McClements-equivalised, so the frame ranks household_gross_income over the engine''s before-housing-costs equivalence scale, in household-weighted fifths; a fifth on fewer than 10 zero-emission NTS cars would pool with its neighbour (a statistical floor, not the disclosure floor of 3). The uniforms are the same, so only the threshold moves. With the redraw of microcosm#1113 every flagged household buys fuel, so this flag alone sets fuel incidence; within an income fifth, who holds the zero-emission cars stays random. The household input uses_energy_prepayment_meter, which policyengine-uk reads for the July 2023 to March 2024 Energy Price Guarantee prepayment discount (PolicyEngine/policyengine-uk#2098, from 2.123.3), is drawn by the declared impute_prepayment_meter step (microcosm#1110): the donor prepays when it last put money on an electricity, gas or combined key or meter (b1751, b1701, b233, which the LCF asks only of prepayment-meter households) or its diary records a slot-meter payment (c45114, c45214), so electricity-only prepayment counts and a household with no meter payment, including one that did not answer, does not; a weighted regime-gated QRF on the chain''s predictors fits that flag and each recipient draws it at uniforms keyed on its household id, which moves no other draw. The release exports it: policyengine-uk reads it from 2.123.3 and an older engine, Microcosm''s locked one among them, ignores a column it does not know; the incumbent does not carry it until uk-data#539, so it is a reviewed extra column of the export surface. The frame flags about 3.0 million Great Britain households (10.5 %) at prior weights, against the around three million prepayment households the government counted when the discount began in July 2023 (a different reference period, households in both). Energy support clipping is exempt because NEED raking governs those columns. Bus fares are clipped to donor support before the pricing step (María''s rulings 2026-09-15 and 2026-09-17), which bounds the region no area prices (Wales keeps the chain''s raw draw) while the priced regions move beyond donor support afterwards; for that reason the column carries no committed support bound for the terminal gate. Domestic energy is raked in kWh to the NEED 2024 shape at the DESNZ level and priced at the average prices paid (microcosm#890 F, chronicle#270), where both NEED rakes take their mean-kWh margins from the vendored NEED 2024 tables (England and Wales by income band, tenure, property type and region; Scotland by income band, tenure and property type with the all-dwellings mean as its region margin; Northern Ireland untouched), the declared price_domestic_energy step converts spend to kWh and back at each household''s QEP price region through the committed crosswalk using the calendar-2024 average variable unit cost and fixed cost across payment methods, standard metering, including VAT (Northern Ireland gas at the UK average because QEP publishes no Northern Ireland gas row), a gas fixed cost only for connected households, the gas connection imposed on the recipient frame at the published share of each region (DESNZ subnational gas meters over electricity meters, 2024) by disconnecting gas-positive households in an identity-keyed uniform order, skipping a household whose weight would overshoot the published share (Northern Ireland has no subnational row and keeps the positive-gas rule), and, where the draw leaves a region below its share, by the declared connect_rule (microcosm#1164): two weighted fits on the chain''s predictors give each zero-gas household the probability that a donor like it pays for gas (a gradient-boosted classifier of the donor''s gas payers) and the gas such a donor pays (a regime-gated QRF of the payers'' gas spend, at quantiles keyed on the household id), and the region''s zero-gas households are connected in an identity-keyed order drawn in proportion to that probability, by the same weight-fitting walk, until the share is met. The labelled energy split leaves about 80 % of donors paying for gas against the about 85 % of homes DESNZ counts gas meters for (the derivation it replaced gave gas to 98 %), so without the connect leg nine of the eleven Great Britain regions fell short of their share, and after the four-margin NEED rake one factor per fuel scales the kWh so the prior-weighted frame total equals the fuel''s declared level for calendar 2024: for gas the DESNZ Energy Trends domestic consumption at actual temperature summed over the four quarters, and for electricity, the one fuel in spend_level_fuels (microcosm#1418), the kWh the ONS Consumer Trends 04.5.1 household spending buys at QEP''s United Kingdom average prices once the standing charges of every UK domestic meter DESNZ counts come off (gas stays on Energy Trends while ONS 04.5.2 counts bottled gas, microcosm#1095); NEED gas means are per gas-metered household, so the gas kWh margins are raked over connected households only while electricity is raked over every household, and the energy_rake gate recomputes every NEED mean, the DESNZ level and the connection shares from the vendored rows. After the level, no household is left above the domestic meter definitions behind the DESNZ total (NEED Annex B: gas meters under 73,200 kWh a year, electricity meters under 50,000 kWh on profile classes 1 and 2; María''s ruling of 2026-10-12 on microcosm#1207''s extreme energy values): the declared household_kwh_ceiling caps a household there, the households below it in the capped households'' own NEED cells are re-raked to those cells'' levelled means, and a proportional step restores the DESNZ total (microcosm#1164); the receipt counts the households capped and the share of the total they gave up, and the energy_rake gate checks both. Mobile homes have no NEED property-type row, so the rake takes them to the all-dwellings mean, the incumbent''s translation; where every mobile home of a NEED geography draws a spend at or below the standing charge, that cell has no kWh for the rake to scale, and the declared zero_kwh_cells_at_need_mean starts it at its NEED mean before the first sweep (microcosm#1240). The receipt lists the cells it started, and the energy_rake gate fails on a started cell the stage does not declare and on any other cell with a zero mean. Both rakes band households on gross income, NEED''s concept: the donor on LCFS p344p, cash income before tax, National Insurance, council tax and pension contributions, and the recipient on the same concept, its HBAI net income with the deductions policyengine-uk takes to reach it added back (council tax and domestic rates, income tax, National Insurance, student loan repayments, employee and personal pension contributions, maintenance and child payments, LVT), which the stage materializes for that band alone (microcosm#1164). Before it the recipient fell back to its HBAI net income, which put households in too low a band; the engine''s household_gross_income would put them in too high a one, since it adds capital gains and the in-kind NHS, education and transport spending to cash income. The disconnection walk''s seed-0 uniform order makes every group of households (dwelling type, income band, support channel) lose the same expected share of its drawn connected mass, so only the level of the drawn connection moves; the smallest-drawn-gas-first order it replaces piled the disconnections onto low-draw flats once the SPI support households drew gas from their own incomes, and NEED''s Scottish property-type means then implied a level 2.6 % above the Scottish all-dwellings mean, a margin conflict the rake could not close. Bus fares are priced from journeys (microcosm#930), where the nts_bus_travel stage imputes each person''s annual bus-in-London and other-local-bus trips and their concessionary eligibility, and the declared price_bus_journeys step sets bus_fare_spending as the sum over the household''s non-eligible persons of trips times boardings per resident trip (the published BUS01 journeys over the published NTS0705a trips per resident times the ONS population) times the yield per fare-paying boarding (BUS05ai receipts over journeys less concessionary journeys; in England outside London only the older and disabled ones of BUS01c, as policyengine-uk prices it from 2.158.3), per area; bus-in-London trips take the London area''s price for every resident, other-local-bus trips the price of the residence area (England outside London; Scotland and Northern Ireland from their own receipts and journeys with England''s trip rate as the declared proxy); Wales is unpriced and keeps the raw draw. The chain still draws bus_fare_spending so later targets condition on the same raw draw; the emitted column is the priced value. The receipt records every factor, the frame-implied boardings beside the published ones and the frame''s eligible trip share beside the publisher''s concessionary boarding share, so the prior-weight fit of the bound receipts targets is read as a composition check, never a level the stage set; the #890 incidence draw and fare rake are retired. The 2024-25 diary (UKDS SN 9603, 2nd edition, whose household tab carries the annual weight as cal_weight_annual, the name weighta had; microcosm#1164) is moved to the base year by the declared uprate_donor_columns step (microcosm#890). Consumption columns and bus fares take the engine''s CPI index from the April-to-March diary year, placed on the calendar-year index at three quarters of 2024 and one of 2025, back a quarter to calendar 2024 (microcosm#1113; the diary sits a quarter past it, so the factor is below one; the fare factor survives only where no fare cell levels the column, i.e. Wales). Income predictors take a factor of one: the diary year is the FRS 2024-25 year they are matched against. Petrol and diesel take the DESNZ pump-price times HMRC litres per head outturn from the vendored road_fuel_anchors.json, which sets only their donor distribution because the level step follows; the energy columns are exempt because the NEED 2024 shape at the DESNZ level and the QEP average prices paid set their level. The household adult and child counts (LCFS G018 and G019, the survey''s age-18 split) predict on both sides; the recipient counts its members by age, not through the engine''s is_adult and is_child flags, which policyengine-uk#1896 deprecates (uk-data#486, microcosm#1095). Road fuel incidence and level are set by two declared steps (microcosm#1113). The two-week diary leaves about a third of car-owning donors with no fuel purchase, which the chain reproduces among the households the fuel flag marks as fuel buyers, so the redraw_zero_road_fuel step redraws a flagged household that drew zero from the donor''s distribution among households with positive road fuel, on the chain''s predictors: a weighted regime-gated QRF draws the total, positive by construction, then the petrol share of it, at quantiles keyed on the household id; positive draws are kept. Then the level_road_fuel step, after the fuel flag has zeroed the households without a fuel car, scales petrol and diesel so their prior-weighted total equals ONS Consumer Trends household spending on COICOP 07.2.2 for calendar 2024 (the year of the DESNZ pump prices the donor uprating uses) less the donor''s own other-fuels share of 07.2.2 (c72213). Since microcosm#1095 B3 (K) each fuel is levelled to that total times its share of household-paid spend, so the total stays and each household''s spend within a fuel keeps its relative size, but the diary''s petrol/diesel mix gives way to the household one: HMRC''s FY2024-25 litres of the fuel times DESNZ''s cars share of its road use (the litres audit''s benchmark), times the NTS household-paid share of car miles, at the 2024 pump prices. A kept car''s private and commuting miles are household-paid, its business miles and every company-car mile are not, and England stands for the UK. The diary''s 07.2.2 has three lines (c72211 petrol, c72212 diesel and c72213, the other motor fuels and lubricants) and none for vehicle electricity. The LCFS diary records about a quarter less road fuel than ONS, and binding the OBR cars receipts had closed that gap by moving weight onto fuel-buying households; petrol and diesel therefore carry no committed support bound, like the other levelled columns. The totals that contain levelled columns are written back around them by the declared recompose_from_remainder step (microcosm#1113): each keeps its own chain draw less the chain''s draws of the parts the stage re-levels, kept before any step touches them and floored at zero where the parts outgrow the total, and adds the levelled parts back, so housing_water_and_electricity_consumption is its draw less the drawn electricity and gas plus the levelled electricity and gas, and transport_consumption its draw less the drawn petrol, diesel and bus fares plus the levelled petrol and diesel and the priced bus fares. The chain draws each part after, and conditional on, its total, so the remainder is the chain''s own split; a remainder drawn as a chain target of its own over-drew the vehicle-purchase tail of transport, 10 to 13 percent above the donor in-sample. The chain''s domestic-energy target is the electricity and gas the stage derives from the diary''s fuel, light and power (p537) by its labelled parts, from the LCF User Guide''s derived-variable labels and P537 definition (microcosm#1164): each fuel''s last account payment less its rebate (b489 electricity, b490 gas, read as the tab carries them; the stage refuses a donor where b489 equals b175 less b178, or b490 equals b170 less b173, to the penny for under 95 percent of that fuel''s account payers, which pins the labels and the rebate''s sign), its prepayment key or meter payment (b1751, b1701), its component of a combined utilities bill (b227 electricity, b226 gas) and of a combined key or meter payment (b2332, b2331), and the diary''s second-dwelling account and slot-meter lines (c45112 and c45114, c45212 and c45214); what a combined payment leaves unsplit (the combined bill b231 less its rebate b174, and the combined key or meter payment b233, each less its parts) goes by the household''s own electricity share where it pays for both fuels, and otherwise by the donor''s mean share of the households that do, since a combined payment means the household pays for both; a donor with no such household fails. The diary''s other fuels (central-heating oil b017 and c45312, bottled gas b018 and c45222, coal and coke c45411, wood and peat c45412, hot water, steam and ice c45511) are neither, and the donor_energy_split receipt records the split against p537: what reading refunds as zero adds, what the unclipped parts differ from p537 by, the weighted share of donors whose unclipped parts differ from their p537, and the account identity shares. The derivation it replaces read b226 as electricity by direct debit and b489 and b490 as prepayment payments, where the labels make them the gas component of a combined bill and the electricity and gas account payments less rebates. The liquid fuels (central-heating oil and paraffin with bottled gas, LPG with liquid) and the solid fuels (coal, coke, wood and peat) are drawn as liquid_fuel_consumption and solid_fuel_consumption, the inputs policyengine-uk 2.149.0 reads (pe-uk#2572; María''s ruling of 2026-10-22), after the eighteen spend targets so that every earlier draw is the chain''s own, uprated to calendar-2024 prices as every diary spend column is; the housing total nets their draws and adds them back unchanged, so it always holds them, and hot water, steam and ice stays in its remainder. The receipt records the published ONS 04.5.3 and 04.5.4 spend beside each fuel''s donor total at diary prices and the frame''s draw (published_fuels). Before the hold, each COICOP division''s drawn spend per household (a recomposed total''s remainder, any other division''s whole draw) is set against the donor''s mean of the same spend (for housing and transport, the donor''s total less the same parts, since the levelled parts keep their published levels and are no over-draw); a division above the divisions'' shared ratio, measured once before any levelling, comes down to it (María''s rulings of 2026-10-23 and 2026-10-24, microcosm#1278; Vahid''s review of microcosm#1383, item 9); the receipt records each division''s ratio and factor and the shared ratio (division_levelling) and each recomposed total''s levelling_factor. Each total is then held to the donor''s realised maximum of that total (maximum_total: donor_support, the support every drawn column is clipped to; microcosm#1164), never below its parts, the excess coming out of its remainder: a remainder near the top of the diary''s range plus levelled parts larger than the drawn ones would otherwise leave it. The two totals keep their committed support bounds, which the terminal support gate applies to the emitted frame; the recomposed_totals gate checks the declaration and the receipt, whose rows held at the maximum and weighted mass taken enter its identities. Every household spend column is at calendar-2024 prices as households paid them, the H5''s year that policyengine-uk projects from and the calibration uprates to the calendar-2025 window (microcosm#1113): the diary columns by the CPI uprating to 2024, road fuel at ONS 07.2.2 for 2024, energy at DESNZ volume and QEP prices for 2024, and bus fares at each area''s fiscal-year yield re-priced to 2024 by its fares index (the DfT local bus fares index by quarter for London and England outside London, Scotland''s calendar-year index; Northern Ireland, which publishes no fares index, from its own yields of the two fiscal years 2024 overlaps, weighted three months and nine (microcosm#1207), in place of England''s index, which carries the January 2025 rise in the English fare cap Northern Ireland did not have); the consumption_basis gate holds every level-setting step to that year. policyengine-uk applies the fiscal 2024-25 rules to model year 2024 (it samples each parameter at 30 April), so every levelled column sits about a quarter before the midpoint of the policy year it is taxed in; the calibration binds calendar-year facts as published and fiscal-year facts at the calendar window (María''s rule of 2026-09-22). The stage receipt also reports, for each of the twelve COICOP divisions, the prior-weighted frame total against ONS Consumer Trends for the same calendar year less the classes a household diary does not record (02.3 narcotics, 04.2 owner-occupiers'' imputed rent and 12.6.1 FISIM), on ONS''s domestic concept, and the twelve together against the national concept as well; it is report-only (microcosm#1113). The report-only litres audit compares each fuel''s frame litres with HMRC''s clearances of that fuel scaled by the cars share of its road use, from the vendored DESNZ sub-national road transport fuel consumption by vehicle type and fuel (PolicyEngine/chronicle#322); the OBR cars share of fuel duty receipts, uniform across fuels, stays beside the total. The liquid fuels hold bottled gas (b018, c45222), which COICOP puts under 04.5.2 (gas) and ONS''s 04.5.3 leaves out, so the receipt also gives the donor''s liquid fuels without it; neither heating-fuel column is levelled to ONS: the donor''s diary totals are about twice ONS''s, and the frame''s draws reach neither those nor ONS''s, so a costing on either needs levelling to ONS first (Vahid''s review of microcosm#1383, item 8). After its spend targets and the two fuels the chain draws five shares the derive step computes on the donor from the diary lines (microcosm#1359): tobacco''s share of the off-trade alcohol and tobacco that make up P602 (c22111, c22121 and c22131 over those three and the seven lines of alcohol brought home, c21111 to c21311; P602 also sums narcotics, c23111, which the end-user tab does not carry), on-trade alcohol''s share of restaurants and hotels (the eight lines of drinks away from home, cb111c to cb111j, over P611, clipped at one because the tab stores P611 to one decimal place), gambling stakes'' share of recreation (the seven games-of-chance stake lines P609 sums, c94311 to c94316 and c94319: pools, bingo, lotteries, bookmaker and tote betting with gaming machines, and the National Lottery; the winnings lines beside them sit in no total), the National Lottery''s share of those stakes (scratchcards and draws, c94316 and c94319, over the seven) and the betting and gaming share of the rest (football pools, bingo, and bookmaker and tote betting with gaming machines, c94311, c94312 and c94314, over the other five; society lotteries, c94313, and the Irish Lottery, c94315, pay no UK gambling duty). A household''s tobacco, off-trade alcohol, on-trade alcohol and gambling stakes are its shares of the totals it carries, and its National Lottery and betting and gaming stakes its shares of its stakes, so the parts sum to the totals and no total, the VAT base included, moves; appended after the twenty targets, the shares move none of their draws. The shares and the spending they give are scratch, on no table; the report-only excise_shares receipt records each share on the frame beside the donor. The declared level_excise_quantities step turns that spending into policyengine-uk''s excise inputs (microcosm#1359), so alcohol, tobacco and gambling duty stop scoring zero. Each national quantity is a published FY2024-25 figure from the vendored excise_facts.json, and the step gives each household its part in proportion to the spending that buys it, at prior weights (one factor per input, the level_road_fuel scaling), so the frame''s weighted total of each input is the published one; a household that buys one product of a kind buys all of that kind in the national mix. Alcohol: each product''s litres are HMRC''s clearances of beer, cider, wine, spirits and other fermented products (the Alcohol Bulletin, in litres of pure alcohol) over the engine''s own strength for the product, which policyengine-uk multiplies back, shared by off- and on-trade alcohol spending together; beer and cider take their draught shares from the clearances under draught relief, alone or with small producer relief, over all of their clearances, and the other products, whose draught clearances HMRC does not publish, keep the engine''s zero, as does sparkling cider, which the bulletin counts within cider. A pound buys the same volume in a pub as in a shop under this rule, which leans the volume, and so the duty, towards on-trade drinkers: against a published on-trade volume share of about 27 percent, a pound spent in a pub is given about 1.6 times the volume it buys and a pound spent in a shop about 0.78 times, and about 11 percent of the volume sits with other households on the 2024-25 diary. No on-trade volume share can be archived (MESAS is a NielsenIQ and Circana dashboard with no fixed file), so the spending rule stands, its lean documented (María''s ruling of 2026-10-23). Tobacco: cigarettes a week and grams a week of hand-rolling tobacco, cigars and other tobacco are HMRC''s clearances (the Tobacco Bulletin) over the engine''s 52 weeks, shared by tobacco spending; heated tobacco sits within other tobacco in the bulletin, so it is charged at the other-tobacco rate and its own input keeps the engine''s zero. Gambling: each input is its duty''s dutiable base, HMRC''s cash receipts for the duty (the Betting and Gaming bulletin) or Machine Games Duty''s declared liabilities for the band, over the engine''s FY2024-25 rate (Gaming Duty over the engine''s effective-rate proxy for it), so the engine charges back the published receipts. General Betting Duty''s base, its receipts over the fixed-odds rate, is split over the land-based fixed-odds, remote horse-racing, remote other, exchange and horse-and-dog pool inputs by the Gambling Commission''s gross gambling yield for Great Britain, remote fixed-odds betting by the horse-racing share of all remote betting yield, since the Commission publishes no betting activity by event; its horse racing is not only UK racing, so the remote UK horse-racing input is overstated and, from April 2027, when the engine charges other remote betting at 25 percent, too much of the base stays at 15 percent and the rise is understated; and its pool betting can hold pools on other events, such as football pools, which pay Pool Betting Duty. Spread betting, which the Commission does not regulate, has no published base and keeps the engine''s zero. Lottery Duty''s base is shared by the National Lottery stakes and every other gambling base by the betting and gaming stakes, since the diary cannot tell remote from land-based play or one betting product from another; the society and Irish lotteries carry none. Both keys are first brought to published participation by the declared top_up_gambling_participation step (microcosm#1359; María''s ruling of 2026-10-25). The diary records a stake for about a fifth of the households the Gambling Commission''s Gambling Survey for Great Britain 2025 implies (PolicyEngine/chronicle#391), and under any steady rate of play a two-week diary sees at least half of the four-week players, so the gap is play the diary misses, not its window. Each adult''s chance of playing in four weeks and in twelve months is GSGB''s published rate for its sex and age band (tables B.1 and B.3), as the union of a key''s activities (table B.9: the National Lottery''s draws, scratchcards and online instant-win games; betting, bingo, casino games, fruit and slots, football pools, other online instant-win games and other gambling), taken as independent within the population that plays any of them (all gamblers, or those who play more than lottery draws). A household plays when any adult does, combined at theta: 1 - (1 - p_max) x prod(1 - p_other)^theta, where 0 is one player per household and 1 adults who play independently. Theta is fitted on the donor so that GSGB''s rates, applied to the donors'' own adults, give the diary''s ratio of the two-adult to the one-adult household rate, in which under-recording cancels if it is the same for both: 0.9 for the National Lottery, whose couples mostly buy their own tickets, and 0.08 for betting and gaming, mostly one adult''s. Within nine strata (one, two, or three or more adults, by the youngest adult''s age band: 18 to 34, 35 to 54, 55 and over), households without a stake are added by the gas connection walk''s weight-fitting rule, in an identity-keyed order drawn in proportion to a regularised donor propensity (on the chain''s predictors and spend draws, with recreation net of its gambling stakes, so that a recorded stake does not predict itself) times the household''s published chance, first to the stratum''s four-week share (regular players) and then on to its twelve-month share (occasional players); households the diary saw keep their stakes and count as regular. An added household''s stake is a draw from the donor''s positive stakes at a quantile keyed on its id, scaled so the added regular players'' mean is the mean of the households the diary saw, and an occasional player''s is a tenth of that. Both are assumptions: a two-week diary is more likely to catch frequent players, so the households it saw are probably the heavier players and equal means spread the base more evenly than play probably is; the tenth stands until GSGB publishes how often people play. The keys only re-share the bases: the stored spending stays the drawn one, so an added household''s stakes are not in its recorded recreation spending. The gambling_participation gate recomputes the rates from the vendored rows, checks every stratum''s shares, and holds each key''s stake scale within 0.5 to 2, so a broken stake draw that the scaling would hide fails it. Known biases: the quantities are levelled to the published figures while spending and the diary''s incidence stay at survey level (María''s ruling of 2026-10-23), so a household''s alcohol or tobacco duty is one multiple of its own spending, the same for every household that carries it: at prior weights alcohol duty is about 0.41 times alcohol spending and tobacco duty about 2.2 times tobacco spending, since the diary records a fraction of what is bought; VAT on the same goods stays on the survey base. Tobacco duty also sits on fewer households than smoke: 8.2 percent of households carry it, against 11.9 percent of UK adults who smoked cigarettes in 2023 (ONS), while the share of households with a smoker is above the adult rate; the duty per carrying household is higher by the same factor. Part of the gap is the frame''s: the chain''s share draws come out zero more often than the donors'' (10.3 percent of donors carry tobacco), mostly within households that carry the parent total. The gambling duties sit on the households the top-up brings to participation: 62.7 percent of households carry Lottery Duty and 29.8 percent the other gambling duties, against 10.7 and 2.0 percent on the diary''s draws alone, and 47 percent of adults in Great Britain who gambled in the past four weeks of 2025 (27 percent once lottery-draw-only players are left out). The top-up''s own biases: GSGB is taken as the level, though the Gambling Commission''s guidance on its statistics reports that an invitation that mentions gambling raised participation estimates, and that its experiment could not conclude which estimates are the more accurate; under-recording is taken as even across households, so the donor propensity carries the diary''s gradient by income, tenure, region and spending; the activity unions take activities as independent within their population, which GSGB''s table B.13 rules out among players (45 percent of four-week gamblers took part in one activity, against 26 percent under independence), but a model in which each adult''s activities share an intensity, which comes within 2.5 points of that share in every age band, moves neither key''s union by more than 9 percent in any age band, nor the share of households carrying either key by more than 0.1 points; theta is one per key, fits households of three or more adults less well, and takes the share carrying betting and gaming from 28.5 percent at 0 to 41.2 percent at 1; the stake assumptions above; and GSGB covers adults in Great Britain in calendar 2025, so Northern Ireland''s adults take its rates, against the FY2024-25 bases. On the real spine at prior weights, the share of households carrying the National Lottery rises from 51.5 percent in the bottom equivalised-income decile to 67.3 percent in the top, and betting and gaming from 26.8 to 34.8 percent, whose top decile holds 25.3 percent of the base; on the diary''s draws alone betting and gaming is almost flat (1.9 to 2.1 percent, 18.9 percent of the base in the top decile). Ordered by the published chance alone, betting and gaming would run from 29.2 to 29.8 percent and the Lottery from 57.0 to 67.9 percent with GSGB''s age mix, but neither key''s regional pattern would follow GSGB''s. With the propensity, the Lottery''s does (a correlation of 0.67 across Great Britain''s eleven regions, London lowest, as in GSGB), and betting and gaming''s barely (0.11). Other tobacco (c22131) includes e-cigarette refills, so the tobacco inputs also follow vaping spending and a household that only vapes carries tobacco duty; Vaping Products Duty, from 1 October 2026, needs a key of its own. The draught shares are national constants, so a household that buys alcohol only in shops takes the same draught relief as one that drinks in pubs. The quantities are FY2024-25''s, the excise year policyengine-uk charges in model year 2024 (its excise year runs from 6 April), and the engine holds them flat after it (PolicyEngine/policyengine-uk#2596). The step moves no spending column; the excise_quantities gate recomputes every level from the vendored rows. Since microcosm#1095 B3 the declared assign_car_attributes_from_nts step writes policyengine-uk''s vehicle excise duty inputs, which no stage wrote, so every household''s duty was zero: a household''s vehicles less its members'' company cars (an employer pays their duty) go one to each other adult, oldest first, a car beyond the adults left out (policyengine-uk holds one car a person); a household the fuel flag leaves without road fuel keeps zero-emission cars only, and one that buys fuel holds a petrol, diesel or other car first and further cars at its own per-car zero-emission share; each car is a kept NTS car of its class in the household''s income fifth, drawn at its interview weight scaled to its fifth and age band''s kept cars (fewer of the newest and oldest cars carry the registration record its CO2 bands come from), giving car_fuel_type (a diesel registered from 2021 meets RDE2), car_co2_emissions (its band''s midpoint on the scale its duty regime reads), car_engine_size (none for a zero-emission car), car_first_registration_date (the reference date of 1 October 2025 less its age, drawn uniformly within its NTS band, so each car keeps its age; the open band of over 18 years closes at 25) and car_is_ved_exempt (DLA''s higher-rate or PIP''s enhanced mobility component exempts the member''s own car, or the oldest car-holder''s in their benefit unit). The list price keeps the engine''s default, so no car pays the expensive-car supplement. Vehicle excise duty is measured, never bound: no target carries it.' - stage: etb_vat survey: Effects of Taxes and Benefits 1977-2024 source: UK Data Service SN 8856 Effects of Taxes and Benefits household tab and cited VAT anchor resource. @@ -4983,7 +5096,6 @@ stages: - kind: zero_spi_channel_reports rows: spi_synthetic_support_channel columns: - - jsa_contrib_reported - jsa_income_reported - esa_income_reported - income_support_reported @@ -5002,6 +5114,18 @@ stages: - widowed_parents_allowance_reported linkage: person_source_id -> FRS-channel person_id reason: follows an injury, service or a death, not income + - kind: restore_spi_channel_reports_from_source_within_earnings_limit + rows: spi_synthetic_support_channel + columns: + - jsa_contrib_reported + - esa_contrib_reported + linkage: person_source_id -> FRS-channel person_id + earnings: (employment_income + max(self_employment_income, 0)) / 52, the SPI row's own + weekly_limit: 'esa_contrib_reported: up to policyengine-uk esa_exempt_work_higher_earnings_limit (ESA Regs 2008 reg 45(4)); jsa_contrib_reported: below the age-related amount (gov.dwp.JSA.contrib.amount_18_24 under 25, amount_over_25 from 25) plus gov.dwp.JSA.contrib.earn_disregard, the prescribed amount being that sum less 1p (JSA Regs 1996 reg 56); weekly, at the frame''s year' + hours: 'hours_worked / 52, the twin''s usual hours, which the SPI row keeps' + weekly_hours_limit: 'esa_contrib_reported: below gov.dwp.ESA.exempt_work.hours_limit (ESA Regs 2008 reg 45(4)); jsa_contrib_reported: below gov.dwp.JSA.remunerative_work.claimant_hours (JSA Regs 1996 reg 51(1)(a)); weekly, at the frame''s year' + award: 'esa_contrib_reported: the twin''s; jsa_contrib_reported: the lower of the twin''s and 52 times the age-related amount less the earnings above the disregard (Jobseekers Act 1995 s. 4(1)(b), JSA Regs 1996 reg 80); nil outside the limits' + reason: 'a contributory award follows the person''s National Insurance record and, for ESA, incapacity, which the copy keeps, but not work outside each benefit''s own earnings and hours limits' - kind: derive scope: disability categories and flags re-derived on SPI-channel rows from the final reports with the frs_disability rule at its declared year; the categories, which read only AA, DLA and PIP, asserted unchanged - kind: derive @@ -5028,7 +5152,6 @@ stages: rows: spi_synthetic_support_channel outputs: [] rewrites: - - jsa_contrib_reported - jsa_income_reported - esa_income_reported - income_support_reported @@ -5041,12 +5164,14 @@ stages: - bsp_reported - war_widows_pension_reported - widowed_parents_allowance_reported + - jsa_contrib_reported + - esa_contrib_reported - is_disabled_for_benefits - is_enhanced_disabled_for_benefits - is_severely_disabled_for_benefits - receives_benefits_in_own_right - would_claim_uc - notes: 'Runs on SPI-channel rows after uc_reporter_redraw, the last writer of Universal Credit reports, and before uc_capital_coherence and the Pension Credit, Child Benefit and Carer''s Allowance take-up stages (microcosm#1095, uk-data#514). The stage-2 forests of hmrc_spi_income_spine re-impute each SPI adult''s benefit reports from age, gender, region and the new incomes, with nothing of the benefit unit''s entitlement or claim history. This stage zeroes the SPI rows'' contributory and income-based JSA, income-related ESA, Income Support, Working and Child Tax Credit, Severe Disablement Allowance and Sure Start Maternity Grant reports, whose award needs an existing legacy claim, an out-of-work test, or a claim the copied household''s new incomes cannot carry (policyengine-uk pays income-related ESA as reported behind a capital test alone); restores Industrial Injuries Disablement Benefit, the Armed Forces Compensation Scheme and bereavement support from the FRS twin (person_source_id), since they follow an injury, service or a death; re-derives the disability flags (the categories, which read only AA, DLA and PIP, are asserted unchanged) and receives_benefits_in_own_right from the final reports; and redraws would_claim_uc for SPI benefit units as frs_take_up draws it for FRS units: a unit with a Universal Credit reporter claims, and the other units in frs_take_up''s Universal Credit population (a UC claimant or partner aged 18 to under Pension Credit qualifying age) claim as the residual of the contract''s universal_credit rate on draws keyed on the SPI unit''s own identity. That draw stands for a unit with no award; uc_take_up redraws every entitled unit of both channels by award band and family type once uc_capital_coherence has set the capital the engine assesses (microcosm#1334). Contributory ESA, PIP, DLA, AA, Carer''s Allowance, State Pension and Winter Fuel Payment keep their draws (carers_allowance_take_up later opens the Carer''s Allowance claim flag to carers over the earnings limit, microcosm#1319), and FRS rows are never modified; contributory ESA is open to new claims and not income-tested, and the incapacity it needs follows the person, whose health and disability reports the SPI copy keeps.' + notes: 'Runs on SPI-channel rows after uc_reporter_redraw, the last writer of Universal Credit reports, and before uc_capital_coherence and the Pension Credit, Child Benefit and Carer''s Allowance take-up stages (microcosm#1095, uk-data#514). The stage-2 forests of hmrc_spi_income_spine re-impute each SPI adult''s benefit reports from age, gender, region and the new incomes, with nothing of the benefit unit''s entitlement or claim history. This stage zeroes the SPI rows'' income-based JSA, income-related ESA, Income Support, Working and Child Tax Credit, Severe Disablement Allowance and Sure Start Maternity Grant reports, whose award needs an existing legacy claim, an out-of-work test, or a claim the copied household''s new incomes cannot carry (policyengine-uk pays income-related ESA as reported behind a capital test alone); restores Industrial Injuries Disablement Benefit, the Armed Forces Compensation Scheme and bereavement support from the FRS twin (person_source_id), since they follow an injury, service or a death; gives contributory JSA and ESA the FRS twin''s award where the copy''s own work stays within each benefit''s limits, and none outside them, since a contributory award follows the person''s National Insurance record and, for ESA, incapacity, which the copy keeps, but not the copy''s work (María''s ruling of 29 October 2026, microcosm#1095 B10): ESA''s permitted work, under 16 hours a week and earnings up to policyengine-uk''s esa_exempt_work_higher_earnings_limit, and JSA''s own limits (Vahid''s review of microcosm#1426), under 16 hours a week and earnings below the age-related amount plus the earnings disregard, with the award cut to that amount less the earnings above the disregard, all at the frame''s year, on the copy''s employment income plus any self-employment profit over 52 weeks and its twin''s usual hours; re-derives the disability flags (the categories, which read only AA, DLA and PIP, are asserted unchanged) and receives_benefits_in_own_right from the final reports; and redraws would_claim_uc for SPI benefit units as frs_take_up draws it for FRS units: a unit with a Universal Credit reporter claims, and the other units in frs_take_up''s Universal Credit population (a UC claimant or partner aged 18 to under Pension Credit qualifying age) claim as the residual of the contract''s universal_credit rate on draws keyed on the SPI unit''s own identity. That draw stands for a unit with no award; uc_take_up redraws every entitled unit of both channels by award band and family type once uc_capital_coherence has set the capital the engine assesses (microcosm#1334). PIP, DLA, AA, Carer''s Allowance, State Pension and Winter Fuel Payment keep their draws (carers_allowance_take_up later opens the Carer''s Allowance claim flag to carers over the earnings limit, microcosm#1319), and FRS rows are never modified.' - stage: uc_capital_coherence survey: Family Resources Survey 2024-25 source: Family Resources Survey 2024-25 benefit-unit TOTCAPB4 observations carried through the SPI support channel, plus the household's Wealth and Assets Survey property imputation for the unit that holds it. @@ -5319,32 +5444,6 @@ stages: - would_claim_child_benefit - child_benefit_opts_out notes: 'Runs after the SPI income chain, UC capital coherence and the Pension Credit redraw, before CGT cloning (microcosm#1063). frs_take_up draws would_claim_child_benefit early at one flat rate over every benefit unit with the reporters on top, and child_benefit_opts_out at a flat rate whatever the unit''s income; this stage redraws both. One temporary engine materialization gives each person''s eligibility as a child or qualifying young person and each person''s adjusted net income (consumed only). A family claims for all its children or none, so the draw is by family, keyed on the age of its eldest eligible child: a reporter claims, and the other families claim at rates solved from the eldest age down so that the claimed share of the eligible children of each single year of age is HMRC''s published one (Table 15, May 2025, opted-out families included), weighted at the stage''s household weights. The published opted-out share of registered families (August 2025) is drawn among claiming non-reporters, fully charged first. Opt-out-aware models restrict both the full-charge and taper pools to a positive charge fraction at least the installed opt_out_charge_share. With the default share of one, only fully charged families can opt out; an insufficient pool is recorded as a shortfall instead of selecting paid taper families. Legacy models retain the original full-charge pool and taper fallback. Models exposing gov.hmrc.child_benefit.opt_out_charge_share (policyengine-uk#2140) receive registered claims, including opted-out families, in would_claim_child_benefit and the separate opt-out in child_benefit_opts_out. Older models receive the legacy claims-and-not-opted-out payment flag because they ignore the opt-out input. Stage evidence records the selected encoding, evaluated opt-out charge share and engine parameter source. The in-payment audit counts claims-and-not-opted-out in the draw, with new candidates aligned to baseline payment suppression; it is not a fresh model run or population calibration evidence. A benefit unit with no eligible child keeps its early draw and is never opted out.' -- stage: carers_allowance_take_up - survey: Family Resources Survey 2024-25 - source: 'Independent Review of Carer''s Allowance Overpayments (July 2025), chapter 7, and DWP benefit statistics, through the UK take-up contract''s carers_allowance_newly_entitled rate, applied to PolicyEngine-UK''s Carer''s Allowance earnings test after the SPI income chain.' - grain: person - artifacts: [] - operations: - - kind: materialize_rules_engine_predictors - predictors: - - is_gainfully_employed_for_carers_allowance - - is_severely_disabled_for_carers_allowance - - carers_allowance_earnings - consumed_only: true - year_rule: survey_year - - kind: assign_binary_from_rate - output: would_claim_carers_allowance - draw: would_claim_carers_allowance - assignment_unit: person - eligibility: 'persons whose care_hours reach policyengine-uk''s gov.dwp.carers_allowance.min_hours, who care for a severely disabled person, who report no Carer''s Allowance, and whom is_gainfully_employed_for_carers_allowance holds gainfully employed at the survey year: the carers the earnings limit alone keeps from the allowance (a carer whose frs_care_hours_in_household reach min_hours cares for a severely disabled person when another member of the household is is_severely_disabled_for_carers_allowance at the survey year; a carer whose largest in-household band does not reach the hours does on a second identity-keyed uniform (salt carers_allowance_outside_household_pool), placed by weight within strata of survey-year means-tested receipt and earnings band, below the household-weighted share of the in-household carers reporting no allowance who have such a member). In Scotland the flag is Carer Support Payment''s, which policyengine-uk pays under its own earnings limit from 2.146.1' - reported_true_anchor: carers_allowance_reported > 0 - rate_key: carers_allowance_newly_entitled - rate_derivation: 'the take-up contract''s carers_allowance_newly_entitled rate, with the identity-keyed uniforms placed by weight within strata (the route (in-household or not), whether the benefit unit reports a means-tested benefit at the survey year (universal credit, housing benefit, income support, income-based JSA, income-related ESA, tax credits or pension credit), and the survey-year weekly earnings band, one weekly rate wide above the limit and open above three; the pool''s strata are the last two) and rotated by a start drawn per stratum, so that every stratum claims the rate of its eligible weight to within one record and every eligible carer claims with probability equal to the rate; would_claim = reported OR (eligible AND position < rate), so a reporter stays true and every other person false' - seed: 0 - outputs: [] - rewrites: - - would_claim_carers_allowance - notes: 'Runs after the SPI income chain, UC capital coherence and the Pension Credit and Child Benefit redraws, before CGT cloning, so every clone carries its source''s draw (microcosm#1319). frs_spine sets would_claim_carers_allowance from reported receipt and the SPI income chain re-derives it from the refilled receipt on the rows it redraws, so that care_hours qualifies a carer for the Universal Credit carer element without paying the allowance to every carer (#882). A carer above the earnings limit cannot report the allowance, so no reform that widens it reached a carer who would claim once entitled: the April 2025 rise of the limit from £151 to £196 a week brought an estimated 61,000 more people into eligibility (Independent Review of Carer''s Allowance Overpayments, July 2025, chapter 7). One temporary engine materialization at the survey year, on the frame''s own values, gives each person''s is_gainfully_employed_for_carers_allowance, is_severely_disabled_for_carers_allowance and carers_allowance_earnings (consumed only); the engine reads a year''s parameters at 30 April, so the limit is 2024-25''s £151. The allowance is paid only for caring for a severely disabled person (SSCBA 1992 s. 70(2)), which the care hours do not record (microcosm#1418): a carer whose largest in-household band alone reaches the hours (frs_care_hours_in_household) qualifies when another member of the household is severely disabled, and a carer whose largest in-household band does not reach them (care outside the household, or hours spread over bands; the allowance needs the hours for one person) joins on a second identity-keyed uniform (salt carers_allowance_outside_household_pool), placed by weight within strata of survey-year means-tested receipt and earnings band, below the household-weighted share of the in-household carers reporting no allowance who have such a member (María''s decision (a) of 2026-10-28). A person in that pool whose care_hours reach the engine''s gov.dwp.carers_allowance.min_hours (35), who reports no allowance and whom the earnings test holds gainfully employed claims at the take-up contract''s carers_allowance_newly_entitled rate (0.6, María''s ruling of 2026-10-20, sensitivity 0.45 to 0.75) on the person''s identity-keyed uniform (seed 0, salt would_claim_carers_allowance), placed by weight within strata and rotated by a start drawn per stratum, so that each stratum claims the rate of its eligible weight to within one record and each eligible carer with probability equal to the rate (weight_balanced_uniforms, policyengine-uk''s stratified_uniform with a random start; microcosm#1418 and the independent review of microcosm#1420): the route, whether the benefit unit reports a means-tested benefit at the survey year, and the survey-year weekly earnings band, one weekly rate wide above the limit and open above three. would_claim = reported OR (eligible AND position < rate). A reporter stays true; a carer under the limit who reports no allowance stays false, as the survey records them entitled and not claiming. Scotland is drawn too (María''s ruling of 2026-10-23): there the flag is Carer Support Payment''s, which policyengine-uk pays only under its own earnings limit from 2.146.1 (PolicyEngine/policyengine-uk#2473), and the receipt reports Scotland apart. The earnings test is read before salary_sacrifice moves some contributors'' pension amounts out of their pay, so a drawn carer whom that conversion takes under the survey year''s limit keeps the flag although the file then shows them entitled and not reporting. The stage rebuilds the flag from reported receipt and refuses a frame whose flag no longer follows it. Its receipt bands support on distinct source households (household_source_id), and gives a weighted total only where three or more carry it and a share only where neither of its sides rests on one or two; it lists each stratum''s realised share against its target, and the stage refuses a take-up or pool stratum whose drawn weight misses its share by more than its heaviest record, the most the rotated placement allows, so the balance holds on every build (Anthony''s reviews of microcosm#1420). The stage has no health gate.' - stage: uc_deduction_attributes survey: DWP Universal Credit deductions statistics, March 2025 to February 2026 source: Department for Work and Pensions supplementary Tables 2, 5 and 6, sha-pinned by Chronicle package dwp-uc-deductions-march-2025-february-2026. @@ -6057,6 +6156,32 @@ stages: - employee_pension_contributions - employment_income notes: The QRF trains only on the 2024-25 FRS asked subset with pay. Salary sacrifice is pay given up, so every amount, reported or predicted, is limited to the pay the person still receives, and a person without pay has none (uk-data#518, microcosm#1095); the limit bites above all on SPI-channel rows, which keep their FRS twin's answer beside pay redrawn from the SPI. The second arm creates support toward the reviewed 5.4m staging target by moving contributors' pension amounts, up to half their pay, into salary sacrifice and lowering their pay by the same amount, since the engine reads employment_income after sacrifice; what does not move stays an employee contribution, so the sacrifice never exceeds the pay that remains. Before microcosm#1069 c9 the pay stayed whole and the converted record lost its net-pay relief. The third arm adds bonus sacrifice beside pay toward the OBR's 2027-28 base above GBP 2,000 (microcosm#1340). A sacrificed bonus is never received, so the FRS records it in neither pay nor its bonus amounts, and pay stays as it is (María's ruling of 2026-10-24 on Vahid's review of microcosm#1383); a received FRS bonus marks a bonus-paying job and its size. An SPI-channel adult's FRS bonus is its twin's, beside the tape's pay, so it draws a bonus share of pay from a base-FRS adult in its pay cell instead. +- stage: carers_allowance_take_up + survey: Family Resources Survey 2024-25 + source: 'Independent Review of Carer''s Allowance Overpayments (July 2025), chapter 7, and DWP benefit statistics, through the UK take-up contract''s carers_allowance_newly_entitled rate, applied to PolicyEngine-UK''s Carer''s Allowance earnings test after the SPI income chain.' + grain: person + artifacts: [] + operations: + - kind: materialize_rules_engine_predictors + predictors: + - is_gainfully_employed_for_carers_allowance + - is_severely_disabled_for_carers_allowance + - carers_allowance_earnings + consumed_only: true + year_rule: survey_year + - kind: assign_binary_from_rate + output: would_claim_carers_allowance + draw: would_claim_carers_allowance + assignment_unit: person + eligibility: 'persons whose care_hours reach policyengine-uk''s gov.dwp.carers_allowance.min_hours, who care for a severely disabled person, who report no Carer''s Allowance, and whom is_gainfully_employed_for_carers_allowance holds gainfully employed at the survey year: the carers the earnings limit alone keeps from the allowance (a carer whose frs_care_hours_in_household reach min_hours cares for a severely disabled person when another member of the household is is_severely_disabled_for_carers_allowance at the survey year; a carer whose largest in-household band does not reach the hours does on a second identity-keyed uniform (salt carers_allowance_outside_household_pool), placed by weight within strata of survey-year means-tested receipt and earnings band, below the household-weighted share of the in-household carers reporting no allowance who have such a member). In Scotland the flag is Carer Support Payment''s, which policyengine-uk pays under its own earnings limit from 2.146.1' + reported_true_anchor: carers_allowance_reported > 0 + rate_key: carers_allowance_newly_entitled + rate_derivation: 'the take-up contract''s carers_allowance_newly_entitled rate, with the identity-keyed uniforms placed by weight within strata (the route (in-household or not), whether the benefit unit reports a means-tested benefit at the survey year (universal credit, housing benefit, income support, income-based JSA, income-related ESA, tax credits or pension credit), and the survey-year weekly earnings band, one weekly rate wide above the limit and open above three; the pool''s strata are the last two) and rotated by a start drawn per stratum, so that every stratum claims the rate of its eligible weight to within one record and every eligible carer claims with probability equal to the rate; a CGT copy draws as the member it copies, placed with it as one record of their joint weight, so the two claim together; would_claim = reported OR (eligible AND position < rate), so a reporter stays true and every other person false' + seed: 0 + outputs: [] + rewrites: + - would_claim_carers_allowance + notes: 'Runs after the SPI income chain, UC capital coherence, the Pension Credit and Child Benefit redraws and salary_sacrifice, so the earnings test reads the pay salary sacrifice converts (microcosm#1095 B5); a CGT copy draws as the member it copies, placed with it as one record of their joint weight, so every clone carries its source''s draw (microcosm#1319). frs_spine sets would_claim_carers_allowance from reported receipt and the SPI income chain re-derives it from the refilled receipt on the rows it redraws, so that care_hours qualifies a carer for the Universal Credit carer element without paying the allowance to every carer (#882). A carer above the earnings limit cannot report the allowance, so no reform that widens it reached a carer who would claim once entitled: the April 2025 rise of the limit from £151 to £196 a week brought an estimated 61,000 more people into eligibility (Independent Review of Carer''s Allowance Overpayments, July 2025, chapter 7). One temporary engine materialization at the survey year, on the frame''s own values, gives each person''s is_gainfully_employed_for_carers_allowance, is_severely_disabled_for_carers_allowance and carers_allowance_earnings (consumed only); the engine reads a year''s parameters at 30 April, so the limit is 2024-25''s £151. The allowance is paid only for caring for a severely disabled person (SSCBA 1992 s. 70(2)), which the care hours do not record (microcosm#1418): a carer whose largest in-household band alone reaches the hours (frs_care_hours_in_household) qualifies when another member of the household is severely disabled, and a carer whose largest in-household band does not reach them (care outside the household, or hours spread over bands; the allowance needs the hours for one person) joins on a second identity-keyed uniform (salt carers_allowance_outside_household_pool), placed by weight within strata of survey-year means-tested receipt and earnings band, below the household-weighted share of the in-household carers reporting no allowance who have such a member (María''s decision (a) of 2026-10-28). A person in that pool whose care_hours reach the engine''s gov.dwp.carers_allowance.min_hours (35), who reports no allowance and whom the earnings test holds gainfully employed claims at the take-up contract''s carers_allowance_newly_entitled rate (0.6, María''s ruling of 2026-10-20, sensitivity 0.45 to 0.75) on the person''s identity-keyed uniform (seed 0, salt would_claim_carers_allowance), placed by weight within strata and rotated by a start drawn per stratum, so that each stratum claims the rate of its eligible weight to within one record and each eligible carer with probability equal to the rate (weight_balanced_uniforms, policyengine-uk''s stratified_uniform with a random start; microcosm#1418 and the independent review of microcosm#1420): the route, whether the benefit unit reports a means-tested benefit at the survey year, and the survey-year weekly earnings band, one weekly rate wide above the limit and open above three. would_claim = reported OR (eligible AND position < rate). A reporter stays true; a carer under the limit who reports no allowance stays false, as the survey records them entitled and not claiming. Scotland is drawn too (María''s ruling of 2026-10-23): there the flag is Carer Support Payment''s, which policyengine-uk pays only under its own earnings limit from 2.146.1 (PolicyEngine/policyengine-uk#2473), and the receipt reports Scotland apart. The earnings test is read before salary_sacrifice moves some contributors'' pension amounts out of their pay, so a drawn carer whom that conversion takes under the survey year''s limit keeps the flag although the file then shows them entitled and not reporting. The stage rebuilds the flag from reported receipt and refuses a frame whose flag no longer follows it. Its receipt bands support on distinct source households (household_source_id), and gives a weighted total only where three or more carry it and a share only where neither of its sides rests on one or two; it lists each stratum''s realised share against its target, and the stage refuses a take-up or pool stratum whose drawn weight misses its share by more than its heaviest record, the most the rotated placement allows, so the balance holds on every build (Anthony''s reviews of microcosm#1420). The stage has no health gate.' - stage: student_loans survey: Family Resources Survey 2024-25 and Student Loans Company borrower forecasts for England source: Explore Education Statistics Table 6a, Higher education total @@ -6131,13 +6256,20 @@ stages: salt: student_loan_plan_2 realization: identity_uniform_order_walk realization_bound: the realised top-up sits within the weight of the lightest person the walk skipped of the shortfall, so the plan's final England count sits within that weight of the stock; a pool lighter than the shortfall is taken whole and receipted as exhausted, and a plan already at or above its stock is left as reported - reason: Student-loan plan assignment writes an enum column only; household rows - and typed household weights pass through and total household mass is conserved. + reason: Student-loan plan assignment writes the plan and re-splits each household's + student-loan balance among its members; household rows and typed household + weights pass through and total household mass is conserved. + - kind: derive + output: student_loan_balance + formula: each household's student_loan_balance re-split to its members with student_loan_plan + != NONE, by student_loan_repayments where any of them repays, else equally; a household + with no such member keeps was_wealth's split, and every household's total is unchanged outputs: - student_loan_plan rewrites: - student_loan_plan - notes: 'Reported borrowers are PAYE repayers, classified without a country gate, and, in England and Wales, adults who report an outstanding loan (FRS SLOS) and are not in full-time education, the borrowers below the repayment threshold (microcosm#868). A course starts three years before its borrower left full-time education (FRS EDUCLEFT), or at 18 without an answer, and its start year sets the plan, except that before 2026 a repayer never takes PLAN_5: nobody repays a Plan 5 loan before April 2026, so SLC counts no Plan 5 borrower above the threshold in academic year 2024/25. England tertiary cohorts are then topped up PLAN_5 first and PLAN_2 second to the pinned liable stocks at the FRS release calibration year. The PLAN_2 walk takes nobody in full-time education, since a student is not yet liable to repay; the PLAN_5 walk keeps the age rule, since its starters have mostly not left education. The stocks are SLC academic year 2024/25, whose reference date falls in calendar 2025, the year the borrower targets bind (ruling of 2026-10-16). PLAN_4 is never imputed, and a Scottish or Northern Irish answer of an outstanding loan assigns no plan.' + - student_loan_balance + notes: 'Reported borrowers are PAYE repayers, classified without a country gate, and, in England and Wales, adults who report an outstanding loan (FRS SLOS) and are not in full-time education, the borrowers below the repayment threshold (microcosm#868). A course starts three years before its borrower left full-time education (FRS EDUCLEFT), or at 18 without an answer, and its start year sets the plan, except that before 2026 a repayer never takes PLAN_5: nobody repays a Plan 5 loan before April 2026, so SLC counts no Plan 5 borrower above the threshold in academic year 2024/25. England tertiary cohorts are then topped up PLAN_5 first and PLAN_2 second to the pinned liable stocks at the FRS release calibration year. The PLAN_2 walk takes nobody in full-time education, since a student is not yet liable to repay; the PLAN_5 walk keeps the age rule, since its starters have mostly not left education. The stocks are SLC academic year 2024/25, whose reference date falls in calendar 2025, the year the borrower targets bind (ruling of 2026-10-16). PLAN_4 is never imputed, and a Scottish or Northern Irish answer of an outstanding loan assigns no plan. Once the plans are set, each household''s student-loan balance, which was_wealth draws from the WAS and splits before any plan exists, moves to the members who hold a plan, by their repayments where any of them repays and equally otherwise; a household with no borrower keeps was_wealth''s split and no household''s total moves. policyengine-uk caps a borrower''s repayment at a positive balance, so the split decides which repayments the balance can cap (microcosm#1095 B9).' - stage: childcare_copy_take_up survey: Family Resources Survey 2024-25 source: The UK take-up contract's childcare rates and extended-hours usage distribution, as frs_take_up draws them, applied to the support and CGT copies on their own benefit units. diff --git a/packages/microcosm-build/src/microcosm/build/uk/target_reference_membership.json b/packages/microcosm-build/src/microcosm/build/uk/target_reference_membership.json index 76d5f8ef78..639b208c3c 100644 --- a/packages/microcosm-build/src/microcosm/build/uk/target_reference_membership.json +++ b/packages/microcosm-build/src/microcosm/build/uk/target_reference_membership.json @@ -1,11 +1,11 @@ { "source_fact_feed": "chronicle-uk-08962f1-consumer-facts", "target_period": 2025, - "candidate_count": 1455, - "contract_target_count": 398, - "active_reference_count": 1418, + "candidate_count": 1457, + "contract_target_count": 400, + "active_reference_count": 1420, "status_counts": { - "active": 1418, + "active": 1420, "signed_excluded": 37 }, "geography_pins": { @@ -4654,6 +4654,14 @@ "hmrc.child_benefit.families_in_payment.children_5_plus": { "geography_level": "country", "geography_id": "K02000001" + }, + "hmrc.child_benefit.hicbc_liable_taxpayers": { + "geography_level": "country", + "geography_id": "K02000001" + }, + "hmrc.child_benefit.hicbc_revenue": { + "geography_level": "country", + "geography_id": "K02000001" } }, "genuine_sum_residue": [ @@ -11410,6 +11418,16 @@ "name": "hmrc.child_benefit.families_in_payment.children_5_plus", "from": "2025-08", "to": "2025" + }, + { + "name": "hmrc.child_benefit.hicbc_liable_taxpayers", + "from": "2024", + "to": "2025" + }, + { + "name": "hmrc.child_benefit.hicbc_revenue", + "from": "2024", + "to": "2025" } ], "targets": { @@ -32396,6 +32414,36 @@ "resolved_fact_key": "ledger_aggregate_fact_v2_2d81e096c621bc41f63aed4e" } ] + }, + "hmrc.child_benefit.hicbc_liable_taxpayers": { + "status": "active", + "candidates": [ + { + "name": "hmrc.child_benefit.hicbc_liable_taxpayers", + "status": "active", + "matched_fact_count_overall": 1, + "matched_fact_count_at_or_before_period": 1, + "resolved_period": 2025, + "resolved_value": 310000.0, + "resolved_fact_period": "2024", + "resolved_fact_key": "ledger_aggregate_fact_v2_c97b337a85676fd4ad28495d" + } + ] + }, + "hmrc.child_benefit.hicbc_revenue": { + "status": "active", + "candidates": [ + { + "name": "hmrc.child_benefit.hicbc_revenue", + "status": "active", + "matched_fact_count_overall": 1, + "matched_fact_count_at_or_before_period": 1, + "resolved_period": 2025, + "resolved_value": 360000000.0, + "resolved_fact_period": "2024", + "resolved_fact_key": "ledger_aggregate_fact_v2_efce468e05f7b7c8cbe6c72b" + } + ] } }, "fanout_family_outcomes": [ diff --git a/packages/microcosm-build/src/microcosm/build/uk/target_references.json b/packages/microcosm-build/src/microcosm/build/uk/target_references.json index 338b645d4b..973608b81a 100644 --- a/packages/microcosm-build/src/microcosm/build/uk/target_references.json +++ b/packages/microcosm-build/src/microcosm/build/uk/target_references.json @@ -407,6 +407,8 @@ "hmrc.child_benefit.families_in_payment.children_3": "hmrc.child_benefit", "hmrc.child_benefit.families_in_payment.children_4": "hmrc.child_benefit", "hmrc.child_benefit.families_in_payment.children_5_plus": "hmrc.child_benefit", + "hmrc.child_benefit.hicbc_liable_taxpayers": "hmrc.child_benefit", + "hmrc.child_benefit.hicbc_revenue": "hmrc.child_benefit", "hmrc.itl.additional_rate_taxpayers": "hmrc.income_tax_liabilities_statistics", "hmrc.itl.higher_rate_taxpayers": "hmrc.income_tax_liabilities_statistics", "hmrc.itl.income_tax_by_total_income_band": "hmrc.income_tax_liabilities_statistics", @@ -800,6 +802,8 @@ "hmrc.child_benefit.families_in_payment.children_3": "Families in payment, three children", "hmrc.child_benefit.families_in_payment.children_4": "Families in payment, four children", "hmrc.child_benefit.families_in_payment.children_5_plus": "Families in payment, five or more children", + "hmrc.child_benefit.hicbc_liable_taxpayers": "Taxpayers liable to the High Income Child Benefit Charge", + "hmrc.child_benefit.hicbc_revenue": "High Income Child Benefit Charge revenue", "hmrc.itl.additional_rate_taxpayers": "Additional rate Income Tax payers by region and nation", "hmrc.itl.higher_rate_taxpayers": "Higher rate Income Tax payers by region and nation", "hmrc.itl.income_tax_by_total_income_band": "Income Tax liabilities by total income band", @@ -49954,6 +49958,54 @@ ], "uprating_from_period": "2025-08", "uprating_to_period": 2025 + }, + { + "name": "hmrc.child_benefit.hicbc_liable_taxpayers", + "ledger_selector": { + "source_name": "hmrc", + "source_concept": "hmrc.self_assessment_taxpayers_with_hicbc_liability", + "record_set_spec_id": "hmrc.child_benefit.aug2025.hicbc_individuals.ty2024.v1", + "source_measure_id": "hicbc_individuals", + "entity_name": "person", + "period_type": "tax_year", + "period_value": 2024, + "geography_level": "country", + "geography_id": "K02000001" + }, + "entity": "person", + "measure": "hmrc/child_benefit/hicbc_liable_taxpayers", + "family": "hmrc_child_benefit", + "period": 2025, + "metadata": { + "contract_target_id": "hmrc.child_benefit.hicbc_liable_taxpayers", + "measure_kind": "prepared_column" + }, + "uprating_from_period": "2024", + "uprating_to_period": 2025 + }, + { + "name": "hmrc.child_benefit.hicbc_revenue", + "ledger_selector": { + "source_name": "hmrc", + "source_concept": "hmrc.hicbc_tax_revenue", + "record_set_spec_id": "hmrc.child_benefit.aug2025.hicbc_revenue.ty2024.v1", + "source_measure_id": "hicbc_revenue", + "entity_name": "government", + "period_type": "tax_year", + "period_value": 2024, + "geography_level": "country", + "geography_id": "K02000001" + }, + "entity": "person", + "measure": "hmrc/child_benefit/hicbc_revenue", + "family": "hmrc_child_benefit", + "period": 2025, + "metadata": { + "contract_target_id": "hmrc.child_benefit.hicbc_revenue", + "measure_kind": "prepared_column" + }, + "uprating_from_period": "2024", + "uprating_to_period": 2025 } ] } diff --git a/packages/microcosm-build/src/microcosm/build/uk/uk_population_targets.json b/packages/microcosm-build/src/microcosm/build/uk/uk_population_targets.json index cad15cf6a5..332e0e022c 100644 --- a/packages/microcosm-build/src/microcosm/build/uk/uk_population_targets.json +++ b/packages/microcosm-build/src/microcosm/build/uk/uk_population_targets.json @@ -897,7 +897,9 @@ "hmrc.spi.other_investment_income.amount_by_total_income_band": "New declaration backed by SPI 2023-24 Table 3.7 other income in Chronicle (spi_income_bands_2023_24); no uk-data metric holds other investment income by band (microcosm#1418).", "hmrc.spi.self_employment_income.count_by_self_employment_income_band": "New declaration backed by SPI 2023-24 Table 3.10 in Chronicle (spi_income_bands_2023_24, PolicyEngine/chronicle#394); no uk-data metric holds self-employment income by self-employment band (microcosm#1418).", "hmrc.spi.self_employment_income.amount_by_self_employment_income_band": "New declaration backed by SPI 2023-24 Table 3.10 in Chronicle (spi_income_bands_2023_24, PolicyEngine/chronicle#394); no uk-data metric holds self-employment income by self-employment band (microcosm#1418).", - "hmrc.spi.employment_income.count_by_self_employment_income_band": "New declaration backed by SPI 2023-24 Table 3.10 in Chronicle (spi_income_bands_2023_24, PolicyEngine/chronicle#394); no uk-data metric holds employment income by self-employment band (microcosm#1418)." + "hmrc.spi.employment_income.count_by_self_employment_income_band": "New declaration backed by SPI 2023-24 Table 3.10 in Chronicle (spi_income_bands_2023_24, PolicyEngine/chronicle#394); no uk-data metric holds employment income by self-employment band (microcosm#1418).", + "hmrc.child_benefit.hicbc_liable_taxpayers": "No incumbent target: uk-data binds no High Income Child Benefit Charge row; microcosm#1095 adds HMRC's Table 16 count and revenue (Child Benefit Statistics, August 2025) as measured diagnostics.", + "hmrc.child_benefit.hicbc_revenue": "No incumbent target: uk-data binds no High Income Child Benefit Charge row; microcosm#1095 adds HMRC's Table 16 count and revenue (Child Benefit Statistics, August 2025) as measured diagnostics." }, "suppressed_ancestors": { "hmrc/salary_sacrifice_it_relief_basic_rate": { @@ -1332,7 +1334,9 @@ "hmrc.child_benefit.families_in_payment.children_2", "hmrc.child_benefit.families_in_payment.children_3", "hmrc.child_benefit.families_in_payment.children_4", - "hmrc.child_benefit.families_in_payment.children_5_plus" + "hmrc.child_benefit.families_in_payment.children_5_plus", + "hmrc.child_benefit.hicbc_liable_taxpayers", + "hmrc.child_benefit.hicbc_revenue" ] }, "profile_parity": { @@ -6633,7 +6637,7 @@ "affected_flag_variable": "uc_tcl_affected_benunit_proxy", "value_variable": "benunit_count", "map_to": "household", - "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims, and model birth_year >= 2017 for 6 April 2017. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", + "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims; births are dated by policyengine-uk's uc_is_child_born_before_child_limit (a date of birth before 6 April 2017), from whole ages placed at 6 October of the model year. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", "household_conditions": [ { "variable": "region", @@ -6692,7 +6696,7 @@ "affected_flag_variable": "uc_tcl_affected_benunit_proxy", "value_variable": "uc_tcl_affected_child_count_proxy", "map_to": "household", - "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims, and model birth_year >= 2017 for 6 April 2017. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", + "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims; births are dated by policyengine-uk's uc_is_child_born_before_child_limit (a date of birth before 6 April 2017), from whole ages placed at 6 October of the model year. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", "household_conditions": [ { "variable": "region", @@ -6751,7 +6755,7 @@ "affected_flag_variable": "uc_tcl_affected_benunit_proxy", "value_variable": "uc_tcl_qualifying_child_count", "map_to": "household", - "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims, and model birth_year >= 2017 for 6 April 2017. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", + "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims; births are dated by policyengine-uk's uc_is_child_born_before_child_limit (a date of birth before 6 April 2017), from whole ages placed at 6 October of the model year. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", "household_conditions": [ { "variable": "region", @@ -6832,7 +6836,7 @@ "affected_flag_variable": "uc_tcl_affected_benunit_proxy", "value_variable": "benunit_count", "map_to": "household", - "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims, and model birth_year >= 2017 for 6 April 2017. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", + "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims; births are dated by policyengine-uk's uc_is_child_born_before_child_limit (a date of birth before 6 April 2017), from whole ages placed at 6 October of the model year. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", "from_entity": "benunit", "filters": [ { @@ -6898,7 +6902,7 @@ "affected_flag_variable": "uc_tcl_affected_benunit_proxy", "value_variable": "uc_tcl_qualifying_child_count", "map_to": "household", - "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims, and model birth_year >= 2017 for 6 April 2017. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", + "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims; births are dated by policyengine-uk's uc_is_child_born_before_child_limit (a date of birth before 6 April 2017), from whole ages placed at 6 October of the model year. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", "from_entity": "benunit", "filters": [ { @@ -6964,7 +6968,7 @@ "affected_flag_variable": "uc_tcl_affected_benunit_proxy", "value_variable": "benunit_count", "map_to": "household", - "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims, and model birth_year >= 2017 for 6 April 2017. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", + "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims; births are dated by policyengine-uk's uc_is_child_born_before_child_limit (a date of birth before 6 April 2017), from whole ages placed at 6 October of the model year. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", "from_entity": "benunit", "filters": [ { @@ -7030,7 +7034,7 @@ "affected_flag_variable": "uc_tcl_affected_benunit_proxy", "value_variable": "uc_tcl_qualifying_child_count", "map_to": "household", - "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims, and model birth_year >= 2017 for 6 April 2017. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", + "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims; births are dated by policyengine-uk's uc_is_child_born_before_child_limit (a date of birth before 6 April 2017), from whole ages placed at 6 October of the model year. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", "from_entity": "benunit", "filters": [ { @@ -7096,7 +7100,7 @@ "affected_flag_variable": "uc_tcl_affected_benunit_proxy", "value_variable": "benunit_count", "map_to": "household", - "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims, and model birth_year >= 2017 for 6 April 2017. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", + "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims; births are dated by policyengine-uk's uc_is_child_born_before_child_limit (a date of birth before 6 April 2017), from whole ages placed at 6 October of the model year. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", "from_entity": "benunit", "filters": [ { @@ -7162,7 +7166,7 @@ "affected_flag_variable": "uc_tcl_affected_benunit_proxy", "value_variable": "uc_tcl_qualifying_child_count", "map_to": "household", - "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims, and model birth_year >= 2017 for 6 April 2017. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", + "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims; births are dated by policyengine-uk's uc_is_child_born_before_child_limit (a date of birth before 6 April 2017), from whole ages placed at 6 October of the model year. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", "from_entity": "benunit", "filters": [ { @@ -7228,7 +7232,7 @@ "affected_flag_variable": "uc_tcl_affected_benunit_proxy", "value_variable": "benunit_count", "map_to": "household", - "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims, and model birth_year >= 2017 for 6 April 2017. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", + "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims; births are dated by policyengine-uk's uc_is_child_born_before_child_limit (a date of birth before 6 April 2017), from whole ages placed at 6 October of the model year. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", "from_entity": "benunit", "filters": [ { @@ -7294,7 +7298,7 @@ "affected_flag_variable": "uc_tcl_affected_benunit_proxy", "value_variable": "uc_tcl_qualifying_child_count", "map_to": "household", - "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims, and model birth_year >= 2017 for 6 April 2017. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", + "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims; births are dated by policyengine-uk's uc_is_child_born_before_child_limit (a date of birth before 6 April 2017), from whole ages placed at 6 October of the model year. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", "from_entity": "benunit", "filters": [ { @@ -7360,7 +7364,7 @@ "affected_flag_variable": "uc_tcl_affected_benunit_proxy", "value_variable": "benunit_count", "map_to": "household", - "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims, and model birth_year >= 2017 for 6 April 2017. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", + "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims; births are dated by policyengine-uk's uc_is_child_born_before_child_limit (a date of birth before 6 April 2017), from whole ages placed at 6 October of the model year. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", "from_entity": "benunit", "filters": [ { @@ -7426,7 +7430,7 @@ "affected_flag_variable": "uc_tcl_affected_benunit_proxy", "value_variable": "uc_tcl_qualifying_child_count", "map_to": "household", - "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims, and model birth_year >= 2017 for 6 April 2017. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", + "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims; births are dated by policyengine-uk's uc_is_child_born_before_child_limit (a date of birth before 6 April 2017), from whole ages placed at 6 October of the model year. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", "from_entity": "benunit", "filters": [ { @@ -7492,7 +7496,7 @@ "affected_flag_variable": "uc_tcl_affected_benunit_proxy", "value_variable": "benunit_count", "map_to": "household", - "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims, and model birth_year >= 2017 for 6 April 2017. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", + "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims; births are dated by policyengine-uk's uc_is_child_born_before_child_limit (a date of birth before 6 April 2017), from whole ages placed at 6 October of the model year. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", "from_entity": "benunit", "filters": [ { @@ -7558,7 +7562,7 @@ "affected_flag_variable": "uc_tcl_affected_benunit_proxy", "value_variable": "uc_tcl_qualifying_child_count", "map_to": "household", - "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims, and model birth_year >= 2017 for 6 April 2017. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", + "notes": "Count UC benefit units and their own dependent children/qualifying young people, excluding claimant/partner roles. Statistical affected children are third or subsequent own qualifying children born on/after the source cutoff, including exceptions; this is separate from losing a child element. The current measurement is explicitly a proxy: annual universal_credit > 0 for source open claims; births are dated by policyengine-uk's uc_is_child_born_before_child_limit (a date of birth before 6 April 2017), from whole ages placed at 6 October of the model year. Retain the source April observation date; annual assignment does not create a yearly average or an April claim-history replay. Claimant PIP counts only retained claimant/partner roles; disabled-child-element status counts only own qualifying children. GB residential-region mask excludes NI. Source: https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology", "from_entity": "benunit", "filters": [ { @@ -31197,6 +31201,96 @@ } ] }, + { + "target_id": "hmrc.child_benefit.hicbc_liable_taxpayers", + "family": "hmrc_child_benefit", + "geography_levels": [ + "country" + ], + "measurement": { + "entity": "person", + "map_to": "household", + "concept": "uk.person.count", + "filters": [ + { + "concept": "uk.tax.child_benefit_charge.amount", + "operator": ">", + "value": 0 + } + ] + }, + "bindings": { + "policyengine": { + "metric_name": "hmrc/child_benefit/hicbc_liable_taxpayers", + "value_variable": "person_count", + "from_entity": "person", + "map_to": "household", + "filters": [ + { + "variable": "CB_HITC", + "operator": ">", + "value": 0 + } + ], + "notes": "HMRC's taxpayers liable to the High Income Child Benefit Charge, which policyengine-uk charges on the higher earner of a family receiving Child Benefit (CB_HITC): 1 percent of the family's Child Benefit for every £200 of adjusted net income over £60,000, all of it from £80,000, the same in 2024-25 and 2025-26. A family that opts out of payment owes none, as HMRC counts. HMRC's Table 16 counts the Self Assessment taxpayers who kept receiving Child Benefit and had a charge liability, so its figure leaves out anyone liable who did not file, and from 2025-26 the charge can be paid through PAYE. Measured at the calibration year against 2024-25's figure (a reviewed hold, María's signature of 2026-11-03), and held as a measured diagnostic, not bound (microcosm#1095; microcosm#1288 item 10). The persons whose CB_HITC is above zero." + }, + "axiom": { + "metric_name": "hmrc/child_benefit/hicbc_liable_taxpayers", + "status": "pending", + "value_rule": "uk.person.count" + } + }, + "ledger_selector": { + "source_name": "hmrc", + "source_concept": "hmrc.self_assessment_taxpayers_with_hicbc_liability", + "record_set_spec_id": "hmrc.child_benefit.aug2025.hicbc_individuals.ty2024.v1", + "source_measure_id": "hicbc_individuals", + "entity_name": "person", + "period_type": "tax_year", + "period_value": 2024 + }, + "selector_note": "HMRC Child Benefit Statistics, Annual Release (August 2025), Table 16, United Kingdom: Self Assessment taxpayers with a High Income Child Benefit Charge liability in 2024-25, the publisher's provisional figure (rounded to the nearest 10,000 and adjusted for late returns).", + "category_id": "hmrc.child_benefit", + "label": "Taxpayers liable to the High Income Child Benefit Charge" + }, + { + "target_id": "hmrc.child_benefit.hicbc_revenue", + "family": "hmrc_child_benefit", + "geography_levels": [ + "country" + ], + "measurement": { + "entity": "person", + "map_to": "household", + "concept": "uk.tax.child_benefit_charge.amount" + }, + "bindings": { + "policyengine": { + "metric_name": "hmrc/child_benefit/hicbc_revenue", + "value_variable": "CB_HITC", + "from_entity": "person", + "map_to": "household", + "notes": "HMRC's revenue from the High Income Child Benefit Charge, which policyengine-uk charges on the higher earner of a family receiving Child Benefit (CB_HITC): 1 percent of the family's Child Benefit for every £200 of adjusted net income over £60,000, all of it from £80,000, the same in 2024-25 and 2025-26. A family that opts out of payment owes none, as HMRC counts. HMRC's Table 16 counts the Self Assessment taxpayers who kept receiving Child Benefit and had a charge liability, so its figure leaves out anyone liable who did not file, and from 2025-26 the charge can be paid through PAYE. Measured at the calibration year against 2024-25's figure (a reviewed hold, María's signature of 2026-11-03), and held as a measured diagnostic, not bound (microcosm#1095; microcosm#1288 item 10). The sum of CB_HITC." + }, + "axiom": { + "metric_name": "hmrc/child_benefit/hicbc_revenue", + "status": "pending", + "value_rule": "uk.tax.child_benefit_charge.amount" + } + }, + "ledger_selector": { + "source_name": "hmrc", + "source_concept": "hmrc.hicbc_tax_revenue", + "record_set_spec_id": "hmrc.child_benefit.aug2025.hicbc_revenue.ty2024.v1", + "source_measure_id": "hicbc_revenue", + "entity_name": "government", + "period_type": "tax_year", + "period_value": 2024 + }, + "selector_note": "HMRC Child Benefit Statistics, Annual Release (August 2025), Table 16, United Kingdom: High Income Child Benefit Charge revenue in 2024-25, the publisher's provisional figure (rounded to the nearest £10 million and adjusted for late returns).", + "category_id": "hmrc.child_benefit", + "label": "High Income Child Benefit Charge revenue" + }, { "target_id": "hmrc.self_employment_income.amount", "family": "hmrc", diff --git a/packages/microcosm-build/src/microcosm/build/uk/uprating_holds.json b/packages/microcosm-build/src/microcosm/build/uk/uprating_holds.json index 0bbdefe847..07b51bd47c 100644 --- a/packages/microcosm-build/src/microcosm/build/uk/uprating_holds.json +++ b/packages/microcosm-build/src/microcosm/build/uk/uprating_holds.json @@ -444,6 +444,20 @@ "approved_on": "2026-10-25", "status": "approved", "expires_on": "2026-12-11" + }, + { + "scope": "national", + "kind": "reviewed_no_index", + "target_ids": [ + "hmrc.child_benefit.hicbc_liable_taxpayers", + "hmrc.child_benefit.hicbc_revenue" + ], + "reason": "HMRC's Table 16 count of taxpayers liable to the High Income Child Benefit Charge and its revenue for 2024-25, the publisher's provisional figures in the August 2025 release and the first year at today's thresholds, measured at 2025 with no index: the charge's thresholds (\u00a360,000 to \u00a380,000, 1 percent per \u00a3200) are the same in 2024-25 and 2025-26. Child Benefit rose 1.7 percent in April 2025 and incomes grew, which the measure at 2025 carries and the 2024-25 figure does not. Renew when HMRC's next release brings final 2024-25 and provisional 2025-26 figures.", + "tracking": "microcosm#1095", + "approved_by": "juaristi22", + "approved_on": "2026-11-03", + "status": "approved", + "expires_on": "2027-02-03" } ] } diff --git a/packages/microcosm-build/src/microcosm/build/uk_runtime/battery_bindings.py b/packages/microcosm-build/src/microcosm/build/uk_runtime/battery_bindings.py index 7a152ccfdf..3736a1b09f 100644 --- a/packages/microcosm-build/src/microcosm/build/uk_runtime/battery_bindings.py +++ b/packages/microcosm-build/src/microcosm/build/uk_runtime/battery_bindings.py @@ -2089,6 +2089,7 @@ def _ledger_compile_parity_required_artifacts( "minimum_entitled_units", # microcosm#1334 uc_take_up stage-health check. "maximum_caseload_deviation", + "maximum_reachable_pool_deviation", # frs_annual_income_spells stage-health check. "pay_concept_ratio_bounds", "annual_over_current_earners_bounds", @@ -2096,6 +2097,7 @@ def _ledger_compile_parity_required_artifacts( # microcosm#1095 spi_benefit_coherence stage-health check. "zeroed_columns", "restored_columns", + "restored_within_earnings_limit_columns", # microcosm#1063 child_benefit_take_up stage-health check. "maximum_claim_rate_deviation", "maximum_age_claim_rate_deviation", @@ -2220,6 +2222,9 @@ def _ledger_compile_parity_required_artifacts( "rate_key", "maximum_relative_realization_deviation", "maximum_implied_relief", + # uk-data#629 spi_hourly_pay check: the drawn employees' share + # below the minimum wage may exceed the FRS rows' by this much. + "maximum_share_above_frs", } ), artifact_keys=frozenset({"stage_evidence"}), diff --git a/packages/microcosm-build/src/microcosm/build/uk_runtime/calibration_run.py b/packages/microcosm-build/src/microcosm/build/uk_runtime/calibration_run.py index 0a88fab22d..885b48ed1f 100644 --- a/packages/microcosm-build/src/microcosm/build/uk_runtime/calibration_run.py +++ b/packages/microcosm-build/src/microcosm/build/uk_runtime/calibration_run.py @@ -121,6 +121,7 @@ "uk_stage_frs_annual_income_spells", "uk_stage_spi_support_channel_mass", "uk_stage_hmrc_spi_income_spine_identity", + "uk_stage_hmrc_spi_income_spine_hourly_pay", "uk_stage_spi_benefit_coherence", "uk_stage_uc_take_up", "uk_stage_pension_credit_take_up", diff --git a/packages/microcosm-build/src/microcosm/build/uk_runtime/carers_allowance_take_up.py b/packages/microcosm-build/src/microcosm/build/uk_runtime/carers_allowance_take_up.py index f0e909b1eb..8bba385ec4 100644 --- a/packages/microcosm-build/src/microcosm/build/uk_runtime/carers_allowance_take_up.py +++ b/packages/microcosm-build/src/microcosm/build/uk_runtime/carers_allowance_take_up.py @@ -9,11 +9,11 @@ that widens it, such as the April 2025 rise of the limit from £151 to £196 a week, reached a carer who would claim once entitled. -This stage runs after the SPI income chain and the other take-up redraws. It -opens the flag to the carers the earnings limit alone keeps from the -allowance at the survey year: a person whose ``care_hours`` reach the engine's -``gov.dwp.carers_allowance.min_hours``, who cares for a severely disabled -person, who reports no Carer's Allowance, and whom +This stage runs after the SPI income chain, the other take-up redraws and +``salary_sacrifice`` (below). It opens the flag to the carers the earnings +limit alone keeps from the allowance at the survey year: a person whose +``care_hours`` reach the engine's ``gov.dwp.carers_allowance.min_hours``, who +cares for a severely disabled person, who reports no Carer's Allowance, and whom ``is_gainfully_employed_for_carers_allowance`` holds gainfully employed at the survey year (the 2024-25 limit of £151 a week; the engine reads a year's parameters at 30 April). Such a person claims at the take-up contract's @@ -64,13 +64,15 @@ The receipt reports Scotland apart. The incoming flag must still follow reported receipt, since the stage rebuilds it from that anchor. -The earnings test is read where the stage runs, before ``salary_sacrifice`` -moves some contributors' pension amounts out of their pay, which lowers the -earnings the engine tests by about half the amount moved. A drawn carer whom -that conversion takes under the survey year's limit keeps the flag, although -the released file then shows them entitled and not reporting. Reading the -converted pay would need the stage after ``salary_sacrifice``, with a draw -keyed on lineage so that the CGT clones keep their source's draw. +The stage runs after ``salary_sacrifice``, which moves some contributors' +pension amounts out of their pay and so lowers the earnings the engine tests +by about half the amount moved: the earnings test reads the converted pay +(microcosm#1095 B5). That puts it after the CGT stages too, which copy +households, so each draw is keyed on lineage (``lineage_roots``): a CGT copy +draws as the member it copies, and the balanced placement takes a source and +its copies in one stratum as one record of their joint weight +(``lineage_balanced_positions``), so they claim together, as when the stage +ran before the CGT clones. The receipt is aggregate-only (UKDS disclosure control): support as bands of distinct source households, a weighted total only where three or more carry @@ -93,6 +95,7 @@ weight_balanced_uniforms, ) from microcosm.build.uk_runtime.frs_release import resolve_uk_year_rule +from microcosm.build.uk_runtime.household_lineage import uk_household_clone_paths from microcosm.build.uk_runtime.national_frame import ( uk_household_weight_kind, uk_national_frame, @@ -115,6 +118,7 @@ from microcosm.frame.rules import assert_rules_engine_country __all__ = [ + "CGT_LINEAGE_BRANCHES", "CARERS_ALLOWANCE_DISABILITY_TEST", "CARERS_ALLOWANCE_ENGINE_VARIABLES", "CARERS_ALLOWANCE_NEWLY_ENTITLED_RATE_KEY", @@ -129,6 +133,8 @@ "carers_allowance_eligible", "carers_allowance_pool", "carers_allowance_take_up_operation_parameters", + "lineage_balanced_positions", + "lineage_roots", "means_tested_benefit_unit", "other_member_severely_disabled", "redraw_carers_allowance_take_up", @@ -219,8 +225,24 @@ f"({CARERS_ALLOWANCE_STRATA}) and rotated by a start drawn per stratum, so " "that every stratum claims the rate of its eligible weight to within one " "record and every eligible carer claims with probability equal to the rate; " - "would_claim = reported OR (eligible " - "AND position < rate), so a reporter stays true and every other person false" + "a CGT copy draws as the member it copies, placed with it as one record of " + "their joint weight, so the two claim together; would_claim = reported OR " + "(eligible AND position < rate), so a reporter stays true and every other " + "person false" +) +#: The CGT stages' branches of a household's clone path: a support copy, an +#: incidence clone and a residential arm each copy their source household's +#: members in ``person_id`` order (microcosm#1095 B5). +CGT_LINEAGE_BRANCHES = frozenset( + {"cgt_support_split", "cgt_incidence_clone", "cgt_residential_split"} +) +#: The household columns that mark a frame the CGT stages have copied. +_CGT_LINEAGE_COLUMNS = ( + "household_is_cgt_support_copy", + "cgt_support_copy_index", + "household_is_capital_gains_clone", + "household_is_cgt_residential_clone", + "cgt_residential_clone_index", ) @@ -332,17 +354,12 @@ def carers_allowance_pool( # eligible part, so the balance is struck over them. drawable = other & ~np.asarray(reported, dtype=bool) draws = draws.copy() - drawable_strata = np.asarray(pool_strata)[drawable] - draws[drawable] = weight_balanced_uniforms( - drawable_strata, + draws[drawable] = lineage_balanced_positions( + np.asarray(pool_strata)[drawable], draws[drawable], weights[drawable], - starts=stratum_starts( - drawable_strata, - salt=CARERS_ALLOWANCE_POOL_SALT, - identities=np.asarray(pool_identities)[drawable], - draws=draws[drawable], - ), + identities=np.asarray(pool_identities)[drawable], + salt=CARERS_ALLOWANCE_POOL_SALT, ) drawn = draws < (share or 0.0) pool = (in_household & disabled_member) | (other & drawn) @@ -386,6 +403,112 @@ def stratum_starts( return starts[np.searchsorted(unique, codes)] +def lineage_roots(person: pd.DataFrame, household: pd.DataFrame) -> np.ndarray: + """Each person's lineage root: the ``person_id`` the draws key them on. + + A CGT support copy, incidence clone or residential arm copies its source + household's members in ``person_id`` order, so a member's root is the + member at the same rank of the household with the same source id and clone + path without the CGT branches (``CGT_LINEAGE_BRANCHES``). Every other + person, an SPI or high-value support copy's included, is their own root, + as is everyone in a frame the CGT stages have not copied. + """ + + ids = pd.to_numeric(person["person_id"], errors="raise").astype("int64") + if not any(column in household.columns for column in _CGT_LINEAGE_COLUMNS): + return ids.to_numpy() + source_ids, paths = uk_household_clone_paths(household) + stripped = [ + tuple(branch for branch in path if branch[0] not in CGT_LINEAGE_BRANCHES) + for path in paths + ] + household_ids = household["household_id"].to_numpy() + keys = pd.Series( + [ + str((source, path)) + for source, path in zip(source_ids, stripped, strict=True) + ], + index=household_ids, + ) + is_root = pd.Series( + [path == bare for path, bare in zip(paths, stripped, strict=True)], + index=household_ids, + ) + members = person["person_household_id"] + household_keys = members.map(keys) + if household_keys.isna().any(): + raise ValueError("Every Carer's Allowance person must map to a household.") + rank = ids.groupby(members.to_numpy()).rank(method="first").astype("int64") + lineage = household_keys.astype(str) + "#" + rank.astype(str) + root_rows = members.map(is_root).to_numpy(dtype=bool) + roots = pd.Series(ids.to_numpy()[root_rows], index=lineage.to_numpy()[root_rows]) + if roots.index.has_duplicates: + raise ValueError("Two source members share one Carer's Allowance lineage.") + mapped = lineage.map(roots) + if mapped.isna().any(): + raise ValueError( + "A CGT copy's member has no member at its rank in the household it copies." + ) + return mapped.astype("int64").to_numpy() + + +def lineage_balanced_positions( + strata: np.ndarray, + draws: np.ndarray, + weights: np.ndarray, + *, + identities: np.ndarray, + salt: str, +) -> np.ndarray: + """Weight-balanced positions, the rows of one identity in a stratum as one record. + + A source and its CGT copies share an identity (``lineage_roots``) and so a + draw. Placed as one record of their joint weight they take one position + and claim together, as when the stage ran before the CGT clones split the + source's weight (microcosm#1095 B5). Rows of distinct identities are placed + exactly as ``weight_balanced_uniforms`` places them. + + One lineage can sit in two strata, as a record of each: salary sacrifice + draws each copy's pay on its own id, so a copy's earnings band can differ + from its source's. Each stratum's start is keyed on its own members, so the + starts are drawn stratum by stratum, where an identity names one record. + """ + + strata = np.asarray(strata) + identities = np.asarray(identities) + draws = np.asarray(draws, dtype=np.float64) + weights = np.asarray(weights, dtype=np.float64) + if not strata.shape == identities.shape == draws.shape == weights.shape: + raise ValueError( + "Balanced positions need one stratum, identity and draw per row." + ) + if not len(strata): + return draws.copy() + record, unique = pd.factorize(pd.MultiIndex.from_arrays([strata, identities])) + low = pd.Series(draws).groupby(record).min().sort_index().to_numpy() + high = pd.Series(draws).groupby(record).max().sort_index().to_numpy() + if (low != high).any(): + raise ValueError("Rows of one lineage must share their draw.") + record_strata = unique.get_level_values(0).to_numpy() + record_identities = unique.get_level_values(1).to_numpy() + starts = np.empty(len(unique), dtype=np.float64) + for code in pd.unique(record_strata): + members = record_strata == code + starts[members] = stratum_starts( + record_strata[members], + salt=salt, + identities=record_identities[members], + draws=low[members], + ) + positions = weight_balanced_uniforms( + record_strata, + low, + np.bincount(record, weights=weights, minlength=len(unique)), + starts=starts, + ) + return np.asarray(positions, dtype=np.float64)[record] + + def assert_strata_within_one_record( members: np.ndarray, strata: np.ndarray, @@ -394,13 +517,15 @@ def assert_strata_within_one_record( share: float, *, label: str, + identities: np.ndarray | None = None, ) -> None: """Refuse a stratum whose taken weight misses ``share`` of its weight by more than its heaviest record. The rotated placement takes each stratum's share to within half a record at each end of the stratum's arc, one record in all, by construction. A - larger miss means the draw was not balanced. + larger miss means the draw was not balanced. With ``identities``, a record + is the rows of one lineage, as ``lineage_balanced_positions`` places them. """ weights = np.maximum(np.asarray(weights, dtype=np.float64), 0.0) @@ -408,11 +533,21 @@ def assert_strata_within_one_record( for code in np.unique(strata[members]): stratum = members & (strata == code) stratum_weights = weights[stratum] + heaviest = ( + float(stratum_weights.max()) + if identities is None + else float( + pd.Series(stratum_weights) + .groupby(np.asarray(identities)[stratum]) + .sum() + .max() + ) + ) miss = abs( float(weights[stratum & taken].sum()) - float(share) * float(stratum_weights.sum()) ) - if miss > float(stratum_weights.max()) * (1.0 + 1e-9) + 1e-9: + if miss > heaviest * (1.0 + 1e-9) + 1e-9: raise ValueError( f"Carer's Allowance {label} stratum {int(code)} misses its share by " "more than one record: the draw was not balanced by weight." @@ -662,6 +797,8 @@ def redraw_carers_allowance_take_up( .to_numpy(dtype=np.float64) ) weights = np.asarray(frame.resolve_weights("person").values, dtype=np.float64) + # Every draw is keyed on lineage: a CGT copy draws as the member it copies. + roots = lineage_roots(person, household) pool = carers_allowance_pool( care_hours=care_hours, in_household_hours=in_household_hours, @@ -671,13 +808,11 @@ def redraw_carers_allowance_take_up( reported=reported, weights=weights, pool_draws=stable_identity_uniforms( - person["person_id"].to_numpy(), - seed=CARERS_ALLOWANCE_TAKE_UP_SEED, - salt=CARERS_ALLOWANCE_POOL_SALT, + roots, seed=CARERS_ALLOWANCE_TAKE_UP_SEED, salt=CARERS_ALLOWANCE_POOL_SALT ), min_hours=resolved.min_hours, pool_strata=pool_strata, - pool_identities=person["person_id"].to_numpy(), + pool_identities=roots, ) eligible = carers_allowance_eligible( pool=pool.pool, @@ -685,31 +820,37 @@ def redraw_carers_allowance_take_up( gainfully_employed=gainfully_employed, ) draws = stable_identity_uniforms( - person["person_id"].to_numpy(), - seed=CARERS_ALLOWANCE_TAKE_UP_SEED, - salt=CARERS_ALLOWANCE_TAKE_UP_OUTPUT, + roots, seed=CARERS_ALLOWANCE_TAKE_UP_SEED, salt=CARERS_ALLOWANCE_TAKE_UP_OUTPUT ) # The take-up strata add the route to the pool's. take_up_strata = pool.other.astype(np.int64) * 2 * _BAND_COUNT + pool_strata positions = draws.copy() - positions[eligible] = weight_balanced_uniforms( + positions[eligible] = lineage_balanced_positions( take_up_strata[eligible], draws[eligible], weights[eligible], - starts=stratum_starts( - take_up_strata[eligible], - salt=CARERS_ALLOWANCE_TAKE_UP_OUTPUT, - identities=person["person_id"].to_numpy()[eligible], - draws=draws[eligible], - ), + identities=roots[eligible], + salt=CARERS_ALLOWANCE_TAKE_UP_OUTPUT, ) drawn = eligible & (positions < rate) drawable_other = pool.other & ~reported assert_strata_within_one_record( - eligible, take_up_strata, drawn, weights, rate, label="take-up" + eligible, + take_up_strata, + drawn, + weights, + rate, + label="take-up", + identities=roots, ) assert_strata_within_one_record( - drawable_other, pool_strata, pool.pool, weights, pool.share or 0.0, label="pool" + drawable_other, + pool_strata, + pool.pool, + weights, + pool.share or 0.0, + label="pool", + identities=roots, ) would_claim = reported | drawn person[CARERS_ALLOWANCE_TAKE_UP_OUTPUT] = would_claim diff --git a/packages/microcosm-build/src/microcosm/build/uk_runtime/frs_relationships.py b/packages/microcosm-build/src/microcosm/build/uk_runtime/frs_relationships.py index 1c06a56c22..c63ac2736b 100644 --- a/packages/microcosm-build/src/microcosm/build/uk_runtime/frs_relationships.py +++ b/packages/microcosm-build/src/microcosm/build/uk_runtime/frs_relationships.py @@ -5,7 +5,10 @@ pairwise ``R01``-``R14`` matrix — and derives four frame columns: the relationship to the head, each person's role inside an ONS family, the family index within the household, and the household's ONS Families and households -Table 7 type. The ten household-type values are Chronicle's own category +Table 7 type. From the same grid it marks two kinds of child for +policyengine-uk: those a local authority placed in the household, and those +in non-parental care, the two-child limit's kinship and friends care +exception. The ten household-type values are Chronicle's own category identifiers for the ``ons.household_type`` dimension, so the frame value, the manifest declaration, the contract row and the published fact share one string. @@ -58,6 +61,7 @@ "FRS_RELATIONSHIPS_STAGE_NAME", "FRS_RELATIONSHIPS_TABLES", "LOOKED_AFTER_CHILD_RULE", + "NON_PARENTAL_CARE_CHILD_RULE", "ONS_DEPENDENT_CHILD_RULE", "ONS_FAMILY_LINK_CODES", "ONS_FAMILY_ROLE_VALUES", @@ -81,6 +85,7 @@ "ons_family_role", "ons_family_index", "is_looked_after_by_local_authority", + "child_limit_non_parental_caring_exception", "ons_household_type", ) FRS_RELATIONSHIPS_PERSON_OUTPUT_COLUMNS = ( @@ -88,6 +93,7 @@ "ons_family_role", "ons_family_index", "is_looked_after_by_local_authority", + "child_limit_non_parental_caring_exception", ) FRS_RELATIONSHIPS_HOUSEHOLD_OUTPUT_COLUMNS = ("ons_household_type",) @@ -195,6 +201,27 @@ "foster_parent_code": 9, "below_age": 16, } +#: A child in non-parental care (policyengine-uk's +#: ``child_limit_non_parental_caring_exception``; UC Regs 2013 Sch 12 para 4, +#: CTC Regs 2002 reg 12): a child-table member whom no adult of their own +#: benefit unit claims as a natural, adopted or step child (the child's grid +#: code toward the adult is child or step child, 3 or 4, or the adult's toward +#: the child is parent or step parent, 7 or 8; either side's declaration +#: establishes the link) and whom no local authority placed there. Such a +#: child lives with kinship or friends carers, or with a claimant whose own +#: child is the child's parent. The flag is an upper bound on the exception: +#: a friend or family carer also needs one of para 4(2)'s conditions (a child +#: arrangements order, special guardianship, guardian's allowance, a kinship +#: care order, guardianship, a permanence order, or taking on a child who +#: would otherwise likely be looked after), which the FRS grid does not show, +#: so informal arrangements are flagged too (Vahid's review of #1426). The +#: multiple births, adoption and +#: non-consensual conception exceptions stay false: the FRS has no twin field, +#: and its birth dates are blank (María's ruling of 2026-11-02). +NON_PARENTAL_CARE_CHILD_RULE: Mapping[str, tuple[int, ...]] = { + "child_codes": (3, 4), + "parent_codes": (7, 8), +} FRS_RELATIONSHIPS_DOCUMENTATION: Mapping[str, str] = { "frs_codes": ( @@ -238,6 +265,9 @@ def frs_relationships_operation_parameters() -> dict[str, Any]: }, "dependent_child": dict(ONS_DEPENDENT_CHILD_RULE), "looked_after_child": dict(LOOKED_AFTER_CHILD_RULE), + "non_parental_care_child": { + key: list(codes) for key, codes in NON_PARENTAL_CARE_CHILD_RULE.items() + }, "one_person_age_split": ONS_ONE_PERSON_AGE_SPLIT, "family_role_values": list(ONS_FAMILY_ROLE_VALUES), "household_type_values": list(CHRONICLE_ONS_HOUSEHOLD_TYPE_VALUE_IDS), @@ -469,6 +499,7 @@ def derive_frs_relationships( family_index = np.zeros(len(person), dtype="int64") role = np.full(len(person), "INDIVIDUAL", dtype=object) looked_after = np.zeros(len(person), dtype=bool) + non_parental_care = np.zeros(len(person), dtype=bool) household_type: dict[int, str] = {} counters = { @@ -516,6 +547,15 @@ def derive_frs_relationships( & (ages[rows] < LOOKED_AFTER_CHILD_RULE["below_age"]) & (foster_child_of & same_unit).any(axis=1) ) + parented_by = np.isin( + matrix, NON_PARENTAL_CARE_CHILD_RULE["child_codes"] + ) | np.isin(matrix.T, NON_PARENTAL_CARE_CHILD_RULE["parent_codes"]) + unit_adult = same_unit & ~from_child_tab[rows][None, :] + non_parental_care[rows] = ( + from_child_tab[rows] + & ~looked_after[rows] + & ~(parented_by & unit_adult).any(axis=1) + ) counters["grid_reciprocity_mismatches"] += int( np.triu(partner != partner.T, 1).sum() ) + int((child_of != parent_of.T).sum()) @@ -676,6 +716,7 @@ def derive_frs_relationships( "domain_violations": domain_violations, "dependency_counts": dependency_counts, "looked_after_children": int(looked_after.sum()), + "non_parental_care_children": int(non_parental_care.sum()), "household_type_counts": type_counts, "household_type_weighted": type_weighted, "partition_closes": sum(type_counts.values()) == int(len(household_table_ids)), @@ -689,6 +730,7 @@ def derive_frs_relationships( "ons_family_role": role, "ons_family_index": family_index, "is_looked_after_by_local_authority": looked_after, + "child_limit_non_parental_caring_exception": non_parental_care, }, index=person.index, ) diff --git a/packages/microcosm-build/src/microcosm/build/uk_runtime/full_build_cli.py b/packages/microcosm-build/src/microcosm/build/uk_runtime/full_build_cli.py index ca621c05b0..99032d38b0 100644 --- a/packages/microcosm-build/src/microcosm/build/uk_runtime/full_build_cli.py +++ b/packages/microcosm-build/src/microcosm/build/uk_runtime/full_build_cli.py @@ -201,6 +201,8 @@ from .property_localisation import ( BAND_MIX_SOURCE, QUANTILES_SOURCE, + SCOTLAND_BAND_MIX_RESOURCE, + SCOTLAND_BAND_MIX_SOURCE, SUPPORT_STRATUM_LOWER, ) from .property_localisation import ( @@ -506,7 +508,9 @@ def parse_args(argv: list[str] | None = None) -> argparse.Namespace: help=( "Dense role: price_paid (default) reads each owner clone's home value " "off its assigned constituency's uprated Land Registry sale distribution " - "and its council-tax band off its LSOA's VOA mix (microcosm#1240); none " + "and its council-tax band off its LSOA's VOA mix (microcosm#1240), or a " + "Scottish owner clone's off its council area's CTAXBASE mix " + "(microcosm#1095 B12); none " "keeps the spine's values and bands on every clone, for measurement " "builds only." ), @@ -944,15 +948,18 @@ def _input_record(path: Path, pin: dict, *, pinned: bool) -> dict: } -#: Graph source name to command-line label of the two property-localisation -#: resources (microcosm#1240). Both default to the committed package files. +#: Graph source name to command-line label of the property-localisation +#: resources (microcosm#1240; the Scottish band mix, microcosm#1095 B12). Each +#: defaults to the committed package file. _PROPERTY_RESOURCE_ARGUMENTS = { QUANTILES_SOURCE: "price-paid-quantiles", BAND_MIX_SOURCE: "voa-band-mix", + SCOTLAND_BAND_MIX_SOURCE: "scotgov-band-mix", } _PROPERTY_RESOURCE_FILES = { QUANTILES_SOURCE: "high_value_home_value_knots.json", BAND_MIX_SOURCE: "voa_council_tax_band_mix_lsoa.json", + SCOTLAND_BAND_MIX_SOURCE: SCOTLAND_BAND_MIX_RESOURCE, } diff --git a/packages/microcosm-build/src/microcosm/build/uk_runtime/graph.py b/packages/microcosm-build/src/microcosm/build/uk_runtime/graph.py index ba3aabaf99..a9c8de4acb 100644 --- a/packages/microcosm-build/src/microcosm/build/uk_runtime/graph.py +++ b/packages/microcosm-build/src/microcosm/build/uk_runtime/graph.py @@ -159,6 +159,10 @@ # open-surface SPI income stage, which would otherwise bind the cells # they rewrite (PolicyEngine/uk-autumn-budget-dashboard-2026#316). "company_cars", + # The student-loan stage moves each household's balance to its + # borrowers, rewriting was_wealth's ``student_loan_balance``, which the + # open-surface readers before it bind (microcosm#1095 B9). + "student_loans", } ) # ``age_tail`` needs no isolation entry: it is declared immediately after the @@ -190,7 +194,14 @@ "nts_stage", "nts_ticket", ), - "lcfs_consumption": ("lcfs_household", "lcfs_person"), + # The zero-emission share by income fifth and the household-paid road-fuel + # mix read the NTS private cars (microcosm#1095 B3, J2 and K). + "lcfs_consumption": ( + "lcfs_household", + "lcfs_person", + "nts_household", + "nts_vehicle", + ), "etb_vat": ("etb",), "etb_services": ("etb",), "frs_hmrc_spine_leaves": ("frs",), @@ -208,6 +219,7 @@ "nts_trip": "Pinned local NTS trip donor table.", "nts_stage": "Pinned local NTS stage donor table.", "nts_ticket": "Pinned local NTS ticket donor table.", + "nts_vehicle": "Pinned local NTS vehicle donor table.", "lcfs_household": "Pinned local LCFS household donor table.", "lcfs_person": "Pinned local LCFS person donor table.", "etb": "Pinned local ETB household donor table.", @@ -445,8 +457,15 @@ "receives_benefits_in_own_right", # The UC draw's population (frs_take_up's rule). "is_uc_claimant", + # The work tests of the contributory awards: the copy's + # earnings and its twin's hours (microcosm#1095 B10). + "employment_income", + "self_employment_income", + "hours_worked", ) ), + # The receipt counts support by source household. + ("household", "household_source_id"), ("benunit", "benunit_support_channel"), ("benunit", "would_claim_uc"), } @@ -644,6 +663,9 @@ ("person", "age"), ("person", "student_loans"), ("person", "student_loan_repayments"), + # Re-split to the borrowers once the plans are set (microcosm#1095 + # B9). + ("person", "student_loan_balance"), ("person", "current_education"), ("person", "highest_education"), ("person", "reports_outstanding_student_loan"), @@ -796,6 +818,7 @@ def _cells( _Cell("person", "ons_family_role", "string"), _Cell("person", "ons_family_index", "int64"), _Cell("person", "is_looked_after_by_local_authority", "bool"), + _Cell("person", "child_limit_non_parental_caring_exception", "bool"), _Cell("household", "ons_household_type", "string"), ), "frs_employment": ( @@ -1036,6 +1059,13 @@ def _cells( "horse_and_dog_pool_betting_net_losses", ), ), + # The vehicle excise duty inputs of the households' own cars + # (microcosm#1095 B3); the registration date is an ISO date. + _Cell("person", "car_fuel_type", "string"), + _Cell("person", "car_co2_emissions", "float64"), + _Cell("person", "car_engine_size", "float64"), + _Cell("person", "car_first_registration_date", "string"), + _Cell("person", "car_is_ved_exempt", "bool"), ), "etb_vat": (_Cell("household", "full_rate_vat_expenditure_rate", "float64"),), "etb_services": ( @@ -1145,7 +1175,6 @@ def _cells( *_cells( "person", ( - "jsa_contrib_reported", "jsa_income_reported", "esa_income_reported", "income_support_reported", @@ -1158,6 +1187,8 @@ def _cells( "bsp_reported", "war_widows_pension_reported", "widowed_parents_allowance_reported", + "jsa_contrib_reported", + "esa_contrib_reported", ), ), *_cells( @@ -1244,7 +1275,10 @@ def _cells( "salary_sacrifice_pre_conversion_pay", ), ), - "student_loans": (_Cell("person", "student_loan_plan", "string"),), + "student_loans": ( + _Cell("person", "student_loan_plan", "string"), + _Cell("person", "student_loan_balance", "float64"), + ), "private_school_attendance": (_Cell("person", "attends_private_school", "bool"),), "isa_subscriptions": _cells( "person", diff --git a/packages/microcosm-build/src/microcosm/build/uk_runtime/graph_kernels.py b/packages/microcosm-build/src/microcosm/build/uk_runtime/graph_kernels.py index 3d9bd23d8d..12a5e55f7b 100644 --- a/packages/microcosm-build/src/microcosm/build/uk_runtime/graph_kernels.py +++ b/packages/microcosm-build/src/microcosm/build/uk_runtime/graph_kernels.py @@ -656,6 +656,9 @@ def _fixture_implementations(source: Path) -> Mapping[str, object]: nts_stage = pd.read_csv( _fixture_input(source, inputs, "nts_stage"), float_precision="round_trip" ) + nts_vehicle = pd.read_csv( + _fixture_input(source, inputs, "nts_vehicle"), float_precision="round_trip" + ) nts_ticket = pd.read_csv( _fixture_input(source, inputs, "nts_ticket"), float_precision="round_trip" ) @@ -769,6 +772,8 @@ def _fixture_implementations(source: Path) -> Mapping[str, object]: engine=engine, lcfs_household=lcfs_household, lcfs_person=lcfs_person, + nts_household=nts_household, + nts_vehicle=nts_vehicle, ), "etb_vat": UKETBVATStageTransform( stage=stages["etb_vat"], engine=engine, donor=etb diff --git a/packages/microcosm-build/src/microcosm/build/uk_runtime/graph_population.py b/packages/microcosm-build/src/microcosm/build/uk_runtime/graph_population.py index 31690fc584..6de89bcd1b 100644 --- a/packages/microcosm-build/src/microcosm/build/uk_runtime/graph_population.py +++ b/packages/microcosm-build/src/microcosm/build/uk_runtime/graph_population.py @@ -583,6 +583,11 @@ def run(self, context: KernelContext) -> KernelResult: mix = property_localisation.load_band_mix( Path(context.sources[property_localisation.BAND_MIX_SOURCE]).read_bytes() ) + scotland_mix = property_localisation.load_scotland_band_mix( + Path( + context.sources[property_localisation.SCOTLAND_BAND_MIX_SOURCE] + ).read_bytes() + ) band_dtype = household["council_tax_band"].dtype tenure = household["tenure_type"].to_numpy() new_band, receipt = property_localisation.localise_bands( @@ -591,13 +596,22 @@ def run(self, context: KernelContext) -> KernelResult: band=household["council_tax_band"].to_numpy(), tenure_type=tenure, mix=mix, + scotland_mix=scotland_mix, + local_authority_code=household["local_authority_code"].to_numpy(), ) lsoa = household["lsoa_code"].to_numpy().astype(str) - rewritten = ( - np.char.startswith(lsoa, "E") | np.char.startswith(lsoa, "W") - ) & property_localisation.owner_mask(tenure) + area = household["local_authority_code"].to_numpy().astype(str) + owner = property_localisation.owner_mask(tenure) + england_wales = np.char.startswith(lsoa, "E") | np.char.startswith(lsoa, "W") + scotland = np.char.startswith(area, "S12") & ~england_wales + # Each mix is monotone within its area: an LSOA in England and Wales, + # a council area in Scotland. violations = property_localisation.monotone_violations( - u[rewritten], new_band[rewritten], lsoa[rewritten] + u[england_wales & owner], + new_band[england_wales & owner], + lsoa[england_wales & owner], + ) + property_localisation.monotone_violations( + u[scotland & owner], new_band[scotland & owner], area[scotland & owner] ) if violations: raise ValueError("Property band draws are not monotone in the uniform.") @@ -612,6 +626,7 @@ def run(self, context: KernelContext) -> KernelResult: **receipt, "monotone_violations": violations, "band_mix_sha256": mix.source_sha256, + "scotland_band_mix_facts_sha256": scotland_mix.source_sha256, }, ) @@ -1402,7 +1417,7 @@ def _property_localisation_nodes( raise ValueError( f"Property localisation needs the household column {column!r} on the pool." ) - for column in ("constituency_code", "lsoa_code"): + for column in ("constituency_code", "lsoa_code", "local_authority_code"): if ("household", column) not in cells: raise ValueError( f"Property localisation runs after geography derives {column!r}." @@ -1475,7 +1490,16 @@ def _property_localisation_nodes( inputs=( Slice( "household", - tuple(sorted({*_PROPERTY_BAND_COLUMNS, "lsoa_code", "tenure_type"})), + tuple( + sorted( + { + *_PROPERTY_BAND_COLUMNS, + "local_authority_code", + "lsoa_code", + "tenure_type", + } + ) + ), ), ), outputs=( @@ -1486,12 +1510,19 @@ def _property_localisation_nodes( rewrite=True, ), ), - sources=(property_localisation.BAND_MIX_SOURCE,), + sources=( + property_localisation.BAND_MIX_SOURCE, + property_localisation.SCOTLAND_BAND_MIX_SOURCE, + ), params={**common, "method": property_localisation.METHOD_VERSION}, artifact_inputs=( ArtifactInput("quantiles", value.id, "quantiles", PROPERTY_QUANTILE_TYPE), ), - description="Draw each England-and-Wales clone's council-tax band from its LSOA's VOA mix at the same uniform.", + description=( + "Draw each England-and-Wales owner clone's council-tax band from its " + "LSOA's VOA mix, and each Scottish owner clone's from its council " + "area's CTAXBASE mix, at the same uniform." + ), ) sources = ( SourceRef( @@ -1504,6 +1535,12 @@ def _property_localisation_nodes( "raw-bytes-v1", "Per-LSOA cumulative VOA council-tax band shares.", ), + SourceRef( + property_localisation.SCOTLAND_BAND_MIX_SOURCE, + "raw-bytes-v1", + "Per-council-area chargeable dwellings by council-tax band " + "(Scottish Government CTAXBASE), vendored from Chronicle.", + ), ) return (value, band), sources diff --git a/packages/microcosm-build/src/microcosm/build/uk_runtime/hmrc_source_contract.py b/packages/microcosm-build/src/microcosm/build/uk_runtime/hmrc_source_contract.py index 707aab80ac..70b41668ae 100644 --- a/packages/microcosm-build/src/microcosm/build/uk_runtime/hmrc_source_contract.py +++ b/packages/microcosm-build/src/microcosm/build/uk_runtime/hmrc_source_contract.py @@ -111,6 +111,7 @@ "draw_spi_donor_ages_by_population", "fit_weighted_qrf_stage1", "resample_band_donor_leaves", + "floor_spi_employment_pay_at_minimum_wage", "fit_weighted_qrf_stage2", "zero_pension_age_reports_below_state_pension_age", "materialize_hmrc_income_bands_fail_closed", @@ -924,18 +925,24 @@ def uk_hmrc_weighted_qrf_output_columns( #: tail-concentration surface, and the operations that replace them. _SPI_COHERENCE_STAGE = "spi_benefit_coherence" _SPI_COHERENCE_SUPERSEDING_KINDS = frozenset( - {"zero_spi_channel_reports", "restore_spi_channel_reports_from_source"} + { + "zero_spi_channel_reports", + "restore_spi_channel_reports_from_source", + "restore_spi_channel_reports_from_source_within_earnings_limit", + } ) def uk_spi_coherence_superseded_columns(resource: Any | None = None) -> tuple[str, ...]: """Report columns ``spi_benefit_coherence`` replaces on every SPI-channel row. - The stage (microcosm#1100) zeroes the income-tested legacy reports and - restores IIDB, AFCS and bereavement support from the FRS twin, so after it - these columns hold only FRS respondents' own reports: no stage-2 forest - draw survives in them, and the donor-tail broadcast the tail-concentration - gate looks for (#462) cannot occur there. Read from the stage's declared + The stage (microcosm#1100) zeroes the income-tested legacy reports, + restores IIDB, AFCS and bereavement support from the FRS twin, and gives + contributory JSA and ESA the twin's award within the permitted-work limit + and none above it (microcosm#1095 B10), so after it these columns hold only + FRS respondents' own reports: no stage-2 forest draw survives in them, and + the donor-tail broadcast the tail-concentration gate looks for (#462) + cannot occur there. Read from the stage's declared operations in the committed source manifest, in declaration order. """ diff --git a/packages/microcosm-build/src/microcosm/build/uk_runtime/lcfs_consumption.py b/packages/microcosm-build/src/microcosm/build/uk_runtime/lcfs_consumption.py index b7f5a8afab..22574f8d9c 100644 --- a/packages/microcosm-build/src/microcosm/build/uk_runtime/lcfs_consumption.py +++ b/packages/microcosm-build/src/microcosm/build/uk_runtime/lcfs_consumption.py @@ -3,7 +3,7 @@ from __future__ import annotations import math -from collections.abc import Mapping, Sequence +from collections.abc import Collection, Mapping, Sequence from dataclasses import dataclass, field from pathlib import Path from types import MappingProxyType @@ -82,6 +82,14 @@ uk_time_period, validate_uk_national_frame, ) +from microcosm.build.uk_runtime.nts_car_attributes import ( + ASSIGN_CAR_ATTRIBUTES_KIND, + UK_CAR_INPUT_COLUMNS, + UK_NTS_CAR_ATTRIBUTE_COLUMNS, + CarAttributes, + assign_car_attributes, + car_attributes_operation, +) from microcosm.build.uk_runtime.receipt_counts import ( extreme_count, floored_share, @@ -601,6 +609,59 @@ #: Each vehicle is zero-emission at the licensed-car share; the rate is one #: minus that share (microcosm#1278). UK_LCFS_ICE_SHARE_RULE = "per_car_zero_emission_share" +#: The same share, by the household's income fifth (microcosm#1095 B3, J2): +#: each fifth's relative risk is its NTS private cars' zero-emission share +#: over all of theirs, normalised over the frame's own cars so the national +#: share stays the licensed-car one. +UK_LCFS_ICE_SHARE_BY_INCOME_RULE = "per_car_zero_emission_share_by_income_quintile" +UK_LCFS_ICE_SHARE_RULES = (UK_LCFS_ICE_SHARE_RULE, UK_LCFS_ICE_SHARE_BY_INCOME_RULE) +#: The frame's fifths rank households by gross household income over the +#: engine's before-housing-costs equivalence scale, as the NTS ranks England's +#: households by their total gross income, McClements-equivalised (NTS data +#: extract user guide), each household at its weight. +UK_LCFS_FRAME_INCOME = "household_gross_income" +UK_LCFS_FRAME_INCOME_EQUIVALISATION = "household_equivalisation_bhc" +UK_INCOME_QUINTILES = (1, 2, 3, 4, 5) +#: Each road fuel levelled to ONS 07.2.2 times its share of household-paid +#: spend (microcosm#1095 B3, K): HMRC's litres times DESNZ's cars share times +#: the NTS household-paid share of car miles, at the declared year's pump +#: prices. +UK_LCFS_ROAD_FUEL_MIX_RULE = "household_paid_litres" +#: The NTS private cars J2 and K read (UKDS SN 5340, End User Licence): the +#: vehicle tab's cars and four-by-fours (``VehType_B03ID`` 1 and 3) of the +#: survey years, each at its household's interview weight (``W3``, the +#: weight the user guide gives vehicle analysis). ``CarOwn_B01ID`` 1 is a car +#: the household keeps, 2 a company car; a car of neither is left out. The +#: income fifth is ``HHIncQISEngTS_B01ID``; a car is zero-emission in the +#: DVLA-linked 0 g/km CO2 band (``VehCO2Bands_B01ID`` 1), and a car with no +#: linked band (a code below 1) is left out of the zero-emission shares. Fuel +#: is ``VehPropTypeTS_B01ID``: 1 petrol, 2 diesel. +UK_NTS_VEHICLE_TAB_ROLE = "nts_vehicle_tab" +UK_NTS_HOUSEHOLD_TAB_ROLE = "nts_household_tab" +UK_NTS_CARS: dict[str, Any] = { + "survey_years": [2022, 2023, 2024], + "vehicle_types": [1, 3], + "private_keeper": [1], + "company_keeper": [2], + "weight": "w3", + "income_quintile": "hhincqisengts_b01id", + "zero_emission_co2_bands": [1], + "propulsion": {"petrol_spending": 1, "diesel_spending": 2}, +} +UK_NTS_VEHICLE_COLUMNS = ( + "householdid", + "surveyyear", + "vehtype_b03id", + "carown_b01id", + "vehproptypets_b01id", + "vehco2bands_b01id", + "vehanmileage", + "vehcommile", + "vehprimile", + # The vehicle excise duty inputs' CO2 bands, engine size and age. + *UK_NTS_CAR_ATTRIBUTE_COLUMNS, +) +UK_NTS_HOUSEHOLD_COLUMNS = ("householdid", "w3", "hhincqisengts_b01id") #: How the litres audit benchmarks each fuel: HMRC's all-road-user litres times #: the cars share of that fuel's road use (PolicyEngine/chronicle#322). UK_LITRES_AUDIT_PER_FUEL_BASIS = "desnz cars share of each fuel's road use" @@ -812,7 +873,13 @@ UK_LCFS_PREPAYMENT_METER_COLUMN, *UK_LCFS_EXCISE_DECLARED_OUTPUTS, ) -UK_LCFS_CONSUMPTION_NONNEGATIVE_OUTPUT_COLUMNS = UK_LCFS_CONSUMPTION_OUTPUT_COLUMNS +#: The person inputs the vehicle excise duty step writes (microcosm#1095 B3). +UK_LCFS_CONSUMPTION_PERSON_OUTPUT_COLUMNS = UK_CAR_INPUT_COLUMNS +UK_LCFS_CONSUMPTION_NONNEGATIVE_OUTPUT_COLUMNS = ( + *UK_LCFS_CONSUMPTION_OUTPUT_COLUMNS, + "car_co2_emissions", + "car_engine_size", +) UK_LCFS_CONSUMPTION_FIT_NAME = "uk_lcfs_2024_25_consumption" UK_LCFS_CONSUMPTION_STAGE_NAME = "lcfs_consumption" @@ -839,6 +906,7 @@ class UKLCFSConsumptionResult: excise_shares: Mapping[str, Any] | None = None gambling_participation: Mapping[str, Any] | None = None excise_quantities: Mapping[str, Any] | None = None + car_attributes: Mapping[str, Any] | None = None def evidence(self) -> dict[str, object]: evidence: dict[str, object] = { @@ -879,6 +947,8 @@ def evidence(self) -> dict[str, object]: ) if self.excise_quantities is not None: evidence[UK_LCFS_EXCISE_QUANTITIES_RECEIPT] = dict(self.excise_quantities) + if self.car_attributes is not None: + evidence[ASSIGN_CAR_ATTRIBUTES_KIND] = dict(self.car_attributes) return evidence @@ -898,6 +968,10 @@ class UKLCFSConsumptionStageTransform: lcfs_person_tab_path: str | Path | None = None lcfs_household: pd.DataFrame | None = None lcfs_person: pd.DataFrame | None = None + nts_household_tab_path: str | Path | None = None + nts_vehicle_tab_path: str | Path | None = None + nts_household: pd.DataFrame | None = None + nts_vehicle: pd.DataFrame | None = None last_fit_weight_records: tuple[FitWeightRecord, ...] | None = field( default=None, init=False, @@ -911,6 +985,31 @@ def fit_weight_records(self) -> tuple[FitWeightRecord, ...]: return () return tuple(self.last_fit_weight_records) + def _nts_cars(self) -> pd.DataFrame | None: + """The NTS cars J2 and K read, when the stage declares either (none otherwise).""" + + if not declares_nts_cars(self.stage): + return None + vehicle = ( + self.nts_vehicle + if self.nts_vehicle is not None + else read_pinned_tab( + _require_path(self.nts_vehicle_tab_path), + _artifact(self.stage, UK_NTS_VEHICLE_TAB_ROLE), + columns=UK_NTS_VEHICLE_COLUMNS, + ) + ) + household = ( + self.nts_household + if self.nts_household is not None + else read_pinned_tab( + _require_path(self.nts_household_tab_path), + _artifact(self.stage, UK_NTS_HOUSEHOLD_TAB_ROLE), + columns=UK_NTS_HOUSEHOLD_COLUMNS, + ) + ) + return nts_cars(vehicle, household) + def __call__(self, frame: Frame) -> Frame: assert_rules_engine_country(self.engine, "uk") lcfs_household = ( @@ -946,12 +1045,36 @@ def __call__(self, frame: Frame) -> Frame: ) ice_share, ice_share_receipt = lcfs_ice_share(self.stage) recipient = recipient_predictors(frame, self.engine) + weights = frame.weights_for("household").values + cars = self._nts_cars() + gradient = lcfs_zero_emission_gradient( + self.stage, + rate=ice_share, + frame=frame, + engine=self.engine, + recipient=recipient, + weights=weights, + cars=cars, + ) + if gradient is not None: + ice_share_receipt = { + **ice_share_receipt, + "income_gradient": gradient.receipt, + } recipient["has_fuel_consumption"] = assign_recipient_has_fuel( frame, rate=ice_share, seed=_operation_seed(self.stage, "assign_binary_from_rate"), + zero_emission_share=None if gradient is None else gradient.share, + ) + car_attributes = lcfs_car_attributes( + self.stage, + frame=frame, + gradient=gradient, + has_fuel=recipient["has_fuel_consumption"].to_numpy(dtype=bool), + weights=weights, + cars=cars, ) - weights = frame.weights_for("household").values # The receipts' floors count source households, not the copies the # frame stacks of one (microcosm#1306 review). sources = _source_households(frame.table("household")) @@ -1029,7 +1152,11 @@ def __call__(self, frame: Frame) -> Frame: ) household_draws = incidence.draws household_draws, road_fuel_level_receipt = lcfs_road_fuel_level( - self.stage, household_draws, weights=weights, lcfs_household=lcfs_household + self.stage, + household_draws, + weights=weights, + lcfs_household=lcfs_household, + cars=cars, ) household_draws, recomposed_totals_receipt = lcfs_recompose_from_remainder( self.stage, @@ -1110,8 +1237,12 @@ def __call__(self, frame: Frame) -> Frame: quantities.columns, key=UK_LCFS_EXCISE_DECLARED_OUTPUTS.index ): household[column] = quantities[column].to_numpy(dtype=float) + person = frame.table("person").copy() + if car_attributes is not None: + for column in UK_LCFS_CONSUMPTION_PERSON_OUTPUT_COLUMNS: + person[column] = car_attributes.person[column].to_numpy() result = uk_national_frame( - person=frame.table("person").copy(), + person=person, benunit=frame.table("benunit").copy(), household=household, time_period=uk_time_period(frame), @@ -1151,12 +1282,16 @@ def __call__(self, frame: Frame) -> Frame: excise_shares=excise_shares, gambling_participation=None if gambling is None else gambling.receipt, excise_quantities=excise_quantities, + car_attributes=None if car_attributes is None else car_attributes.receipt, ) return result @staticmethod def output_columns() -> tuple[str, ...]: - return UK_LCFS_CONSUMPTION_OUTPUT_COLUMNS + return ( + *UK_LCFS_CONSUMPTION_OUTPUT_COLUMNS, + *UK_LCFS_CONSUMPTION_PERSON_OUTPUT_COLUMNS, + ) def checkpoint_metadata(self) -> dict[str, object]: if self.last_result is None: @@ -1559,6 +1694,52 @@ def desnz_cars_share_by_fuel(period_value: int) -> dict[str, dict[str, Any]]: return shares +def _road_fuel_prices_and_litres( + uprating: Mapping[str, Any], *, columns: Collection[str] +) -> dict[str, dict[str, Any]]: + """Each litre-proxy fuel's pump price and HMRC litres at the uprating's target year. + + The price is DESNZ's annual pump price of the calendar year, the litres + HMRC's all-road-user clearances of the fiscal year starting then, both + from the column's declared litre-proxy resource; only the declared + ``columns`` are read. + """ + + to_period = int(uprating["to_period"]) + terms: dict[str, dict[str, Any]] = {} + for column, spec in uprating["columns"].items(): + if spec.get("basis") != "vendored_litre_proxy" or column not in columns: + continue + resource = str(spec["resource"]) + price_rows = vendored_rows( + resource, + concept=str(spec["price_concept"]), + period_type="calendar_year", + period_value=to_period, + ) + litre_rows = vendored_rows( + resource, + concept=UK_HMRC_LITRES_CONCEPTS[str(column)], + fiscal_start=f"{to_period}-04-01", + ) + if len(price_rows) != 1 or len(litre_rows) != 1: + raise ValueError( + f"{resource}: litres audit needs one price and one litres row." + ) + terms[str(column)] = { + "resource": resource, + "price_concept": spec["price_concept"], + "price_pence_per_litre": float(price_rows[0]["value"]), + "hmrc_concept": UK_HMRC_LITRES_CONCEPTS[str(column)], + "hmrc_litres_all_road_users": float(litre_rows[0]["value"]), + "source_record_ids": [ + str(price_rows[0].get("source_record_id", "")), + str(litre_rows[0].get("source_record_id", "")), + ], + } + return terms + + def fuel_litres_audit( household_draws: pd.DataFrame, *, @@ -1585,37 +1766,21 @@ def fuel_litres_audit( weight_values = np.asarray(weights, dtype=float) fuels: dict[str, Any] = {} resource = None - for column, spec in parameters["columns"].items(): - if spec.get("basis") != "vendored_litre_proxy" or column not in household_draws: - continue - resource = str(spec["resource"]) - price_rows = vendored_rows( - resource, - concept=str(spec["price_concept"]), - period_type="calendar_year", - period_value=to_period, - ) - litre_rows = vendored_rows( - resource, - concept=UK_HMRC_LITRES_CONCEPTS[str(column)], - fiscal_start=f"{to_period}-04-01", - ) - if len(price_rows) != 1 or len(litre_rows) != 1: - raise ValueError( - f"{resource}: litres audit needs one price and one litres row." - ) - price_pence = float(price_rows[0]["value"]) - hmrc_litres = float(litre_rows[0]["value"]) + for column, terms in _road_fuel_prices_and_litres( + parameters, columns=household_draws.columns + ).items(): + resource = str(terms["resource"]) + price_pence = terms["price_pence_per_litre"] spend = _numeric(household_draws[column]).to_numpy(dtype=float) spend_total = float(np.dot(spend, weight_values)) frame_litres = spend_total / (price_pence / 100.0) fuels[str(column)] = { - "price_concept": spec["price_concept"], + "price_concept": terms["price_concept"], "price_pence_per_litre": price_pence, "weighted_spend_gbp": spend_total, "frame_litres": frame_litres, - "hmrc_concept": UK_HMRC_LITRES_CONCEPTS[str(column)], - "hmrc_litres_all_road_users": hmrc_litres, + "hmrc_concept": terms["hmrc_concept"], + "hmrc_litres_all_road_users": terms["hmrc_litres_all_road_users"], } if not fuels: return None @@ -2119,6 +2284,13 @@ def road_fuel_level( ) if str(parameters.get("period_type")) != "calendar_year": raise ValueError(f"{LEVEL_ROAD_FUEL_KIND} binds a calendar-year ONS level.") + mix_rule = parameters.get("mix_rule") + if mix_rule is not None: + if mix_rule != UK_LCFS_ROAD_FUEL_MIX_RULE: + raise ValueError( + f"unsupported {LEVEL_ROAD_FUEL_KIND} mix_rule {mix_rule!r}." + ) + _nts_cars_declaration(parameters, operation=LEVEL_ROAD_FUEL_KIND) if not 0.0 <= other_fuels_share < 1.0: raise ValueError(f"other-fuels share {other_fuels_share} is outside [0, 1).") period_value = int(parameters["period_value"]) @@ -2152,31 +2324,159 @@ def road_fuel_level( "other_fuels_share": float(other_fuels_share), "level": published * (1.0 - other_fuels_share), "columns": list(UK_LCFS_ROAD_FUEL_COLUMNS), + **({} if mix_rule is None else {"mix_rule": str(mix_rule)}), } return RoadFuelLevel(published, float(other_fuels_share), receipt) +def household_paid_road_fuel_shares( + cars: pd.DataFrame, +) -> tuple[dict[str, float], dict[str, Any]]: + """Each fuel's household-paid share of car miles, from the NTS cars. + + A kept car's private and commuting miles are household-paid; its business + miles, and every mile of a company car, are not, and England stands for + the UK (the declared approximations of microcosm#1278's PR 2b). A car whose + miles the release does not split (a blank: not answered, or not asked), + or that neither a household nor a company keeps, is left out; a blank is + missing, never a zero. + """ + + weight = _numeric(cars[UK_NTS_CARS["weight"]]).to_numpy(dtype=float) + keeper = _numeric(cars["carown_b01id"]) + kept = keeper.isin(UK_NTS_CARS["private_keeper"]).to_numpy() + company = keeper.isin(UK_NTS_CARS["company_keeper"]).to_numpy() + annual, private, commuting = ( + pd.to_numeric(cars[column], errors="coerce").to_numpy(dtype=float) + for column in ("vehanmileage", "vehprimile", "vehcommile") + ) + with np.errstate(invalid="ignore"): + valid = (kept | company) & (annual >= 0) & (private >= 0) & (commuting >= 0) + propulsion = _numeric(cars["vehproptypets_b01id"]).to_numpy(dtype=float) + paid = np.where(kept & valid, private + commuting, 0.0) + annual = np.where(valid, annual, 0.0) + shares: dict[str, float] = {} + fuels: dict[str, Any] = {} + for column, code in UK_NTS_CARS["propulsion"].items(): + fuel = valid & (propulsion == code) + miles = float((weight * annual)[fuel].sum()) + if not miles > 0: + raise ValueError(f"The NTS cars record no {column} miles.") + share = float((weight * paid)[fuel].sum()) / miles + if not 0.0 < share <= 1.0: + raise ValueError( + f"The household-paid {column} share {share} is outside (0, 1]." + ) + shares[column] = share + fuels[column] = { + "household_paid_share": share, + "cars": rounded_count(int(fuel.sum())), + "company_car_share_of_miles": float((weight * annual)[fuel & company].sum()) + / miles, + } + receipt = {"survey_years": list(UK_NTS_CARS["survey_years"]), "fuels": fuels} + return shares, receipt + + +def road_fuel_household_mix( + stage: SourceStageSpec, household_paid_shares: Mapping[str, float] +) -> tuple[dict[str, float], dict[str, Any]]: + """Each fuel's share of household-paid road-fuel spend. + + HMRC's litres of the fuel times DESNZ's cars share of its road use (the + litres audit's benchmark), times the household-paid share of car miles, + at the uprating year's pump price. DESNZ must split the year by vehicle: + the OBR's uniform cars share could not tell the fuels apart. + """ + + uprating = uprating_operation(stage) + if uprating is None: + raise ValueError(f"{UK_LCFS_ROAD_FUEL_MIX_RULE} needs the stage's uprating.") + terms = _road_fuel_prices_and_litres(uprating, columns=UK_LCFS_ROAD_FUEL_COLUMNS) + if set(terms) != set(UK_LCFS_ROAD_FUEL_COLUMNS): + raise ValueError( + f"{UK_LCFS_ROAD_FUEL_MIX_RULE} needs litre-proxy uprating of " + f"{UK_LCFS_ROAD_FUEL_COLUMNS}, not {tuple(sorted(terms))}." + ) + cars_share = desnz_cars_share_by_fuel(int(uprating["to_period"])) + fuels: dict[str, Any] = {} + spend: dict[str, float] = {} + for column in UK_LCFS_ROAD_FUEL_COLUMNS: + share = float(household_paid_shares[column]) + if not 0.0 < share <= 1.0: + raise ValueError( + f"The household-paid {column} share {share} is outside (0, 1]." + ) + fuel = UK_LITRES_AUDIT_FUELS[column] + cars_litres = ( + terms[column]["hmrc_litres_all_road_users"] * cars_share[fuel]["cars_share"] + ) + litres = cars_litres * share + spend[column] = litres * terms[column]["price_pence_per_litre"] / 100.0 + fuels[column] = { + "hmrc_litres_all_road_users": terms[column]["hmrc_litres_all_road_users"], + "desnz_cars_share": cars_share[fuel]["cars_share"], + "household_paid_share": share, + "household_litres": litres, + "price_pence_per_litre": terms[column]["price_pence_per_litre"], + "household_spend": spend[column], + } + total = sum(spend.values()) + mix = {column: spend[column] / total for column in UK_LCFS_ROAD_FUEL_COLUMNS} + for column in UK_LCFS_ROAD_FUEL_COLUMNS: + fuels[column]["mix"] = mix[column] + receipt = { + "rule": UK_LCFS_ROAD_FUEL_MIX_RULE, + "period_value": int(uprating["to_period"]), + "fuels": fuels, + } + return mix, receipt + + def level_road_fuel( household_draws: pd.DataFrame, *, level: RoadFuelLevel, weights: Sequence[float], + mix: Mapping[str, float] | None = None, + mix_receipt: Mapping[str, Any] | None = None, ) -> tuple[pd.DataFrame, dict[str, Any]]: - """Scale petrol and diesel by one factor so the prior-weighted total is the level. - - One factor keeps the drawn petrol/diesel mix and every household's - relative spend; only the level moves (microcosm#1113: the LCFS diary - records about a quarter less road fuel than ONS household spending). + """Scale petrol and diesel so the prior-weighted total is the level. + + Without a ``mix``, one factor keeps the drawn petrol/diesel mix and every + household's relative spend; only the level moves (microcosm#1113: the + LCFS diary records about a quarter less road fuel than ONS household + spending). With one, each fuel is scaled by its own factor to the level + times its share (microcosm#1095 B3, K), so the total is the same level and + each household's relative spend within a fuel is kept. """ columns = list(UK_LCFS_ROAD_FUEL_COLUMNS) weight_values = np.asarray(weights, dtype=float) spend = household_draws[columns].to_numpy(dtype=float) - scaled, before, factor = _scale_to_level( - spend, weight_values, level.level, what="road-fuel spend" - ) result = household_draws.copy() - result[columns] = scaled + if mix is None: + scaled, before, factor = _scale_to_level( + spend, weight_values, level.level, what="road-fuel spend" + ) + result[columns] = scaled + else: + before = float(np.dot(weight_values, spend.sum(axis=1))) + if not np.isfinite(before) or before <= 0: + raise ValueError("the frame draws no road-fuel spend to level.") + factor = level.level / before + factors: dict[str, float] = {} + drawn: dict[str, float] = {} + for index, column in enumerate(columns): + scaled, fuel_before, fuel_factor = _scale_to_level( + spend[:, index], + weight_values, + level.level * float(mix[column]), + what=f"{column}", + ) + result[column] = scaled + factors[column] = float(fuel_factor) + drawn[column] = fuel_before / before after = result[columns].to_numpy(dtype=float) petrol = float(np.dot(weight_values, after[:, 0])) receipt = { @@ -2186,6 +2486,16 @@ def level_road_fuel( "frame_after": float(np.dot(weight_values, after.sum(axis=1))), "petrol_share_of_level": petrol / level.level, } + if mix is not None: + receipt["mix"] = { + **dict(mix_receipt or {}), + "drawn_mix": drawn, + "factors": factors, + "frame_after": { + column: float(np.dot(weight_values, after[:, index])) + for index, column in enumerate(columns) + }, + } return result, receipt @@ -2195,8 +2505,13 @@ def lcfs_road_fuel_level( *, weights: Sequence[float], lcfs_household: pd.DataFrame, + cars: pd.DataFrame | None = None, ) -> tuple[pd.DataFrame, dict[str, Any] | None]: - """Apply the declared ``level_road_fuel`` step (none if undeclared).""" + """Apply the declared ``level_road_fuel`` step (none if undeclared). + + A declared ``mix_rule`` levels each fuel to its household-paid share of + the level, from the NTS ``cars``. + """ parameters = road_fuel_level_operation(stage) if parameters is None: @@ -2204,7 +2519,21 @@ def lcfs_road_fuel_level( level = road_fuel_level( parameters, other_fuels_share=lcfs_other_road_fuel_share(lcfs_household) ) - return level_road_fuel(household_draws, level=level, weights=weights) + if parameters.get("mix_rule") is None: + return level_road_fuel(household_draws, level=level, weights=weights) + if cars is None: + raise ValueError( + f"{LEVEL_ROAD_FUEL_KIND} {UK_LCFS_ROAD_FUEL_MIX_RULE} needs the NTS cars." + ) + shares, shares_receipt = household_paid_road_fuel_shares(cars) + mix, mix_receipt = road_fuel_household_mix(stage, shares) + return level_road_fuel( + household_draws, + level=level, + weights=weights, + mix=mix, + mix_receipt={**mix_receipt, "nts": shares_receipt}, + ) def _scale_to_level( @@ -3834,7 +4163,7 @@ def ice_share_from_licensed_cars( f"{UK_LCFS_LICENSED_CARS_RESOURCE!r}, not {resource!r}." ) rule = str(parameters.get("rate_rule") or "") - if rule != UK_LCFS_ICE_SHARE_RULE: + if rule not in UK_LCFS_ICE_SHARE_RULES: raise ValueError(f"unsupported has_fuel_consumption rate_rule {rule!r}.") period_value = int(parameters["period_value"]) geography_id = str(parameters["geography_id"]) @@ -3887,6 +4216,188 @@ def licensed(fuel_type: str) -> tuple[float, str]: return float(rate), receipt +def declares_nts_cars(stage: SourceStageSpec) -> bool: + """Whether the stage reads the NTS cars: J2's income gradient or K's mix.""" + + for operation in stage.operations: + parameters = operation.parameters + if ( + ( + operation.kind == "assign_binary_from_rate" + and parameters.get("target") == "has_fuel_consumption" + and parameters.get("rate_rule") == UK_LCFS_ICE_SHARE_BY_INCOME_RULE + ) + or ( + operation.kind == LEVEL_ROAD_FUEL_KIND + and parameters.get("mix_rule") is not None + ) + or operation.kind == ASSIGN_CAR_ATTRIBUTES_KIND + ): + return True + return False + + +def _nts_cars_declaration(parameters: Mapping[str, Any], *, operation: str) -> None: + """Refuse an ``nts_cars`` declaration that differs from the cars J2 and K read.""" + + declared = parameters.get("nts_cars") + if declared != UK_NTS_CARS: + raise ValueError( + f"{operation}: nts_cars must declare {UK_NTS_CARS}, not {declared!r}." + ) + + +def nts_cars(vehicle: pd.DataFrame, household: pd.DataFrame) -> pd.DataFrame: + """The NTS cars of ``UK_NTS_CARS``, each with its household's weight and income fifth. + + ``vehicle`` and ``household`` are the pinned vehicle and household tabs. + Every car must find its household, at a positive interview weight. + """ + + cars_table = _lowercase(vehicle) + households = _lowercase(household) + _require_columns(cars_table, UK_NTS_VEHICLE_COLUMNS) + _require_columns(households, UK_NTS_HOUSEHOLD_COLUMNS) + year = _numeric(cars_table["surveyyear"]) + kind = _numeric(cars_table["vehtype_b03id"]) + selected = cars_table.loc[ + year.isin(UK_NTS_CARS["survey_years"]) + & kind.isin(UK_NTS_CARS["vehicle_types"]), + list(UK_NTS_VEHICLE_COLUMNS), + ] + if selected.empty: + raise ValueError("The NTS vehicle tab holds no cars in the declared years.") + joined = selected.merge( + households[list(UK_NTS_HOUSEHOLD_COLUMNS)], + on="householdid", + how="left", + validate="many_to_one", + ) + weight = _numeric(joined[UK_NTS_CARS["weight"]]) + if bool((~(weight > 0)).any()): + raise ValueError( + "Every NTS car needs its household's positive interview weight (W3)." + ) + return joined.reset_index(drop=True) + + +def zero_emission_relative_risks( + cars: pd.DataFrame, *, minimum_cars: int +) -> tuple[dict[int, float], dict[str, Any]]: + """Each income fifth's zero-emission share of kept cars over all of theirs. + + The cars a household keeps with a DVLA-linked CO2 band and a known + fifth count, at their household's weight. A fifth whose zero-emission + cars number fewer than ``minimum_cars`` pools with its neighbour toward + the middle, so every relative risk rests on at least that many; the + receipt bands the counts. + """ + + weight = _numeric(cars[UK_NTS_CARS["weight"]]).to_numpy(dtype=float) + kept = _numeric(cars["carown_b01id"]).isin(UK_NTS_CARS["private_keeper"]).to_numpy() + band = _numeric(cars["vehco2bands_b01id"]).to_numpy(dtype=float) + fifth = _numeric(cars[UK_NTS_CARS["income_quintile"]]).to_numpy(dtype=float) + known = np.isin(fifth, UK_INCOME_QUINTILES) + linked = kept & (band >= 1) & known + zero = linked & np.isin(band, UK_NTS_CARS["zero_emission_co2_bands"]) + if not bool(zero.any()): + raise ValueError("The NTS kept cars hold no zero-emission car to grade.") + groups = [[q] for q in UK_INCOME_QUINTILES] + + def count(group: list[int]) -> int: + return int((zero & np.isin(fifth, group)).sum()) + + while len(groups) > 1 and min(count(group) for group in groups) < minimum_cars: + index = min(range(len(groups)), key=lambda i: count(groups[i])) + partner = index + 1 if index < len(groups) / 2 else index - 1 + low, high = sorted((index, partner)) + groups[low : high + 1] = [groups[low] + groups[high]] + if count(groups[0]) < minimum_cars: + raise ValueError( + f"The NTS kept cars hold fewer than {minimum_cars} zero-emission cars." + ) + overall = float(weight[zero].sum() / weight[linked].sum()) + risks: dict[int, float] = {} + for group in groups: + members = linked & np.isin(fifth, group) + share = float(weight[zero & members].sum() / weight[members].sum()) + for q in group: + risks[q] = share / overall + receipt = { + "survey_years": list(UK_NTS_CARS["survey_years"]), + "kept_cars": rounded_count(int(kept.sum())), + "linked_share": float(weight[linked].sum() / weight[kept & known].sum()), + "zero_emission_share": overall, + "minimum_zero_emission_cars": int(minimum_cars), + "fifths": [list(group) for group in groups], + "relative_risks": {str(q): risks[q] for q in UK_INCOME_QUINTILES}, + "zero_emission_cars": { + "+".join(str(q) for q in group): support_band(count(group)) + for group in groups + }, + } + return risks, receipt + + +def frame_income_quintiles( + income: Sequence[float], equivalisation: Sequence[float], weights: Sequence[float] +) -> np.ndarray: + """Each household's weighted fifth of equivalised income, 1 (lowest) to 5.""" + + scale = np.asarray(equivalisation, dtype=float) + if not bool(np.all(scale > 0)): + raise ValueError("Every household needs a positive equivalence scale.") + equivalised = np.asarray(income, dtype=float) / scale + weight = np.asarray(weights, dtype=float) + order = np.argsort(equivalised, kind="stable") + cumulative = np.cumsum(weight[order]) / weight.sum() + cuts = equivalised[order][ + np.minimum( + np.searchsorted(cumulative, (0.2, 0.4, 0.6, 0.8), side="left"), + len(order) - 1, + ) + ] + return np.searchsorted(cuts, equivalised, side="left") + 1 + + +def zero_emission_share_by_household( + national: float, + risks: Mapping[int, float], + fifths: Sequence[int], + *, + vehicles: Sequence[float], + weights: Sequence[float], +) -> tuple[np.ndarray, dict[str, Any]]: + """Each household's per-car zero-emission share: the national share by its fifth's risk. + + The risks are normalised over the frame's cars (households at their + weight, times their vehicles), so the frame's car-weighted share is the + national one. + """ + + risk = np.array([risks[int(q)] for q in fifths], dtype=float) + cars = np.asarray(weights, dtype=float) * np.asarray(vehicles, dtype=float) + if not cars.sum() > 0: + raise ValueError("The frame holds no vehicles to grade.") + normaliser = float((cars * risk).sum() / cars.sum()) + share = float(national) * risk / normaliser + if not bool(np.all((share > 0) & (share < 1))): + raise ValueError("A household's zero-emission share falls outside (0, 1).") + fifth = np.asarray(fifths) + receipt = { + "national_share": float(national), + "normaliser": normaliser, + "share_by_fifth": { + str(q): float(national) * risks[q] / normaliser for q in UK_INCOME_QUINTILES + }, + "frame_car_share_by_fifth": { + str(q): float(cars[fifth == q].sum() / cars.sum()) + for q in UK_INCOME_QUINTILES + }, + } + return share, receipt + + def vehicle_count(values: pd.Series) -> pd.Series: """Round and clip a vehicle count to ``UK_LCFS_VEHICLE_COUNT_RANGE``.""" @@ -4646,7 +5157,13 @@ def fuel(account: tuple[str, str, str], parts: tuple[str, ...]) -> pd.Series: return result -def assign_recipient_has_fuel(frame: Frame, *, rate: float, seed: int) -> np.ndarray: +def assign_recipient_has_fuel( + frame: Frame, + *, + rate: float, + seed: int, + zero_emission_share: Sequence[float] | None = None, +) -> np.ndarray: """Flag the recipient households that buy road fuel. ``rate`` is the fuel-buyer share of licensed cars, one minus the @@ -4655,6 +5172,8 @@ def assign_recipient_has_fuel(frame: Frame, *, rate: float, seed: int) -> np.nda unless all ``n`` are: it is flagged at ``1 - (1 - rate) ** n``, against a uniform keyed on its identity (microcosm#1278). A one-vehicle household keeps the draw it had when the whole household was drawn at ``rate``. + ``zero_emission_share``, one per household, replaces ``1 - rate`` with the + household's own share (microcosm#1095 B3, J2); the uniforms are the same. """ household = frame.table("household") @@ -4669,10 +5188,135 @@ def assign_recipient_has_fuel(frame: Frame, *, rate: float, seed: int) -> np.nda ) has_vehicle = (_numeric(household["num_vehicles"]) > 0).to_numpy() vehicles = np.maximum(vehicle_count(household["num_vehicles"]).to_numpy(), 1) - buys_fuel = 1.0 - (1.0 - float(rate)) ** vehicles + if zero_emission_share is None: + buys_fuel = 1.0 - (1.0 - float(rate)) ** vehicles + else: + share = np.asarray(zero_emission_share, dtype=float) + if share.shape != vehicles.shape or not bool(np.all((share > 0) & (share < 1))): + raise ValueError( + "zero_emission_share needs one share in (0, 1) per household." + ) + buys_fuel = 1.0 - share**vehicles return has_vehicle & (np.asarray(draws, dtype=np.float64) < buys_fuel) +@dataclass(frozen=True) +class ZeroEmissionGradient: + """Each household's per-car zero-emission share by income fifth, with its receipt.""" + + share: np.ndarray + receipt: Mapping[str, Any] + fifths: np.ndarray | None = None + + +def lcfs_zero_emission_gradient( + stage: SourceStageSpec, + *, + rate: float, + frame: Frame, + engine: object, + recipient: pd.DataFrame, + weights: Sequence[float], + cars: pd.DataFrame | None, +) -> ZeroEmissionGradient | None: + """The declared income gradient of the zero-emission share (none for the flat rule). + + The national per-car share is ``1 - rate``; each household's is that share + times its fifth's NTS relative risk, normalised over the frame's cars (the + households with a vehicle, each at its weight times its vehicles, as the + draw counts them). + """ + + parameters = _operation_parameters( + stage, "assign_binary_from_rate", target="has_fuel_consumption" + ) + if parameters.get("rate_rule") != UK_LCFS_ICE_SHARE_BY_INCOME_RULE: + return None + _nts_cars_declaration(parameters, operation="assign_binary_from_rate") + if ( + parameters.get("frame_income") != UK_LCFS_FRAME_INCOME + or parameters.get("frame_equivalisation") != UK_LCFS_FRAME_INCOME_EQUIVALISATION + ): + raise ValueError( + f"{UK_LCFS_ICE_SHARE_BY_INCOME_RULE} ranks {UK_LCFS_FRAME_INCOME} over " + f"{UK_LCFS_FRAME_INCOME_EQUIVALISATION}." + ) + if cars is None: + raise ValueError(f"{UK_LCFS_ICE_SHARE_BY_INCOME_RULE} needs the NTS cars.") + risks, risks_receipt = zero_emission_relative_risks( + cars, minimum_cars=int(parameters["minimum_zero_emission_cars"]) + ) + materialized = engine.materialize( + frame, (UK_LCFS_FRAME_INCOME_EQUIVALISATION,), uk_time_period(frame) + ) + scale = household_level( + frame, + engine, + UK_LCFS_FRAME_INCOME_EQUIVALISATION, + materialized[UK_LCFS_FRAME_INCOME_EQUIVALISATION], + ) + fifths = frame_income_quintiles( + recipient[UK_LCFS_FRAME_INCOME].to_numpy(dtype=float), scale, weights + ) + household = frame.table("household") + has_vehicle = (_numeric(household["num_vehicles"]) > 0).to_numpy() + vehicles = np.where( + has_vehicle, + np.maximum(vehicle_count(household["num_vehicles"]).to_numpy(), 1), + 0, + ) + share, share_receipt = zero_emission_share_by_household( + 1.0 - float(rate), risks, fifths, vehicles=vehicles, weights=weights + ) + return ZeroEmissionGradient( + share, + { + "rule": UK_LCFS_ICE_SHARE_BY_INCOME_RULE, + "nts": risks_receipt, + **share_receipt, + }, + fifths=np.asarray(fifths), + ) + + +def lcfs_car_attributes( + stage: SourceStageSpec, + *, + frame: Frame, + gradient: ZeroEmissionGradient | None, + has_fuel: Sequence[bool], + weights: Sequence[float], + cars: pd.DataFrame | None, +) -> CarAttributes | None: + """Apply the declared ``assign_car_attributes_from_nts`` step (none if undeclared). + + It reads the fuel flag's income fifths and per-car zero-emission shares, + so it needs the flag's income gradient (microcosm#1095 B3, VED). + """ + + parameters = car_attributes_operation(stage) + if parameters is None: + return None + _nts_cars_declaration(parameters, operation=ASSIGN_CAR_ATTRIBUTES_KIND) + if gradient is None or gradient.fifths is None or cars is None: + raise ValueError( + f"{ASSIGN_CAR_ATTRIBUTES_KIND} reads the fuel flag's " + f"{UK_LCFS_ICE_SHARE_BY_INCOME_RULE} fifths and the NTS cars." + ) + household = frame.table("household") + return assign_car_attributes( + person=frame.table("person"), + household_ids=household["household_id"].to_numpy(), + vehicles=vehicle_count(household["num_vehicles"]).to_numpy(), + weights=weights, + has_fuel=np.asarray(has_fuel, dtype=bool), + fifths=gradient.fifths, + zero_emission_share=gradient.share, + cars=cars, + parameters=parameters, + ) + + def recipient_predictors(frame: Frame, engine: object) -> pd.DataFrame: """Materialize LCFS recipient predictors at household grain. diff --git a/packages/microcosm-build/src/microcosm/build/uk_runtime/nts_car_attributes.py b/packages/microcosm-build/src/microcosm/build/uk_runtime/nts_car_attributes.py new file mode 100644 index 0000000000..cf3fd575ed --- /dev/null +++ b/packages/microcosm-build/src/microcosm/build/uk_runtime/nts_car_attributes.py @@ -0,0 +1,417 @@ +"""policyengine-uk's vehicle excise duty inputs for households' own cars (microcosm#1095 B3, VED). + +policyengine-uk charges vehicle excise duty on one car a person +(``car_vehicle_excise_duty``) from inputs no earlier stage wrote, so every +household paid none. The ``lcfs_consumption`` stage's declared +``assign_car_attributes_from_nts`` step writes five of them from the cars NTS +households keep (UKDS SN 5340, the cars of ``UK_NTS_CARS``): + +- **Which cars.** A household's vehicles less the company cars its members + hold (``company_car_list_price`` above zero: an employer pays their duty), + one to each adult who holds no company car, oldest first. policyengine-uk + holds one car a person, so a car beyond the household's adults is left out + and counted. +- **Which fuel.** A household the fuel flag leaves without road fuel keeps + zero-emission cars only. One that buys fuel holds a petrol, diesel or other + car first, and each further car is zero-emission at the household's own + per-car share (the fuel flag's), against uniforms keyed on the household + and the car's place. +- **Which car.** Each car is a kept NTS car of its class (zero-emission or + not) in the household's income fifth, drawn by a keyed uniform at its + interview weight scaled to its fifth and age band's kept cars (fewer of + the newest and oldest carry the registration record the CO2 bands come + from): its propulsion, CO2 bands, engine size and age. +- **The inputs.** Fuel: petrol as recorded; a diesel meets RDE2 if registered + from 2021, when every new diesel did; another propulsion is an alternative + fuel and a zero-emission car electric. CO2: the midpoint of the car's band + on the scale its duty regime reads, inside the engine's thresholds (the + first-year bands from April 2017, Table A to M before). First registration: + the declared reference date less the car's age, drawn uniformly within its + NTS band, so each car keeps its age. Engine size as recorded, or the + declared default where it is not; none for a zero-emission car. + ``car_is_ved_exempt``: a member with DLA's higher-rate or PIP's enhanced + mobility component exempts their own car or, holding none, the oldest + car-holder's in their benefit unit. The list price keeps the engine's + default, so no car pays the expensive-car supplement. +""" + +from __future__ import annotations + +from collections.abc import Mapping, Sequence +from dataclasses import dataclass +from datetime import date, timedelta +from typing import Any + +import numpy as np +import pandas as pd + +from microcosm.build.stochastic_assignment import stable_identity_uniforms +from microcosm.build.uk_runtime.receipt_counts import rounded_count, support_band + +ASSIGN_CAR_ATTRIBUTES_KIND = "assign_car_attributes_from_nts" +#: The policyengine-uk person inputs the step writes; ``car_list_price`` keeps +#: the engine's default. +UK_CAR_INPUT_COLUMNS = ( + "car_fuel_type", + "car_co2_emissions", + "car_engine_size", + "car_first_registration_date", + "car_is_ved_exempt", +) +#: The engine's defaults, which a person without a car keeps. +UK_CAR_INPUT_DEFAULTS: dict[str, Any] = { + "car_fuel_type": "PETROL", + "car_co2_emissions": 0.0, + "car_engine_size": 0.0, + "car_first_registration_date": "9999-01-01", + "car_is_ved_exempt": False, +} +#: The NTS vehicle tab's columns the step reads beside the J2 and K ones. +UK_NTS_CAR_ATTRIBUTE_COLUMNS = ("vehco2tax2008_b01id", "enginecap", "vehage_b01id") +#: The midpoint of each ``VehCO2Bands_B01ID`` band (g/km), inside the engine's +#: first-year thresholds, which are right-inclusive: 0, 1-50, 51-75, 76-90, +#: 91-100, 101-110, 111-130, 131-150, 151-170, 171-190, 191-225, 226-255, over 255. +UK_FIRST_YEAR_CO2_MIDPOINTS = { + 1: 0.0, + 2: 25.0, + 3: 63.0, + 4: 83.0, + 5: 96.0, + 6: 106.0, + 7: 121.0, + 8: 141.0, + 9: 161.0, + 10: 181.0, + 11: 208.0, + 12: 241.0, + 13: 270.0, +} +#: The midpoint of each ``VehCO2Tax2008_B01ID`` band A to M (g/km), inside the +#: engine's graduated thresholds: up to 100, 101-110, 111-120, 121-130, +#: 131-140, 141-150, 151-165, 166-175, 176-185, 186-200, 201-225, 226-255, over 255. +UK_GRADUATED_CO2_MIDPOINTS = { + 1: 50.0, + 2: 106.0, + 3: 116.0, + 4: 126.0, + 5: 136.0, + 6: 146.0, + 7: 158.0, + 8: 171.0, + 9: 181.0, + 10: 193.0, + 11: 213.0, + 12: 241.0, + 13: 270.0, +} +#: ``VehAge_B01ID`` bands in years at the interview, the open top band closed +#: at the declared ``oldest_age_years``. +UK_NTS_AGE_BANDS_YEARS = { + 1: (0.0, 0.5), + 2: (0.5, 1.0), + 3: (1.0, 1.5), + 4: (1.5, 2.0), + 5: (2.0, 3.0), + 6: (3.0, 4.0), + 7: (4.0, 5.0), + 8: (5.0, 6.0), + 9: (6.0, 7.0), + 10: (7.0, 8.0), + 11: (8.0, 10.0), + 12: (10.0, 13.0), + 13: (13.0, 18.0), + 14: (18.0, None), +} +#: The duty regimes' first registration dates (policyengine-uk's own parameters). +UK_VED_MODERN_START = date(2017, 4, 1) +UK_VED_GRADUATED_START = date(2001, 3, 1) +#: Every new diesel has met RDE2 since January 2021 (as the company car stage). +UK_DIESEL_RDE2_FROM = date(2021, 1, 1) +UK_DRIVING_AGE = 17 +#: The mobility components that exempt a vehicle from the duty. +UK_VED_EXEMPT_MOBILITY = {"dla_m_category": "HIGHER", "pip_m_category": "ENHANCED"} +ZERO_EMISSION = "zero_emission" +FUEL_BURNING = "fuel_burning" + + +@dataclass(frozen=True) +class CarAttributes: + """The person inputs, one row a person in the person table's order, and the receipt.""" + + person: pd.DataFrame + receipt: Mapping[str, Any] + + +def car_attributes_operation(stage: Any) -> Mapping[str, Any] | None: + """The stage's declared ``assign_car_attributes_from_nts`` parameters, if any.""" + + for operation in stage.operations: + if operation.kind == ASSIGN_CAR_ATTRIBUTES_KIND: + return {"kind": operation.kind, **operation.parameters} + return None + + +def _donor_pools( + cars: pd.DataFrame, +) -> tuple[dict[tuple[int, str], pd.DataFrame], float]: + """The kept, linked NTS cars by income fifth and class, and their linked share. + + A car's CO2 bands come from its registration record, which fewer of the + newest and oldest cars carry, so each linked car stands for the kept cars + of its fifth and age band: its interview weight is scaled by the band's + kept cars over its linked ones. + """ + + def number(column: str) -> pd.Series: + return pd.to_numeric(cars[column], errors="coerce") + + band = number("vehco2bands_b01id") + graduated = number("vehco2tax2008_b01id") + age = number("vehage_b01id") + fuel = number("vehproptypets_b01id") + fifth = number("hhincqisengts_b01id") + weight = number("w3") + kept = ( + (number("carown_b01id") == 1) + & age.isin(UK_NTS_AGE_BANDS_YEARS) + & fifth.isin((1, 2, 3, 4, 5)) + ) + usable = ( + kept + & band.isin(UK_FIRST_YEAR_CO2_MIDPOINTS) + & graduated.isin(UK_GRADUATED_CO2_MIDPOINTS) + & fuel.isin((1, 2, 3)) + ) + kept_mass = weight[kept].groupby([fifth[kept], age[kept]]).sum() + linked_mass = weight[usable].groupby([fifth[usable], age[usable]]).sum() + unlinked = kept_mass.index.difference(linked_mass.index) + if len(unlinked): + q, a = unlinked[0] + raise ValueError( + f"The NTS kept cars of fifth {int(q)} and age band {int(a)} hold no " + "car with CO2 bands." + ) + cell = pd.MultiIndex.from_arrays([fifth[usable], age[usable]]) + donors = pd.DataFrame( + { + "fifth": fifth[usable].astype(int), + "zero_emission": band[usable] == 1, + "band": band[usable].astype(int), + "graduated": graduated[usable].astype(int), + "age": age[usable].astype(int), + "fuel": fuel[usable].astype(int), + "engine": number("enginecap")[usable], + "weight": weight[usable] + * (kept_mass / linked_mass).reindex(cell).to_numpy(), + } + ).reset_index(drop=True) + pools = {} + for (q, zero), group in donors.groupby(["fifth", "zero_emission"]): + group = group.reset_index(drop=True) + cumulative = group["weight"].cumsum().to_numpy(dtype=float) + group["cumulative"] = cumulative / cumulative[-1] + pools[(int(q), ZERO_EMISSION if zero else FUEL_BURNING)] = group + for q in (1, 2, 3, 4, 5): + for kind in (ZERO_EMISSION, FUEL_BURNING): + if (q, kind) not in pools: + raise ValueError(f"The NTS kept cars hold no {kind} car in fifth {q}.") + return pools, float(linked_mass.sum() / kept_mass.sum()) + + +def _weighted_pick(pool: pd.DataFrame, uniform: float) -> pd.Series: + """The pool's car at ``uniform`` on its cumulative interview weight.""" + + index = int(np.searchsorted(pool["cumulative"].to_numpy(), uniform, side="right")) + return pool.iloc[min(index, len(pool) - 1)] + + +def _co2(registration: date, car: pd.Series, *, zero_emission: bool) -> float: + if zero_emission: + return 0.0 + if registration >= UK_VED_MODERN_START: + return UK_FIRST_YEAR_CO2_MIDPOINTS[int(car["band"])] + return UK_GRADUATED_CO2_MIDPOINTS[int(car["graduated"])] + + +def _fuel_type(registration: date, car: pd.Series, *, zero_emission: bool) -> str: + if zero_emission: + return "ELECTRIC" + if int(car["fuel"]) == 1: + return "PETROL" + if int(car["fuel"]) == 2: + return ( + "DIESEL_RDE2" if registration >= UK_DIESEL_RDE2_FROM else "DIESEL_NON_RDE2" + ) + return "ALTERNATIVE_FUEL" + + +def assign_car_attributes( + *, + person: pd.DataFrame, + household_ids: Sequence[object], + vehicles: Sequence[float], + weights: Sequence[float], + has_fuel: Sequence[bool], + fifths: Sequence[int], + zero_emission_share: Sequence[float], + cars: pd.DataFrame, + parameters: Mapping[str, Any], +) -> CarAttributes: + """Give each household's own cars policyengine-uk's duty inputs (module docstring). + + ``household_ids``, ``vehicles``, ``weights``, ``has_fuel``, ``fifths`` and + ``zero_emission_share`` are one entry per household; ``person`` carries + ``person_id``, ``person_household_id``, ``person_benunit_id``, ``age``, + ``company_car_list_price`` and the two mobility categories. + """ + + seed = int(parameters["seed"]) + salt = str(parameters["salt"]) + reference = date.fromisoformat(str(parameters["reference_date"])) + oldest = float(parameters["oldest_age_years"]) + default_engine = float(parameters["default_engine_size_cc"]) + pools, linked_share = _donor_pools(cars) + ids = np.asarray(household_ids) + index = {household: position for position, household in enumerate(ids)} + member = person["person_household_id"].map(index) + if member.isna().any(): + raise ValueError("Every person must belong to a frame household.") + company = ( + pd.to_numeric(person["company_car_list_price"], errors="coerce") + .fillna(0.0) + .to_numpy() + > 0 + if "company_car_list_price" in person + else np.zeros(len(person), dtype=bool) + ) + age = pd.to_numeric(person["age"], errors="coerce").to_numpy(dtype=float) + adults = (age >= UK_DRIVING_AGE) & ~company + count = np.rint(np.asarray(vehicles, dtype=float)).clip(min=0) + company_cars = pd.Series(company.astype(float)).groupby(member.to_numpy()).sum() + weight = np.asarray(weights, dtype=float) + out = { + column: [value] * len(person) for column, value in UK_CAR_INPUT_DEFAULTS.items() + } + holder = np.zeros(len(person), dtype=bool) + tally = {"cars": 0.0, "assigned": 0.0, "dropped": 0.0, "company": 0.0} + fuel_mass: dict[str, float] = {} + regime_mass = {"modern": 0.0, "graduated": 0.0, "engine_size": 0.0} + order = np.lexsort((person["person_id"].to_numpy(), -age)) + by_household = pd.Series(order).groupby(member.to_numpy()[order]) + for position, rows in by_household: + position = int(position) + rows = rows.to_numpy() + own = max(count[position] - company_cars.get(position, 0.0), 0.0) + w = weight[position] + tally["company"] += w * min(company_cars.get(position, 0.0), count[position]) + tally["cars"] += w * own + eligible = [row for row in rows if adults[row]] + assigned = int(min(own, len(eligible))) + tally["assigned"] += w * assigned + tally["dropped"] += w * (own - assigned) + household = ids[position] + for place in range(assigned): + key = f"{household}:{place}" + if not has_fuel[position]: + kind = ZERO_EMISSION + elif place == 0: + kind = FUEL_BURNING + else: + (u,) = stable_identity_uniforms([key], seed=seed, salt=f"{salt}:class") + kind = ( + ZERO_EMISSION if u < zero_emission_share[position] else FUEL_BURNING + ) + (u_car,) = stable_identity_uniforms([key], seed=seed, salt=f"{salt}:car") + car = _weighted_pick(pools[(int(fifths[position]), kind)], u_car) + low, high = UK_NTS_AGE_BANDS_YEARS[int(car["age"])] + high = oldest if high is None else high + (u_age,) = stable_identity_uniforms([key], seed=seed, salt=f"{salt}:age") + registration = reference - timedelta( + days=round((low + u_age * (high - low)) * 365.25) + ) + zero = kind == ZERO_EMISSION + row = eligible[place] + holder[row] = True + fuel = _fuel_type(registration, car, zero_emission=zero) + out["car_fuel_type"][row] = fuel + out["car_co2_emissions"][row] = _co2(registration, car, zero_emission=zero) + if not zero: + engine = car["engine"] + out["car_engine_size"][row] = ( + float(engine) if engine > 0 else default_engine + ) + out["car_first_registration_date"][row] = registration.isoformat() + fuel_mass[fuel] = fuel_mass.get(fuel, 0.0) + w + regime = ( + "modern" + if registration >= UK_VED_MODERN_START + else ( + "graduated" + if registration >= UK_VED_GRADUATED_START + else "engine_size" + ) + ) + regime_mass[regime] += w + exempt = _exemptions(person, holder, order=order) + out["car_is_ved_exempt"] = list(exempt) + frame = pd.DataFrame(out, index=person.index) + person_weight = weight[member.to_numpy(dtype=int)] + assigned_mass = tally["assigned"] + receipt = { + "operation": ASSIGN_CAR_ATTRIBUTES_KIND, + "reference_date": reference.isoformat(), + "weighted_own_cars": tally["cars"], + "assigned_share_of_own_cars": assigned_mass / tally["cars"] + if tally["cars"] + else None, + "dropped_share_of_own_cars": tally["dropped"] / tally["cars"] + if tally["cars"] + else None, + "weighted_company_cars_left_out": tally["company"], + "fuel_type_shares": { + fuel: mass / assigned_mass for fuel, mass in sorted(fuel_mass.items()) + } + if assigned_mass + else {}, + "duty_regime_shares": { + regime: mass / assigned_mass for regime, mass in regime_mass.items() + } + if assigned_mass + else {}, + "exempt_share_of_assigned_cars": ( + float(person_weight[exempt].sum() / assigned_mass) + if assigned_mass + else None + ), + "linked_share_of_kept_cars": linked_share, + "donors": { + f"{q}:{kind}": support_band(len(pool)) + for (q, kind), pool in sorted(pools.items()) + }, + "donor_cars": rounded_count(sum(len(pool) for pool in pools.values())), + } + return CarAttributes(frame, receipt) + + +def _exemptions( + person: pd.DataFrame, holder: np.ndarray, *, order: np.ndarray +) -> np.ndarray: + """One exempt car for each member with an exempting mobility component. + + Their own car where they hold one; otherwise the oldest car-holder's in + their benefit unit who is not exempt already. + """ + + qualifies = np.zeros(len(person), dtype=bool) + for column, value in UK_VED_EXEMPT_MOBILITY.items(): + if column in person: + qualifies |= person[column].astype(str).to_numpy() == value + exempt = holder & qualifies + benunit = person["person_benunit_id"].to_numpy() + rank = np.empty(len(person), dtype=int) + rank[order] = np.arange(len(person)) + for row in np.flatnonzero(qualifies & ~holder): + candidates = np.flatnonzero((benunit == benunit[row]) & holder & ~exempt) + if len(candidates): + exempt[candidates[np.argmin(rank[candidates])]] = True + return exempt diff --git a/packages/microcosm-build/src/microcosm/build/uk_runtime/property_localisation.py b/packages/microcosm-build/src/microcosm/build/uk_runtime/property_localisation.py index f9528875ff..17b61ca850 100644 --- a/packages/microcosm-build/src/microcosm/build/uk_runtime/property_localisation.py +++ b/packages/microcosm-build/src/microcosm/build/uk_runtime/property_localisation.py @@ -14,8 +14,11 @@ Non-owner rows and rows outside England and Wales keep their value. - ``uk.full.property.band`` draws the clone's band from its assigned LSOA's VOA band mix (``uk/voa_council_tax_band_mix_lsoa.json``) at the same - uniform, so value and band agree by construction. Rows outside England and - Wales keep their band. + uniform, so value and band agree by construction. A Scottish owner clone + draws from its council area's chargeable dwellings by band, A to H, at + September 2025 (``uk/scotgov_chargeable_dwellings_by_band.json``, vendored + from Chronicle) at the same uniform, its rank among Scotland's owners + (microcosm#1095 B12). Northern Ireland's rows keep their band. Everything here is pure: the kernels in ``graph_population`` hand these functions arrays and resources and write the results back. @@ -49,11 +52,15 @@ "PROPERTY_LOCALISATION_MODES", "PROPERTY_STREAM_EXPERIMENT", "RANK_BASIS_COLUMN", + "SCOTLAND_BAND_MIX_RESOURCE", + "SCOTLAND_BAND_MIX_SOURCE", + "SCOTLAND_BAND_PERIOD", "SUPPORT_STRATUM_LOWER", "QUANTILES_SOURCE", "BandMix", "ValueKnots", "load_band_mix", + "load_scotland_band_mix", "load_value_knots", "localise_bands", "localise_values", @@ -64,6 +71,13 @@ QUANTILES_SOURCE = "uk_price_paid_quantiles" BAND_MIX_SOURCE = "uk_voa_band_mix" +#: The Scottish Government's chargeable dwellings by council-tax band per +#: council area (CTAXBASE), vendored from Chronicle (microcosm#1095 B12). +SCOTLAND_BAND_MIX_SOURCE = "uk_scotgov_band_mix" +SCOTLAND_BAND_MIX_RESOURCE = "scotgov_chargeable_dwellings_by_band.json" +SCOTLAND_BAND_PERIOD = "2025-09" +_SCOTLAND_BAND_CONCEPT = "scotgov.chargeable_dwellings_band_" +_SCOTTISH_COUNCIL_AREA_PREFIX = "S12" PROPERTY_LOCALISATION_MODES: tuple[str, ...] = ("none", "price_paid") PROPERTY_STREAM_EXPERIMENT = "uk-post-clone-property-localisation-v1" METHOD_VERSION = "uk-property-localisation-v1" @@ -169,6 +183,67 @@ def load_band_mix(payload: bytes) -> BandMix: ) +def load_scotland_band_mix(payload: bytes) -> BandMix: + """Per-council-area cumulative band shares from the vendored CTAXBASE rows. + + Scotland's bands run A to H, so a council area's share of band I is zero + and its cumulative shares reach one at H. Every council area must carry + every band once, at ``SCOTLAND_BAND_PERIOD``. + """ + data = json.loads(payload.decode("utf-8")) + if ( + data.get("kind") != "uk_vendored_ledger_facts" + or data.get("resource") != SCOTLAND_BAND_MIX_RESOURCE + ): + raise ValueError( + "The Scottish band mix resource is not the vendored CTAXBASE facts." + ) + scottish_bands = COUNCIL_TAX_BANDS[:-1] + counts: dict[str, dict[str, float]] = {} + for row in data.get("rows") or (): + concept = str(row.get("concept") or "") + geography = row.get("geography") or {} + period = row.get("period") or {} + if ( + not concept.startswith(_SCOTLAND_BAND_CONCEPT) + or geography.get("level") != "local_authority" + or str(period.get("value")) != SCOTLAND_BAND_PERIOD + ): + continue + band = concept[len(_SCOTLAND_BAND_CONCEPT) :].upper() + if band not in scottish_bands: + raise ValueError(f"Unknown Scottish council-tax band {band!r}.") + cells = counts.setdefault(str(geography.get("id")), {}) + if band in cells: + raise ValueError(f"Council area {geography.get('id')} repeats band {band}.") + value = float(row["value"]) + if not np.isfinite(value) or value < 0: + raise ValueError( + f"Council area {geography.get('id')} has a bad band count." + ) + cells[band] = value + cumulative: dict[str, np.ndarray] = {} + for code, cells in sorted(counts.items()): + if set(cells) != set(scottish_bands): + raise ValueError( + f"Council area {code} lacks bands {sorted(set(scottish_bands) - set(cells))}." + ) + values = np.asarray([cells[band] for band in scottish_bands], dtype=float) + if not values.sum() > 0: + raise ValueError(f"Council area {code} has no chargeable dwellings.") + shares = np.cumsum(values) / values.sum() + shares[-1] = 1.0 + cumulative[code] = np.append(shares, 1.0) + if not cumulative: + raise ValueError("The Scottish band mix resource carries no council areas.") + feed = data.get("source_fact_feed") or {} + return BandMix( + cumulative=cumulative, + source_sha256=str(feed.get("facts_sha256") or ""), + as_at=SCOTLAND_BAND_PERIOD, + ) + + # ---------------------------------------------------------------------------- # Keys and uniforms @@ -418,12 +493,17 @@ def localise_bands( band: np.ndarray, tenure_type: np.ndarray, mix: BandMix, + scotland_mix: BandMix | None = None, + local_authority_code: np.ndarray | None = None, ) -> tuple[np.ndarray, dict[str, object]]: - """Draw each England-and-Wales owner's band from its LSOA's cumulative shares at ``u``. - - Renters keep the spine's band: the VOA mix counts every dwelling in the - LSOA, and drawing a social tenant from it would hand the owners' share of - the high bands to households the value node leaves untouched. + """Draw each England-and-Wales owner's band from its LSOA's cumulative shares at + ``u``, and with ``scotland_mix`` each Scottish owner's from its council area's + (microcosm#1095 B12). + + Renters keep the spine's band: the VOA and CTAXBASE mixes count every + dwelling, and drawing a social tenant from them would hand the owners' share + of the high bands to households the value node leaves untouched. Without + ``scotland_mix`` Scotland keeps its bands, as Northern Ireland always does. """ u = np.asarray(u, dtype=float) codes = np.asarray(lsoa_code).astype(str) @@ -435,18 +515,29 @@ def localise_bands( if missing: raise ValueError(f"No VOA band mix for LSOA {missing[:5]}.") new_band = current.copy() - for code in sorted(set(codes[target])): - rows = np.flatnonzero(target & (codes == code)) - cumulative = mix.cumulative[code] - index = np.searchsorted(cumulative, u[rows], side="right") - index = np.minimum(index, len(COUNCIL_TAX_BANDS) - 1) - new_band[rows] = np.asarray(COUNCIL_TAX_BANDS, dtype=object)[index] + _draw_bands(new_band, target, codes, mix, u) + scotland = np.zeros(len(current), dtype=bool) + areas = np.full(len(current), "", dtype=object) + if scotland_mix is not None: + if local_authority_code is None: + raise ValueError("A Scottish band mix needs the rows' council areas.") + areas = np.asarray(local_authority_code).astype(str) + scotland = ( + np.char.startswith(areas, _SCOTTISH_COUNCIL_AREA_PREFIX) & ~england_wales + ) + missing = sorted(set(areas[scotland & owner]) - set(scotland_mix.cumulative)) + if missing: + raise ValueError(f"No Scottish band mix for council area {missing[:5]}.") + _draw_bands(new_band, scotland & owner, areas, scotland_mix, u) + scottish_owner = scotland & owner changed = target & (new_band != current) receipt = { "rows": int(len(current)), "rows_rewritten": int(target.sum()), "rows_changed": int(changed.sum()), - "rows_untouched_outside_england_wales": int((~england_wales).sum()), + "rows_untouched_outside_england_wales": int( + (~england_wales & ~scottish_owner).sum() + ), "rows_untouched_renters_england_wales": int((england_wales & ~owner).sum()), "lsoas": int(len(set(codes[target]))), "band_mix_before": { @@ -458,9 +549,38 @@ def localise_bands( "voa_as_at": mix.as_at, "method": METHOD_VERSION, } + if scotland_mix is not None: + receipt["scotland"] = { + "rows_rewritten": int(scottish_owner.sum()), + "rows_changed": int((scottish_owner & (new_band != current)).sum()), + "rows_untouched_renters": int((scotland & ~owner).sum()), + "council_areas": int(len(set(areas[scottish_owner]))), + "band_mix_before": { + b: int((current[scottish_owner] == b).sum()) for b in COUNCIL_TAX_BANDS + }, + "band_mix_after": { + b: int((new_band[scottish_owner] == b).sum()) for b in COUNCIL_TAX_BANDS + }, + "as_at": scotland_mix.as_at, + } return new_band, receipt +def _draw_bands( + new_band: np.ndarray, + target: np.ndarray, + codes: np.ndarray, + mix: BandMix, + u: np.ndarray, +) -> None: + """Write each target row's band from its area's cumulative shares at ``u``.""" + for code in sorted(set(codes[target])): + rows = np.flatnonzero(target & (codes == code)) + index = np.searchsorted(mix.cumulative[code], u[rows], side="right") + index = np.minimum(index, len(COUNCIL_TAX_BANDS) - 1) + new_band[rows] = np.asarray(COUNCIL_TAX_BANDS, dtype=object)[index] + + def monotone_violations(u: np.ndarray, band: np.ndarray, lsoa_code: np.ndarray) -> int: """Count LSOAs where a higher uniform drew a lower band (expected zero).""" frame = pd.DataFrame( diff --git a/packages/microcosm-build/src/microcosm/build/uk_runtime/property_purchases.py b/packages/microcosm-build/src/microcosm/build/uk_runtime/property_purchases.py index 0de65a8446..895e6bb68a 100644 --- a/packages/microcosm-build/src/microcosm/build/uk_runtime/property_purchases.py +++ b/packages/microcosm-build/src/microcosm/build/uk_runtime/property_purchases.py @@ -33,20 +33,32 @@ vendored from the pinned Chronicle feed (``hmrc_stamp_tax_facts.json``): * additional dwellings: Table 6b's higher-rates (HRAD) transactions and value - for 2024-25, which cover every buyer, allocated to households by - individuals' shares of Table 8a's residential transactions and value (what - other buyers would take is companies'); the price bands are Table 6b's, with - the five above GBP 2m combined, as uk-data#573 does; + for 2024-25, which cover every buyer, allocated to households band by band. + At or below GBP 250,000, the residential nil-rate band for all of 2024-25, a + purchase owes standard-rate SDLT of nil, so other buyers' Table 8a receipts + there are surcharge: their HRAD transactions and value are those receipts + over Table 6b's gross HRAD receipts per transaction and per pound of value, + and households take the rest of the band. Table 8a does not split out the 2% + non-resident surcharge, which a non-resident buyer pays on top in the band; + read as HRAD surcharge, it raises other buyers' implied HRAD and lowers + households', so households' purchases there are, if anything, understated. + Above GBP 250,000, households take individuals' shares of all Table 8a + residential transactions and value (what other buyers would take is + companies'), as uk-data#573 does. The price bands are Table 6b's, with the + five above GBP 2m combined, as uk-data#573 does, at the households' counts + and values; * non-residential: Table 8b's individuals for 2024-25, and its six bands. -Households' HRAD is not published, so the allocation by individuals' shares -of all Table 8a residential transactions is an assumption, as uk-data#573 -says, not an observed household series. uk-data#573 gives the household -lower bounds Tables 6b and 8a imply, 87,200 transactions and GBP 33.28bn; -the allocation probably overstates households' purchases, since nearly all -receipts at or below the GBP 250,000 nil-rate band are surcharge, and other -buyers' receipts there imply more higher-rates transactions than their share -of all transactions gives them. +Households' HRAD is not published, so the allocation is an assumption, not an +observed household series. Allocating every band by individuals' shares of all +Table 8a transactions, as uk-data#573 does, left other buyers about 13,400 of +the nil-rate band's HRAD transactions, where their receipts imply about 48,000, +so it overstated households' purchases there (microcosm#1095). Above the band +the standard rates make up most receipts, and solving for other buyers' HRAD +from them gives negative values above GBP 1m, so the shares remain there and +probably still overstate households' purchases. uk-data#573 gives the +household lower bounds Tables 6b and 8a imply, 87,200 transactions and +GBP 33.28bn. The stage fits transactions and value only. Households' SDLT is fitted at build level through ``obr.sdlt``; uk-data#573 also holds its file's @@ -156,6 +168,9 @@ "over_gbp_10m", ) _TOTAL_BAND = "all_price_bands" +#: The band in which the 2024-25 residential nil-rate band (GBP 250,000 all +#: year) charges no standard-rate SDLT, so other buyers' receipts are surcharge. +_NIL_RATE_BAND = "gbp_250k_or_less" _BAND_ORDER = ( "gbp_250k_or_less", "gbp_250k_to_500k", @@ -440,13 +455,60 @@ def property_purchase_targets_from_rows( )[_TOTAL_BAND] count_share = individuals_count / (individuals_count + other_count) value_share = individuals_value / (individuals_value + other_value) - band_ids, band_counts, band_values = _bands( + # At or below the nil-rate band other buyers' receipts are surcharge, so + # Table 6b's gross receipts per transaction and per pound turn them into + # other buyers' HRAD there; households take the rest of the band. + hrad_receipts = _cells( + rows, record_set=_HRAD_RECORD_SET, concept="hmrc.sdlt.hrad_receipts_gross" + ) + other_nil_receipts = _cells( + rows, + record_set=_RESIDENTIAL_OTHER_BUYERS_RECORD_SET, + concept="hmrc.sdlt.receipts", + )[_NIL_RATE_BAND] + other_nil_count = _cells( + rows, + record_set=_RESIDENTIAL_OTHER_BUYERS_RECORD_SET, + concept="hmrc.sdlt.transactions", + )[_NIL_RATE_BAND] + nil_count = hrad_count[_NIL_RATE_BAND] + nil_value = hrad_value[_NIL_RATE_BAND] + nil_receipts = hrad_receipts[_NIL_RATE_BAND] + if not nil_receipts > 0: + raise ValueError("Table 6b carries no nil-rate band HRAD receipts.") + other_nil_hrad_count = other_nil_receipts * nil_count / nil_receipts + other_nil_hrad_value = other_nil_receipts * nil_value / nil_receipts + if not ( + 0.0 < other_nil_hrad_count <= min(nil_count, other_nil_count) + and 0.0 < other_nil_hrad_value < nil_value + ): + raise ValueError( + "Other buyers' nil-rate band receipts imply HRAD outside Table 6b's " + "band or their own transactions." + ) + band_ids, all_buyer_counts, all_buyer_values = _bands( hrad_count, hrad_value, combine=_HRAD_TOP_BANDS ) + band_counts = tuple( + nil_count - other_nil_hrad_count + if band == _NIL_RATE_BAND + else count * count_share + for band, count in zip(band_ids, all_buyer_counts, strict=True) + ) + band_values = tuple( + nil_value - other_nil_hrad_value + if band == _NIL_RATE_BAND + else value * value_share + for band, value in zip(band_ids, all_buyer_values, strict=True) + ) additional = UKPropertyPurchaseTarget( property_type="additional_residential", - transactions=hrad_count[_TOTAL_BAND] * count_share, - value=hrad_value[_TOTAL_BAND] * value_share, + transactions=(hrad_count[_TOTAL_BAND] - nil_count) * count_share + + nil_count + - other_nil_hrad_count, + value=(hrad_value[_TOTAL_BAND] - nil_value) * value_share + + nil_value + - other_nil_hrad_value, band_ids=band_ids, band_transactions=band_counts, band_values=band_values, @@ -482,6 +544,16 @@ def property_purchase_targets_from_rows( "hrad_property_value_all_buyers": hrad_value[_TOTAL_BAND], "residential_individuals_transaction_share": count_share, "residential_individuals_value_share": value_share, + "nil_band_hrad_receipts_gross": nil_receipts, + "nil_band_other_buyers_receipts": other_nil_receipts, + "nil_band_other_buyers_hrad_transactions": other_nil_hrad_count, + "nil_band_other_buyers_hrad_value": other_nil_hrad_value, + "nil_band_other_buyers_hrad_transaction_share": ( + other_nil_hrad_count / other_nil_count + ), + "nil_band_households_hrad_transaction_share": ( + 1.0 - other_nil_hrad_count / nil_count + ), }, ) @@ -773,9 +845,13 @@ def property_purchases_operation_parameters() -> tuple[ for kind in PROPERTY_PURCHASE_KINDS }, "additional_residential_targets": ( - "Table 6b HRAD transactions and value, 2024-25, times " - "individuals' shares of Table 8a residential transactions and " - "value; Table 6b bands with the five above GBP 2m combined" + "Table 6b HRAD transactions and value, 2024-25: at or below " + "GBP 250,000, the band less other buyers' HRAD, their Table 8a " + "receipts over Table 6b's gross HRAD receipts per transaction " + "and per pound; above it, times individuals' shares of Table " + "8a residential transactions and value; Table 6b bands with " + "the five above GBP 2m combined, at the households' counts " + "and values" ), "non_residential_targets": ( "Table 8b individuals' transactions, value and bands, 2024-25" diff --git a/packages/microcosm-build/src/microcosm/build/uk_runtime/spi_benefit_coherence.py b/packages/microcosm-build/src/microcosm/build/uk_runtime/spi_benefit_coherence.py index f9f22b7dc2..9a7fb47d10 100644 --- a/packages/microcosm-build/src/microcosm/build/uk_runtime/spi_benefit_coherence.py +++ b/packages/microcosm-build/src/microcosm/build/uk_runtime/spi_benefit_coherence.py @@ -20,9 +20,9 @@ - it zeroes the reports whose award needs an existing legacy claim, an out-of-work test, or a claim the copied household's new incomes cannot - support: contributory and income-based JSA, income-related ESA, Income - Support, Working and Child Tax Credit, Severe Disablement Allowance and the - Sure Start Maternity Grant. policyengine-uk pays income-related ESA as + support: income-based JSA, income-related ESA, Income Support, Working and + Child Tax Credit, Severe Disablement Allowance and the Sure Start Maternity + Grant. policyengine-uk pays income-related ESA as reported behind a capital test alone, so a kept draw paid the twin's award whatever the copy's new incomes: on the microcosm#1095 arm A8 spine the SPI rows held 29% of the income-related ESA reporters at design weights, and @@ -30,6 +30,21 @@ - it restores Industrial Injuries Disablement Benefit, the Armed Forces Compensation Scheme and bereavement support from the FRS twin, since they follow an injury, service or a death and not income; +- it gives contributory JSA and ESA the FRS twin's award where the copy's own + work stays within each benefit's limits, and none outside them (María's + ruling of 29 October 2026, microcosm#1095 B10). A contributory award + follows the person's National Insurance record and, for ESA, an incapacity + the copy keeps; what the copy changes is its work. ESA's is permitted work + (ESA Regs 2008 reg 45(4)): under 16 hours a week, and earnings up to + policyengine-uk's own ``esa_exempt_work_higher_earnings_limit`` at the + frame's year (GBP 183.50 a week in 2024-25). JSA's is its own (Jobseekers + Act 1995 ss. 1(2)(e), 2(1)(c) and 4(1)(b), Vahid's review of + microcosm#1426): under 16 hours a week (JSA Regs 1996 reg 51(1)(a)), + earnings no higher than the prescribed amount, the age-related amount plus + the earnings disregard less 1p (reg 56; GBP 95.49 a week from 25 in + 2024-25), and an award of at most the age-related amount less the earnings + above the disregard (reg 80), all read from policyengine-uk's parameters + at the frame's year. policyengine-uk pays both awards as reported; - it re-derives the disability flags from the final reports with the FRS stage's rule (the categories, which read only AA, DLA and PIP, are unchanged and asserted so); @@ -44,19 +59,29 @@ ``uc_capital_coherence`` has set the capital the engine assesses (microcosm#1334). -Contributory ESA, the disability benefits, Carer's Allowance, State Pension -and Winter Fuel Payment keep their draws, and FRS base rows are never -modified. Contributory ESA is not income-tested, and the incapacity it needs -follows the person, whose health and disability reports the SPI copy keeps; on -the A8 spine its SPI draw sits at half the FRS rate per working-age adult, and -9.9% of its SPI reporters by weight earn above the permitted-work limit -(uk-data#514 zeroes it on a build where 41% did). +The disability benefits, Carer's Allowance, State Pension and Winter Fuel +Payment keep their draws, and FRS base rows are never modified. Before B10, +contributory ESA kept its forest draw, which on the A8 spine sat at half the +FRS rate per working-age adult with 9.9% of its SPI reporters by weight earning +above the permitted-work limit (uk-data#514 zeroes it on a build where 41% +did), and contributory JSA was zeroed, two thirds of its SPI reporters on the +30 September build earning above the limit. B10 first gave contributory JSA +ESA's limit too, about twice JSA's own. The limits are tested on the copy's +gross earnings, its employment income plus any self-employment profit over 52 +weeks. The benefits' own tests read net earnings, but up to the limits pay and +profit sit under the personal allowance and the National Insurance +thresholds, so the two differ only by half of any pension contributions, +which the gross test leaves in. The SPI tape has no hours, so the copy keeps +its twin's usual hours (``hours_worked`` over 52 weeks), which the SPI pay +floor also reads as the copy's (uk-data#629), and the hours tests read them. +Neither award is reduced for the copy's pension payments. """ from __future__ import annotations from collections.abc import Mapping from dataclasses import dataclass, field +from importlib import metadata import numpy as np import pandas as pd @@ -87,6 +112,13 @@ uk_time_period, validate_uk_national_frame, ) +from microcosm.build.uk_runtime.receipt_counts import ( + UK_DISCLOSURE_FLOOR, + UK_WITHHELD, + distinct_count, + source_household_ids, + support_band, +) from microcosm.build.uk_runtime.spi_support import ( BASE_FRS_SUPPORT_CHANNEL, SPI_SYNTHETIC_SUPPORT_CHANNEL, @@ -106,10 +138,9 @@ SPI_BENEFIT_COHERENCE_STAGE_NAME = "spi_benefit_coherence" SPI_BENEFIT_COHERENCE_ROWS = "spi_synthetic_support_channel" #: Reports whose award needs an existing legacy claim, an out-of-work test, or -#: a claim the copied household's new incomes cannot carry. Contributory ESA, -#: open to new claims and not income-tested, keeps its draw (module docstring). +#: a claim the copied household's new incomes cannot carry. Contributory JSA +#: and ESA follow the twin under the permitted-work limit instead (below). SPI_ZEROED_REPORT_COLUMNS = ( - "jsa_contrib_reported", "jsa_income_reported", "esa_income_reported", "income_support_reported", @@ -132,6 +163,52 @@ "widowed_parents_allowance_reported", ) SPI_RESTORED_REPORT_REASON = "follows an injury, service or a death, not income" +#: Contributory awards the SPI row takes from the FRS twin where the copy's own +#: work stays within each benefit's limits, and none outside them (María's +#: ruling of 29 October 2026, microcosm#1095 B10; JSA's own limits from +#: Vahid's review of microcosm#1426). +SPI_JSA_CONTRIB_COLUMN = "jsa_contrib_reported" +SPI_ESA_CONTRIB_COLUMN = "esa_contrib_reported" +SPI_WITHIN_LIMIT_REPORT_COLUMNS = (SPI_JSA_CONTRIB_COLUMN, SPI_ESA_CONTRIB_COLUMN) +SPI_WITHIN_LIMIT_EARNINGS_COLUMNS = ("employment_income", "self_employment_income") +#: The twin's usual weekly hours, annualised at 52 weeks by the FRS spine +#: (uk-data#531), which the copy keeps and the SPI pay floor reads. +SPI_WITHIN_LIMIT_HOURS_COLUMN = "hours_worked" +SPI_WITHIN_LIMIT_WEEKS_IN_YEAR = 52 +SPI_WITHIN_LIMIT_EARNINGS = ( + "(employment_income + max(self_employment_income, 0)) / 52, the SPI row's own" +) +SPI_WITHIN_LIMIT_HOURS = ( + "hours_worked / 52, the twin's usual hours, which the SPI row keeps" +) +SPI_PERMITTED_WORK_LIMIT_VARIABLE = "esa_exempt_work_higher_earnings_limit" +#: JSA's age-related amount is its higher one from this age. +SPI_JSA_HIGHER_AMOUNT_FROM_AGE = 25 +SPI_PERMITTED_WORK_LIMIT = ( + f"{SPI_ESA_CONTRIB_COLUMN}: up to policyengine-uk " + f"{SPI_PERMITTED_WORK_LIMIT_VARIABLE} (ESA Regs 2008 reg 45(4)); " + f"{SPI_JSA_CONTRIB_COLUMN}: below the age-related amount " + "(gov.dwp.JSA.contrib.amount_18_24 under 25, amount_over_25 from 25) plus " + "gov.dwp.JSA.contrib.earn_disregard, the prescribed amount being that sum " + "less 1p (JSA Regs 1996 reg 56); weekly, at the frame's year" +) +SPI_WITHIN_LIMIT_HOURS_LIMIT = ( + f"{SPI_ESA_CONTRIB_COLUMN}: below gov.dwp.ESA.exempt_work.hours_limit (ESA " + f"Regs 2008 reg 45(4)); {SPI_JSA_CONTRIB_COLUMN}: below " + "gov.dwp.JSA.remunerative_work.claimant_hours (JSA Regs 1996 reg 51(1)(a)); " + "weekly, at the frame's year" +) +SPI_WITHIN_LIMIT_AWARD = ( + f"{SPI_ESA_CONTRIB_COLUMN}: the twin's; {SPI_JSA_CONTRIB_COLUMN}: the lower " + "of the twin's and 52 times the age-related amount less the earnings above " + "the disregard (Jobseekers Act 1995 s. 4(1)(b), JSA Regs 1996 reg 80); nil " + "outside the limits" +) +SPI_WITHIN_LIMIT_REASON = ( + "a contributory award follows the person's National Insurance record and, " + "for ESA, incapacity, which the copy keeps, but not work outside each " + "benefit's own earnings and hours limits" +) SPI_TWIN_LINKAGE = "person_source_id -> FRS-channel person_id" SPI_BENEFITS_IN_OWN_RIGHT_OUTPUT = "receives_benefits_in_own_right" SPI_BENEFITS_IN_OWN_RIGHT_RULE = ( @@ -157,6 +234,7 @@ SPI_BENEFIT_COHERENCE_REWRITES = ( *SPI_ZEROED_REPORT_COLUMNS, *SPI_RESTORED_REPORT_COLUMNS, + *SPI_WITHIN_LIMIT_REPORT_COLUMNS, *SPI_DISABILITY_FLAG_COLUMNS, SPI_BENEFITS_IN_OWN_RIGHT_OUTPUT, UK_UC_TAKE_UP_OUTPUT, @@ -184,6 +262,20 @@ def spi_benefit_coherence_operations() -> tuple[tuple[str, dict[str, object]], . "reason": SPI_RESTORED_REPORT_REASON, }, ), + ( + "restore_spi_channel_reports_from_source_within_earnings_limit", + { + "rows": SPI_BENEFIT_COHERENCE_ROWS, + "columns": list(SPI_WITHIN_LIMIT_REPORT_COLUMNS), + "linkage": SPI_TWIN_LINKAGE, + "earnings": SPI_WITHIN_LIMIT_EARNINGS, + "weekly_limit": SPI_PERMITTED_WORK_LIMIT, + "hours": SPI_WITHIN_LIMIT_HOURS, + "weekly_hours_limit": SPI_WITHIN_LIMIT_HOURS_LIMIT, + "award": SPI_WITHIN_LIMIT_AWARD, + "reason": SPI_WITHIN_LIMIT_REASON, + }, + ), ("derive", {"scope": SPI_DISABILITY_REFRESH_SCOPE}), ( "derive", @@ -233,6 +325,8 @@ class UKSPIBenefitCoherenceResult: spi_benefit_units: int zeroed: Mapping[str, Mapping[str, float]] restored: Mapping[str, Mapping[str, float]] + restored_within_earnings_limit: Mapping[str, Mapping[str, object]] + permitted_work_limit: Mapping[str, object] disability_flags_changed: Mapping[str, int] benefits_in_own_right: Mapping[str, float] universal_credit_take_up: Mapping[str, float] @@ -245,6 +339,11 @@ def evidence(self) -> dict[str, object]: "spi_benefit_units": self.spi_benefit_units, "zeroed": {key: dict(value) for key, value in self.zeroed.items()}, "restored": {key: dict(value) for key, value in self.restored.items()}, + "restored_within_earnings_limit": { + key: dict(value) + for key, value in self.restored_within_earnings_limit.items() + }, + "permitted_work_limit": dict(self.permitted_work_limit), "disability_flags_changed": dict(self.disability_flags_changed), "benefits_in_own_right": dict(self.benefits_in_own_right), "universal_credit_take_up": dict(self.universal_credit_take_up), @@ -252,6 +351,110 @@ def evidence(self) -> dict[str, object]: } +@dataclass(frozen=True) +class UKSPIPermittedWorkLimit: + """The contributory awards' weekly work limits as policyengine-uk reads a year. + + ESA's permitted work: earnings up to ``esa_weekly_limit`` in under + ``esa_hours_limit`` hours. JSA: under ``jsa_remunerative_hours`` hours and + earnings below the age-related amount plus ``jsa_earnings_disregard``, and + an award of at most that amount less the earnings above the disregard. + """ + + esa_weekly_limit: float + esa_hours_limit: float + jsa_amount_under_25: float + jsa_amount_from_25: float + jsa_earnings_disregard: float + jsa_remunerative_hours: float + year: int + source: str + + def jsa_amount(self, age: np.ndarray) -> np.ndarray: + """JSA's weekly age-related amount at each age.""" + + return np.where( + np.asarray(age, dtype=float) < SPI_JSA_HIGHER_AMOUNT_FROM_AGE, + self.jsa_amount_under_25, + self.jsa_amount_from_25, + ) + + def evidence(self) -> dict[str, object]: + return { + "esa_weekly_limit": self.esa_weekly_limit, + "esa_hours_limit": self.esa_hours_limit, + "jsa_amount_under_25": self.jsa_amount_under_25, + "jsa_amount_from_25": self.jsa_amount_from_25, + "jsa_earnings_disregard": self.jsa_earnings_disregard, + "jsa_remunerative_hours": self.jsa_remunerative_hours, + "year": self.year, + "source": self.source, + } + + +def uk_spi_permitted_work_limit(year: int | str) -> UKSPIPermittedWorkLimit: + """Read the limits from the engine's own variable and parameters for ``year``. + + ESA's earnings limit is a variable that reads parameters alone (16 hours at + the national living wage, rounded up to the next 50p), so one person in an + empty household gives it; the rest are the parameters at the year, as the + engine's formulas read them. + """ + + try: + from policyengine_uk import Simulation + except ImportError as exc: + raise ImportError( + "The SPI permitted-work limit requires `uv sync --all-packages --extra uk`." + ) from exc + + period = int(year) + simulation = Simulation( + situation={ + "people": {"person": {}}, + "benunits": {"benunit": {"members": ["person"]}}, + "households": {"household": {"members": ["person"]}}, + } + ) + values = np.asarray( + simulation.calculate(SPI_PERMITTED_WORK_LIMIT_VARIABLE, period), dtype=float + ) + if values.shape != (1,) or not (np.isfinite(values[0]) and values[0] > 0.0): + raise ValueError( + f"policyengine-uk {SPI_PERMITTED_WORK_LIMIT_VARIABLE} at {period} is " + f"not one positive amount: {values.tolist()}." + ) + dwp = simulation.tax_benefit_system.parameters(period).gov.dwp + amounts = { + "esa_hours_limit": float(dwp.ESA.exempt_work.hours_limit), + "jsa_amount_under_25": float(dwp.JSA.contrib.amount_18_24), + "jsa_amount_from_25": float(dwp.JSA.contrib.amount_over_25), + "jsa_earnings_disregard": float(dwp.JSA.contrib.earn_disregard), + "jsa_remunerative_hours": float(dwp.JSA.remunerative_work.claimant_hours), + } + invalid = { + name: value + for name, value in amounts.items() + if not (np.isfinite(value) and value > 0.0) + } + if invalid: + raise ValueError( + f"policyengine-uk's contributory work limits at {period} are not all " + f"positive amounts: {invalid}." + ) + return UKSPIPermittedWorkLimit( + esa_weekly_limit=float(values[0]), + **amounts, + year=period, + source=( + f"policyengine-uk {metadata.version('policyengine-uk')} " + f"{SPI_PERMITTED_WORK_LIMIT_VARIABLE}, gov.dwp.ESA.exempt_work." + "hours_limit, gov.dwp.JSA.contrib and gov.dwp.JSA.remunerative_work." + f"claimant_hours at {period}" + ), + ) + + @dataclass(frozen=True) class UKSPIBenefitCoherenceStageTransform: """Whole-stage callable for the SPI-channel benefit coherence pass.""" @@ -261,6 +464,7 @@ class UKSPIBenefitCoherenceStageTransform: population_policy: UKTakeUpPopulationPolicy | None = None category_rates: object | None = None flag_rates: object | None = None + permitted_work_limit: UKSPIPermittedWorkLimit | None = None last_result: UKSPIBenefitCoherenceResult | None = field(default=None, init=False) def __call__(self, frame: Frame) -> Frame: @@ -274,6 +478,7 @@ def __call__(self, frame: Frame) -> Frame: ), category_rates=self.category_rates, flag_rates=self.flag_rates, + permitted_work_limit=self.permitted_work_limit, ) object.__setattr__(self, "last_result", result) return result.frame @@ -295,6 +500,7 @@ def apply_spi_benefit_coherence( population_policy: UKTakeUpPopulationPolicy, category_rates: object | None = None, flag_rates: object | None = None, + permitted_work_limit: UKSPIPermittedWorkLimit | None = None, ) -> UKSPIBenefitCoherenceResult: """Zero, restore and re-derive SPI-channel reports; redraw their UC take-up.""" @@ -313,6 +519,9 @@ def apply_spi_benefit_coherence( support_source_id_column("person"), *SPI_ZEROED_REPORT_COLUMNS, *SPI_RESTORED_REPORT_COLUMNS, + *SPI_WITHIN_LIMIT_REPORT_COLUMNS, + *SPI_WITHIN_LIMIT_EARNINGS_COLUMNS, + SPI_WITHIN_LIMIT_HOURS_COLUMN, *BENEFITS_IN_OWN_RIGHT_REPORTED_COLUMNS, *frs_disability.UK_DISABILITY_FLAG_REPORTED_COLUMNS, *frs_disability.FRS_DISABILITY_OUTPUT_COLUMNS, @@ -344,6 +553,7 @@ def apply_spi_benefit_coherence( ( *SPI_ZEROED_REPORT_COLUMNS, *SPI_RESTORED_REPORT_COLUMNS, + *SPI_WITHIN_LIMIT_REPORT_COLUMNS, *frs_disability.FRS_DISABILITY_OUTPUT_COLUMNS, SPI_BENEFITS_IN_OWN_RIGHT_OUTPUT, ) @@ -407,6 +617,61 @@ def apply_spi_benefit_coherence( ).sum() ) + limit = permitted_work_limit or uk_spi_permitted_work_limit(uk_time_period(frame)) + within_limits, award_caps = _contributory_work_limits(person, limit) + sources = _person_source_households(person, household) + twin_awards = fill_support_channel_from_source( + person, + person.loc[base, ["person_id", *SPI_WITHIN_LIMIT_REPORT_COLUMNS]], + entity="person", + columns=SPI_WITHIN_LIMIT_REPORT_COLUMNS, + ) + restored_within_limit: dict[str, dict[str, object]] = {} + for column in SPI_WITHIN_LIMIT_REPORT_COLUMNS: + old = _numeric(person[column]) + twin_award = _numeric(twin_awards[column]) + within = within_limits[column] + award = np.where(within, np.minimum(twin_award, award_caps[column]), 0.0) + new = np.where(spi, award, old) + twin_reports = spi & (twin_award > 0.0) + restored_within_limit[column] = _within_limit_receipt( + old=old, + new=new, + spi=spi, + twin_reports=twin_reports, + outside=twin_reports & ~within, + reduced=twin_reports & within & (award < twin_award), + weights=weights, + sources=sources, + ) + person[column] = new + twin_check = fill_support_channel_from_source( + person, + person.loc[base, ["person_id", *SPI_WITHIN_LIMIT_REPORT_COLUMNS]], + entity="person", + columns=SPI_WITHIN_LIMIT_REPORT_COLUMNS, + ) + for column in SPI_WITHIN_LIMIT_REPORT_COLUMNS: + expected = np.where( + within_limits[column], + np.minimum(_numeric(twin_check[column]), award_caps[column]), + 0.0, + ) + restored_within_limit[column]["rows_breaking_rule_after"] = int( + (spi & ~np.isclose(_numeric(person[column]), expected)).sum() + ) + permitted_work = { + **limit.evidence(), + "earnings": SPI_WITHIN_LIMIT_EARNINGS, + "hours": SPI_WITHIN_LIMIT_HOURS, + "spi_source_households_within_limits": { + column: support_band( + distinct_count(sources, spi & within_limits[column], weights) + ) + for column in SPI_WITHIN_LIMIT_REPORT_COLUMNS + }, + } + flags_changed = _refresh_disability( person, spi=spi, category_rates=category_rates, flag_rates=flag_rates ) @@ -478,6 +743,8 @@ def apply_spi_benefit_coherence( spi_benefit_units=int(take_up["spi_benefit_units"]), zeroed=zeroed, restored=restored, + restored_within_earnings_limit=restored_within_limit, + permitted_work_limit=permitted_work, disability_flags_changed=flags_changed, benefits_in_own_right=own_right, universal_credit_take_up=take_up, @@ -589,6 +856,107 @@ def _refresh_disability( return changed +def _numeric(values: pd.Series) -> np.ndarray: + return pd.to_numeric(values, errors="coerce").fillna(0.0).to_numpy(dtype=float) + + +def _weekly_earnings(person: pd.DataFrame) -> np.ndarray: + """Employment income plus any self-employment profit, over 52 weeks.""" + + employment, profit = ( + _numeric(person[column]) for column in SPI_WITHIN_LIMIT_EARNINGS_COLUMNS + ) + return (employment + np.maximum(profit, 0.0)) / SPI_WITHIN_LIMIT_WEEKS_IN_YEAR + + +def _contributory_work_limits( + person: pd.DataFrame, limit: UKSPIPermittedWorkLimit +) -> tuple[dict[str, np.ndarray], dict[str, np.ndarray]]: + """Each contributory award's within-limits mask and its annual award cap. + + JSA's earnings test is the strict "below the age-related amount plus the + disregard", which on amounts in pence is reg 56's "no more than that sum + less 1p". ESA's award is the twin's, uncapped, within permitted work. + """ + + earnings = _weekly_earnings(person) + hours = _numeric(person[SPI_WITHIN_LIMIT_HOURS_COLUMN]) + hours = hours / SPI_WITHIN_LIMIT_WEEKS_IN_YEAR + jsa_amount = limit.jsa_amount(_numeric(person["age"])) + disregard = limit.jsa_earnings_disregard + within = { + SPI_JSA_CONTRIB_COLUMN: (hours < limit.jsa_remunerative_hours) + & (earnings < jsa_amount + disregard), + SPI_ESA_CONTRIB_COLUMN: (hours < limit.esa_hours_limit) + & (earnings <= limit.esa_weekly_limit), + } + caps = { + SPI_JSA_CONTRIB_COLUMN: SPI_WITHIN_LIMIT_WEEKS_IN_YEAR + * np.maximum(jsa_amount - np.maximum(earnings - disregard, 0.0), 0.0), + SPI_ESA_CONTRIB_COLUMN: np.full(len(person), np.inf), + } + return within, caps + + +def _within_limit_receipt( + *, + old: np.ndarray, + new: np.ndarray, + spi: np.ndarray, + twin_reports: np.ndarray, + outside: np.ndarray, + reduced: np.ndarray, + weights: np.ndarray, + sources: np.ndarray, +) -> dict[str, object]: + """One award's receipt on distinct source households (microcosm#1164). + + Support is banded. A weighted figure is "<3" when one or two source + households carry it, or carry the change between its before and after, + which the two figures would otherwise give back by difference. + """ + + changed = distinct_count(sources, spi & ~np.isclose(old, new), weights) + + def weighted(values: np.ndarray, mask: np.ndarray) -> float | str: + support = distinct_count(sources, mask, weights) + if 0 < support < UK_DISCLOSURE_FLOOR or 0 < changed < UK_DISCLOSURE_FLOOR: + return UK_WITHHELD + return float((values * weights)[mask].sum()) + + before = spi & (old > 0.0) + after = spi & (new > 0.0) + return { + "twin_reporters": support_band(distinct_count(sources, twin_reports, weights)), + "twin_reporters_outside_limits": support_band( + distinct_count(sources, outside, weights) + ), + "twin_reporters_reduced": support_band( + distinct_count(sources, reduced, weights) + ), + "changed": support_band(changed), + "weighted_amount_before": weighted(old, before), + "weighted_amount_after": weighted(new, after), + "weighted_reporters_before": weighted(np.ones_like(old), before), + "weighted_reporters_after": weighted(np.ones_like(new), after), + } + + +def _person_source_households( + person: pd.DataFrame, household: pd.DataFrame +) -> np.ndarray: + """Each person's source household, the lineage the receipt counts by.""" + + by_household = pd.Series( + source_household_ids(household, stage=SPI_BENEFIT_COHERENCE_STAGE_NAME), + index=household["household_id"].to_numpy(), + ) + sources = person["person_household_id"].map(by_household) + if sources.isna().any(): + raise ValueError("SPI benefit coherence persons must map to a household.") + return sources.to_numpy() + + def _person_weights( person: pd.DataFrame, household: pd.DataFrame, household_weights: np.ndarray ) -> np.ndarray: @@ -635,10 +1003,13 @@ def assert_spi_benefit_coherence_stage_parameters(stage: SourceStageSpec) -> Non "SPI_DISABILITY_FLAG_COLUMNS", "SPI_BENEFIT_COHERENCE_STAGE_NAME", "SPI_RESTORED_REPORT_COLUMNS", + "SPI_WITHIN_LIMIT_REPORT_COLUMNS", "SPI_ZEROED_REPORT_COLUMNS", "UKSPIBenefitCoherenceResult", "UKSPIBenefitCoherenceStageTransform", + "UKSPIPermittedWorkLimit", "apply_spi_benefit_coherence", "assert_spi_benefit_coherence_stage_parameters", "spi_benefit_coherence_operations", + "uk_spi_permitted_work_limit", ] diff --git a/packages/microcosm-build/src/microcosm/build/uk_runtime/spi_income.py b/packages/microcosm-build/src/microcosm/build/uk_runtime/spi_income.py index 1f4e36dea1..8b2c243a3b 100644 --- a/packages/microcosm-build/src/microcosm/build/uk_runtime/spi_income.py +++ b/packages/microcosm-build/src/microcosm/build/uk_runtime/spi_income.py @@ -7,7 +7,7 @@ from collections.abc import Collection, Mapping, Sequence from dataclasses import dataclass from functools import cache -from importlib import import_module +from importlib import import_module, metadata from pathlib import Path from typing import Any @@ -21,6 +21,7 @@ ) from microcosm.build.uk_runtime.frs_annual_income import ( ANNUAL_SHARE_COLUMNS, + EMPLOYMENT_INCOME_ANNUAL_SHARE, EMPLOYMENT_INCOME_OTHER_SPELLS, FRS_ANNUAL_INCOME_OUTPUT_COLUMNS, SELF_EMPLOYMENT_INCOME_OTHER_SPELLS, @@ -40,6 +41,7 @@ ANNUITY_AND_TRUST_INCOME_COLUMN, FRS_LANDLORD_CARRIER_COLUMN, ISA_INTEREST_COLUMN, + WEEKS_IN_YEAR, uc_gainful_self_employment, ) from microcosm.build.uk_runtime.hmrc_income import ( @@ -51,7 +53,15 @@ coherence_receipt, twin_rate_employer_contributions, ) -from microcosm.build.uk_runtime.receipt_counts import UK_DISCLOSURE_FLOOR, UK_WITHHELD +from microcosm.build.uk_runtime.receipt_counts import ( + UK_DISCLOSURE_FLOOR, + UK_WITHHELD, + distinct_count, + extreme_count, + rounded_count, + small_cell_share, + source_household_ids, +) from microcosm.build.uk_runtime.spi_rank_transport import ( SPI_STAGE1_ANALOGUE_COLUMNS, SPI_TRANSPORT_FIT_NAME, @@ -168,9 +178,18 @@ #: against the leaves both ways. SPI_MAIN_SOURCE_LEVELS = ("pay", "pension", "trade", "other") SPI_BRIDGE_PREDICTOR_COLUMNS = ("main_source", "has_pay", "has_trade", "at_or_over_spa") -SPI_STAGE1_CATEGORICAL_PREDICTORS = ("gender", "region", "main_source") +#: The stage-1 forests' age predictor: the SPI AGERANGE band, not an age +#: (uk-data#628). It is categorical: on an ordinal scale the composite records' +#: code (-1) would sit next to 16-24. See SPI_STAGE1_AGE_PREDICTOR_RULE. +SPI_STAGE1_AGE_BAND_COLUMN = "spi_age_band" +SPI_STAGE1_CATEGORICAL_PREDICTORS = ( + SPI_STAGE1_AGE_BAND_COLUMN, + "gender", + "region", + "main_source", +) SPI_STAGE1_PREDICTOR_COLUMNS = ( - "age", + SPI_STAGE1_AGE_BAND_COLUMN, "gender", "region", *SPI_BRIDGE_PREDICTOR_COLUMNS, @@ -445,13 +464,20 @@ "Pension age, and the band's below-State-Pension-age population share is " "drawn from its non-recipients" ) -#: Donors carry a drawn fractional age and frame people a whole-year one, so -#: the stage-1 forest is queried at the middle of each person's year of age. -#: At the whole year a person sits on any split the forest places at that -#: birthday; at State Pension age, below which no donor draws State Pension, -#: about half of the frame's 66-year-olds drew a 65-year-old donor's zero -#: State Pension leaf (microcosm#1069, c4 measurement arm). -SPI_STAGE1_QUERY_AGE_RULE = "whole-year age plus half a year" +#: The tape gives age only as a band, so a donor's drawn age carries no income +#: pattern within its band: a forest trained on it learns none, and twins of +#: one band faced conditionals that differed only by that noise +#: (uk-data#628). The stage-1 tape and reference forests are trained and +#: queried on the band code instead: the tape's own AGERANGE code, composite +#: records (-1) as a band of their own, and the band of a frame person's +#: whole-year age. The State Pension split inside a band is at_or_over_spa's. +#: The drawn ages stay on the donor for their other readers (the band pools' +#: State Pension side). +SPI_STAGE1_AGE_PREDICTOR_RULE = ( + "the SPI 2022-23 AGERANGE band code, one-hot encoded: the tape's own code, " + "composite records (-1) as a band of their own, and the band of a frame " + "person's whole-year age" +) _SPI_REGION_MAP = { 1: "NORTH_EAST", 2: "NORTH_WEST", @@ -702,6 +728,368 @@ def _zero_below_state_pension_age( } +#: The employment pay floor (uk-data#629). Stage 1 draws a recipient's annual +#: tape pay on age, sex, region and the bridge predictors, not on hours, and +#: the tape holds part-year workers, so a twin who reports usual hours in an +#: employee job could draw a year's pay below what those hours earn at the +#: minimum wage, and the drawn rows of employees working 16 or more hours fell +#: under the 30 hours' minimum-income threshold more often than FRS rows. The +#: floor lifts the drawn PAY leaf to the twin's usual weekly hours times the +#: weeks below times the lower of the engine's minimum wage for the twin's age +#: and the twin's own hourly pay, before employment_income is derived from the +#: leaves and before stage 2 conditions on it, so every later reader sees the +#: floored pay as the row's current pay. The tape's pay stays the row's year of +#: pay: the row's employment_income_annual_share becomes its unfloored over its +#: floored employment income, so the annual measures, which the HMRC income +#: rows read, still read the tape (low tape pay is read as part of a year at +#: the floored rate). The twin's own rate caps the floor so that no copy is held +#: to a higher hourly rate than the FRS person it copies. +#: +#: The pay basis: tape PAY is taxable pay, net of net-pay pension +#: contributions and salary sacrifice, while the minimum wage binds gross pay. +#: The floor compares PAY alone with the gross minimum (benefits in kind and +#: termination pay are not minimum-wage pay), since PAY is the leaf the +#: engine's employment_income input carries and the engine reads that input +#: as gross pay. A twin at exactly the minimum wage who pays net-pay +#: contributions can therefore be lifted by up to those contributions; the +#: conservative choices elsewhere (52 paid weeks, the non-apprentice rate the +#: engine itself applies, no floor on a twin with a trade, whose hours cover +#: both jobs, or on a zero draw) keep the floor at or below what the twin's +#: own hours require. +SPI_EMPLOYMENT_PAY_FLOOR_COLUMN = SPI_HMRC_PAY_COLUMN +SPI_EMPLOYMENT_PAY_FLOOR_HOURS_COLUMN = "hours_worked" +#: The engine's minimum wage by age for a non-apprentice, the rate its own +#: ``minimum_wage`` variable pays a person whose ``is_apprentice`` is false, as +#: the spine leaves it. Apprentices cannot be told apart on the FRS twin. +SPI_EMPLOYMENT_PAY_FLOOR_PARAMETER = "gov.hmrc.minimum_wage.non_apprentice" +#: Paid weeks a year. The spine's hours_worked annualises usual weekly hours at +#: frs_spine.WEEKS_IN_YEAR (52, uk-data#531); the floor reads them back to +#: weekly hours and pays 52 weeks. +SPI_EMPLOYMENT_PAY_FLOOR_WEEKS = 52 +#: employment_status values of an employee main job (FRS EMPSTATI 1 and 2). +SPI_EMPLOYMENT_PAY_FLOOR_EMPLOYEE_STATUSES = ("FT_EMPLOYED", "PT_EMPLOYED") +SPI_EMPLOYMENT_PAY_FLOOR_RATE_RULE = ( + "the lower of the minimum wage for the twin's age and the twin's own hourly " + "pay (its employment income before the draw over its annual hours)" +) +SPI_EMPLOYMENT_PAY_FLOOR_ANNUAL_RULE = ( + "the floored pay is the row's current pay; its employment_income_annual_share " + "becomes its unfloored over its floored employment income, so the annual " + "measures read the tape's year of pay" +) + + +@dataclass(frozen=True) +class SPIEmploymentPayFloor: + """The minimum wage by age that floors drawn tape pay, read from the engine. + + ``age_thresholds`` and ``hourly_rates`` are the bracket scale's thresholds + and amounts: an age takes the rate of the highest threshold at or below it. + """ + + age_thresholds: tuple[float, ...] + hourly_rates: tuple[float, ...] + weeks_in_year: float + instant: str + source: str + + def __post_init__(self) -> None: + thresholds = np.asarray(self.age_thresholds, dtype=np.float64) + rates = np.asarray(self.hourly_rates, dtype=np.float64) + if ( + thresholds.size == 0 + or thresholds.size != rates.size + or thresholds[0] != 0.0 + or (np.diff(thresholds) <= 0.0).any() + ): + raise ValueError( + "The SPI pay floor needs increasing age thresholds from zero, " + "one hourly rate each." + ) + if not np.isfinite(rates).all() or (rates <= 0.0).any(): + raise ValueError("The SPI pay floor's hourly rates must be positive.") + if not math.isfinite(self.weeks_in_year) or self.weeks_in_year <= 0.0: + raise ValueError("The SPI pay floor's weeks must be positive.") + + def hourly_rate(self, ages: np.ndarray) -> np.ndarray: + """Each age's hourly rate.""" + + index = np.searchsorted( + np.asarray(self.age_thresholds, dtype=np.float64), + np.asarray(ages, dtype=np.float64), + side="right", + ) + return np.asarray(self.hourly_rates, dtype=np.float64)[ + np.clip(index - 1, 0, None) + ] + + def evidence(self) -> dict[str, object]: + return { + "parameter": SPI_EMPLOYMENT_PAY_FLOOR_PARAMETER, + "instant": self.instant, + "source": self.source, + "hourly_rate_by_age_from": { + str(int(threshold)): rate + for threshold, rate in zip( + self.age_thresholds, self.hourly_rates, strict=True + ) + }, + "weeks_in_year": self.weeks_in_year, + } + + +def load_spi_employment_pay_floor(build_period: int | str) -> SPIEmploymentPayFloor: + """Read the engine's minimum wage by age as it reads ``build_period``. + + policyengine-uk reads a yearly parameter at 30 April of the year + (``convert_to_fiscal_year_parameters``), so the survey year 2024 reads + the 2024-25 rates: £11.44 from age 21, £8.60 from 18 and £6.40 below. + """ + + try: + import policyengine_uk + from policyengine_core.parameters import ParameterNode + except ImportError as exc: + raise ImportError( + "The SPI employment pay floor requires `uv sync --all-packages --extra uk`." + ) from exc + + parameters = ParameterNode( + directory_path=str(Path(policyengine_uk.__file__).parent / "parameters") + ) + instant = f"{int(build_period)}-04-30" + scale = parameters.gov.hmrc.minimum_wage.non_apprentice(instant) + return SPIEmploymentPayFloor( + age_thresholds=tuple(float(value) for value in scale.thresholds), + hourly_rates=tuple(float(value) for value in scale.amounts), + weeks_in_year=float(SPI_EMPLOYMENT_PAY_FLOOR_WEEKS), + instant=instant, + source=( + f"policyengine-uk {metadata.version('policyengine-uk')} " + f"{SPI_EMPLOYMENT_PAY_FLOOR_PARAMETER} at {instant}" + ), + ) + + +def _floor_employment_pay_at_minimum_wage( + person: pd.DataFrame, + *, + rows: pd.Series, + floor: SPIEmploymentPayFloor, + household: pd.DataFrame, + person_weights: pd.Series, + twin_pay: pd.Series, + reference_rows: pd.Series, +) -> tuple[pd.DataFrame, dict[str, object], pd.Series]: + """Lift drawn PAY on ``rows`` to the twin's hours at its floor rate. + + The floor rate is the lower of the minimum wage for the twin's age and the + twin's own hourly pay (``twin_pay``, its employment income before the + draw, over its annual hours; a twin without pay caps nothing). ``rows`` are + the recipients the floor may touch (the caller leaves out band carriers + and twins with a trade). Of those, a row is floored only when its twin's + main job is as an employee, its twin reports usual hours and its drawn PAY + is positive: the floor lifts drawn pay, never creates it. Self-employment + and every other leaf keep their draws. + + The hourly-pay check compares the drawn rows with ``reference_rows``, the + FRS rows under the same employee rule on their own pay: the share of each + below the minimum wage for their age, before and after the floor. Returns + the frame, the receipt and each row's uplift (zero elsewhere), from which + the caller keeps the tape's pay as the row's year of pay. The receipt + counts support by distinct source household and gives no row's value. + """ + + _require_columns( + person, + ( + SPI_EMPLOYMENT_PAY_FLOOR_COLUMN, + SPI_EMPLOYMENT_PAY_FLOOR_HOURS_COLUMN, + "employment_status", + "self_employment_income", + "age", + "person_household_id", + ), + label="SPI employment pay floor", + ) + + def employee_rows( + mask: pd.Series, + ) -> tuple[pd.DataFrame, np.ndarray, np.ndarray, np.ndarray]: + frame = person.loc[mask.reindex(person.index).fillna(False).astype(bool)] + hours = pd.to_numeric( + frame[SPI_EMPLOYMENT_PAY_FLOOR_HOURS_COLUMN], errors="coerce" + ).to_numpy(dtype=np.float64) + pay = pd.to_numeric( + frame[SPI_EMPLOYMENT_PAY_FLOOR_COLUMN], errors="coerce" + ).to_numpy(dtype=np.float64) + if not np.isfinite(hours).all() or (hours < 0.0).any(): + raise ValueError("SPI pay floor hours must be finite and non-negative.") + if not np.isfinite(pay).all(): + raise ValueError("SPI pay floor drawn pay must be finite.") + employee = ( + frame["employment_status"] + .astype(str) + .isin(SPI_EMPLOYMENT_PAY_FLOOR_EMPLOYEE_STATUSES) + .to_numpy() + ) + return frame, hours, pay, employee & (hours > 0.0) & (pay > 0.0) + + candidates, hours, pay, eligible = employee_rows(rows) + paid_hours = hours / WEEKS_IN_YEAR * floor.weeks_in_year + minimum_wage = floor.hourly_rate(candidates["age"].to_numpy(dtype=np.float64)) + twin = pd.to_numeric(twin_pay.reindex(candidates.index), errors="coerce").to_numpy( + dtype=np.float64 + ) + if not np.isfinite(twin[eligible]).all(): + raise ValueError("SPI pay floor needs the FRS twin's pay of every drawn row.") + with np.errstate(divide="ignore", invalid="ignore"): + twin_rate = np.where( + (twin > 0.0) & (paid_hours > 0.0), twin / paid_hours, np.inf + ) + minimum = paid_hours * np.minimum(minimum_wage, twin_rate) + floored = eligible & (pay < minimum) + uplift = np.where(floored, minimum - pay, 0.0) + floored_pay = np.where(floored, minimum, pay) + result = person.copy() + result.loc[candidates.index[floored], SPI_EMPLOYMENT_PAY_FLOOR_COLUMN] = minimum[ + floored + ] + + household_sources = pd.Series( + source_household_ids(household, stage="The SPI employment pay floor"), + index=household["household_id"].to_numpy(), + ) + + def sources_of(frame: pd.DataFrame) -> np.ndarray: + return frame["person_household_id"].map(household_sources).to_numpy() + + weights = person_weights.loc[candidates.index].to_numpy(dtype=np.float64) + sources = sources_of(candidates) + eligible_sources = distinct_count(sources, eligible, weights) + floored_sources = distinct_count(sources, floored, weights) + unfloored_sources = distinct_count(sources, eligible & ~floored, weights) + eligible_weight = float(weights[eligible].sum()) + floored_weight = float(weights[floored].sum()) + added = float((uplift * weights).sum()) + # Weighted figures over one or two source households are withheld ("<3"); + # a count of support is rounded (receipt_counts), and no row's value is + # given. + # The floored weight beside the eligible weight gives back the unfloored + # side, and so do the share times the eligible weight and the amount added + # over the mean uplift, so the floored weight, share and amount are given + # only where neither side rests on one or two sources, as the Carer's + # Allowance take-up receipt gives its share. + either_side_small = ( + 0 < min(floored_sources, unfloored_sources) < UK_DISCLOSURE_FLOOR + ) + + def beside_eligible(value: float) -> float | str: + if either_side_small: + return UK_WITHHELD + return small_cell_share(value, floored_sources) + + def below_share( + below: np.ndarray, among: np.ndarray, frame_sources, frame_weights + ) -> float | str: + # A share is given only where neither the rows below nor the rest rest + # on one or two source households: a share of one or of nought over a + # few households describes each of them. + below_count = distinct_count(frame_sources, among & below, frame_weights) + rest_count = distinct_count(frame_sources, among & ~below, frame_weights) + if ( + 0 < below_count < UK_DISCLOSURE_FLOOR + or 0 < rest_count < UK_DISCLOSURE_FLOOR + ): + return UK_WITHHELD + total = float(frame_weights[among].sum()) + return float(frame_weights[among & below].sum()) / total if total else 0.0 + + below_before = pay < paid_hours * minimum_wage + below_after = floored_pay < paid_hours * minimum_wage + # The rows the floor lifts out from under the minimum wage are the + # difference of the two shares, so both are withheld beside a small one. + lifted_out = eligible & below_before & ~below_after + lifted_small = ( + 0 < distinct_count(sources, lifted_out, weights) < UK_DISCLOSURE_FLOOR + ) + reference, reference_hours, reference_pay, reference_eligible = employee_rows( + reference_rows + ) + reference_eligible &= ( + pd.to_numeric(reference["self_employment_income"], errors="coerce") + .fillna(0.0) + .to_numpy(dtype=np.float64) + == 0.0 + ) + reference_weights = person_weights.loc[reference.index].to_numpy(dtype=np.float64) + reference_below = reference_pay < ( + reference_hours + / WEEKS_IN_YEAR + * floor.weeks_in_year + * floor.hourly_rate(reference["age"].to_numpy(dtype=np.float64)) + ) + below_their_floor = int((eligible & (floored_pay < minimum * (1.0 - 1e-12))).sum()) + hourly_pay_check = { + "spi_drawn_employees": { + "source_households": rounded_count(eligible_sources), + "below_minimum_wage_share_before": ( + UK_WITHHELD + if lifted_small + else below_share(below_before, eligible, sources, weights) + ), + "below_minimum_wage_share_after": ( + UK_WITHHELD + if lifted_small + else below_share(below_after, eligible, sources, weights) + ), + }, + "frs_employees": { + "source_households": rounded_count( + distinct_count( + sources_of(reference), reference_eligible, reference_weights + ) + ), + "below_minimum_wage_share": below_share( + reference_below, + reference_eligible, + sources_of(reference), + reference_weights, + ), + }, + "eligible_rows_below_their_floor_after": extreme_count(below_their_floor), + } + + return ( + result, + { + "step": "spi_employment_pay_floor_before_stage2", + "column": SPI_EMPLOYMENT_PAY_FLOOR_COLUMN, + "rate": SPI_EMPLOYMENT_PAY_FLOOR_RATE_RULE, + **floor.evidence(), + "eligible": { + "source_households": rounded_count(eligible_sources), + "weighted_people": small_cell_share(eligible_weight, eligible_sources), + }, + "floored": { + "source_households": rounded_count(floored_sources), + "weighted_people": beside_eligible(floored_weight), + "weighted_share_of_eligible": beside_eligible( + floored_weight / eligible_weight if eligible_weight > 0.0 else 0.0 + ), + "weighted_mean_uplift_gbp": small_cell_share( + added / floored_weight if floored_weight > 0.0 else 0.0, + floored_sources, + ), + "weighted_amount_added_gbp": beside_eligible(added), + }, + "annual_income": SPI_EMPLOYMENT_PAY_FLOOR_ANNUAL_RULE, + "hourly_pay_check": hourly_pay_check, + }, + pd.Series(uplift, index=candidates.index, dtype=np.float64), + ) + + @dataclass(frozen=True) class UKSPIIncomeImputationResult: """SPI-filled person table and auditable fit/source evidence.""" @@ -728,6 +1116,7 @@ class UKSPIIncomeImputationResult: state_pension_age: int | None = None gainful_self_employment_refresh: Mapping[str, object] | None = None pension_coherence: Mapping[str, object] | None = None + employment_pay_floor: Mapping[str, object] | None = None gift_anchor: Mapping[str, object] | None = None @@ -836,6 +1225,7 @@ def impute_uk_spi_income_support( state_pension_age_guard: UKSPIStatePensionAgeGuard | None = None, state_pension_age: int | None = None, allow_in_sample_reference: bool = False, + employment_pay_floor: SPIEmploymentPayFloor | None = None, ) -> UKSPIIncomeImputationResult: """Run strict SPI-income and FRS-only QRFs on rebuilt positive support. @@ -849,6 +1239,10 @@ def impute_uk_spi_income_support( age with receipts (microcosm#1069). ``state_pension_age`` is the boundary the bridge predictor ``at_or_over_spa`` reads on the twin; it defaults to the donor age model's and is required without one (microcosm#840). + ``employment_pay_floor`` lifts drawn PAY to the twin's usual hours at the + minimum wage for its age, on drawn recipients other than band carriers + whose twin works as an employee with no trade, before employment_income + is derived and stage 2 reads it; ``None`` keeps every draw. """ if support.household_weight_kind is not WeightKind.IMPORTANCE: @@ -908,7 +1302,7 @@ def impute_uk_spi_income_support( ) donor_age_draw = { **donor.attrs.get("age_draw", {}), - "stage1_query_age": SPI_STAGE1_QUERY_AGE_RULE, + "stage1_age_predictor": SPI_STAGE1_AGE_PREDICTOR_RULE, } donor_full = donor donor_fit_weights = donor["FACT"].to_numpy(dtype=np.float64) @@ -995,6 +1389,7 @@ def impute_uk_spi_income_support( twin_employer = person.loc[spi_people, "employer_pension_contributions"].to_numpy( dtype=np.float64, copy=True ) + twin_pay_by_row = pd.Series(twin_pay, index=person.index[spi_people.to_numpy()]) recipient_domain = { "minimum_age": SPI_MINIMUM_RECIPIENT_AGE, "role_column": SPI_RECIPIENT_ROLE_COLUMN, @@ -1216,6 +1611,37 @@ def fit_reference(encoded: pd.DataFrame, observed: pd.DataFrame): step="spi_state_pension_leaf_after_stage1", ) guard_receipts.append(receipt) + pay_floor_receipt = None + pay_floor_uplift = pd.Series(dtype=np.float64) + if employment_pay_floor is not None: + # The floor reads the twin's hours, status and trade, which stage 1 + # leaves alone, and lifts the drawn PAY leaf after every stage-1 + # writer and before the employment input, stage 2 and the HMRC + # aggregates read it. The transport receipt was taken on the + # unfloored draws' uniforms above. Band carriers keep their pool + # draws, whose total income sits in a published band; a twin with a + # trade reports hours that cover both jobs. + no_trade = recipient_predictors["has_trade"].to_numpy(dtype=np.float64) == 0.0 + band_carrier = ( + person.loc[spi_people, SPI_INCOME_BAND_CARRIER_COLUMN] + .astype(bool) + .to_numpy() + if SPI_INCOME_BAND_CARRIER_COLUMN in person.columns + else np.zeros(int(spi_people.sum()), dtype=bool) + ) + floor_rows = spi_people.copy() + floor_rows.loc[spi_people] = no_trade & ~band_carrier + person, pay_floor_receipt, pay_floor_uplift = ( + _floor_employment_pay_at_minimum_wage( + person, + rows=floor_rows, + floor=employment_pay_floor, + household=household, + person_weights=_person_household_weights(person, household), + twin_pay=twin_pay_by_row, + reference_rows=base_people, + ) + ) person = _derive_policyengine_employment_input(person, spi_people=spi_people) taxable_interest_draw = person.loc[spi_people, "savings_interest_income"].to_numpy( @@ -1383,6 +1809,7 @@ def fit_reference(encoded: pd.DataFrame, observed: pd.DataFrame): ) person = _refresh_landlord_carrier(person, spi_people=spi_people) person = _refresh_annual_income_descriptors(person, spi_people=spi_people) + person = _keep_floored_rows_year_of_pay(person, uplift=pay_floor_uplift) person = _clear_annuity_and_trust_descriptor(person, spi_people=spi_people) # The flag is the stage's last new column, where the graph's typed cells # place it (the legacy oracle and the graph must agree on column order). @@ -1424,6 +1851,7 @@ def fit_reference(encoded: pd.DataFrame, observed: pd.DataFrame): state_pension_age=int(state_pension_age), gainful_self_employment_refresh=gainful_self_employment, pension_coherence=pension_coherence, + employment_pay_floor=pay_floor_receipt, gift_anchor=gift_anchor, ) @@ -2230,6 +2658,9 @@ def _prepare_spi_donor( # The published age band travels with the record so band pools can match # a carrier's age band; composites (-1) have none and never age-match. donor["agerange"] = age_codes.to_numpy(dtype=np.int64) + # The stage-1 forests read the band itself, a composite's -1 included + # (uk-data#628). + donor[SPI_STAGE1_AGE_BAND_COLUMN] = age_codes.to_numpy(dtype=np.float64) # The bridge predictors (microcosm#840): main_source and has_pay from the # leaves, as on the twin; has_trade and at_or_over_spa from the published # indicator codes, the leaves serving a composite record without codes; @@ -2590,11 +3021,13 @@ def _stage1_query_predictors( *, state_pension_age: int, ) -> pd.DataFrame: - """Stage-1 query predictors: age at the middle of the year of age, and the + """Stage-1 query predictors: the SPI band of the whole-year age, and the bridge predictors derived from the row's own (the twin's) leaves.""" predictors = _person_predictors(person, household, income_predictors=()) - predictors["age"] = np.floor(predictors["age"].to_numpy(dtype=np.float64)) + 0.5 + predictors[SPI_STAGE1_AGE_BAND_COLUMN] = _spi_agerange_codes( + np.floor(predictors["age"].to_numpy(dtype=np.float64)) + ).astype(np.float64) bridge = _person_bridge(person, state_pension_age=state_pension_age) for column in SPI_BRIDGE_PREDICTOR_COLUMNS: predictors[column] = bridge[column].to_numpy() @@ -3394,6 +3827,36 @@ def _refresh_uc_start_up_period( } +def _keep_floored_rows_year_of_pay( + person: pd.DataFrame, *, uplift: pd.Series +) -> pd.DataFrame: + """Keep a floored row's year of pay at its tape pay (uk-data#629). + + The pay floor lifts current pay only. The tape's pay is the year's, so a + floored row's annual share becomes its unfloored over its floored + employment income, and the annual measures (current times share plus the + other spells, which a row that drew pay has none of) read the tape's pay. + """ + + if EMPLOYMENT_INCOME_ANNUAL_SHARE not in person.columns: + return person + lifted = uplift.reindex(person.index).fillna(0.0).to_numpy(dtype=np.float64) + rows = lifted > 0.0 + if not rows.any(): + return person + current = pd.to_numeric( + person.loc[rows, "employment_income"], errors="coerce" + ).to_numpy(dtype=np.float64) + tape = current - lifted[rows] + if not (np.isfinite(current).all() and (tape > 0.0).all()): + raise ValueError( + "A floored row's employment income must exceed its uplift, as its " + "drawn pay is positive." + ) + person.loc[rows, EMPLOYMENT_INCOME_ANNUAL_SHARE] = tape / current + return person + + def _refresh_annual_income_descriptors( person: pd.DataFrame, *, spi_people: pd.Series ) -> pd.DataFrame: @@ -3563,6 +4026,12 @@ def _assign_spi_values( "SPI_DONOR_UKDS_STUDY", "SPI_DONOR_VINTAGE", "SPI_DONOR_REQUIRED_COLUMNS", + "SPI_EMPLOYMENT_PAY_FLOOR_ANNUAL_RULE", + "SPI_EMPLOYMENT_PAY_FLOOR_EMPLOYEE_STATUSES", + "SPI_EMPLOYMENT_PAY_FLOOR_PARAMETER", + "SPI_EMPLOYMENT_PAY_FLOOR_RATE_RULE", + "SPI_EMPLOYMENT_PAY_FLOOR_WEEKS", + "SPIEmploymentPayFloor", "SPI_INCOME_RECIPIENT_COLUMN", "SPI_INCOME_SOURCE_COLUMNS", "SPI_DERIVED_POLICYENGINE_SOURCE_COLUMNS", @@ -3577,6 +4046,7 @@ def _assign_spi_values( "SPI_INCOME_BAND_CARRIER_KEY_COLUMN", "SPI_INCOME_BAND_DONOR_LEAF_DRAW_SALT", "SPI_INCOME_BAND_LOWER_BOUND_COLUMN", + "load_spi_employment_pay_floor", "prepare_spi_donor_table", "SPI_SOURCE_LEAF_RECONCILIATION_ABS_TOLERANCE_GBP", "SPI_SOURCE_TEI_FORMULA", diff --git a/packages/microcosm-build/src/microcosm/build/uk_runtime/spi_rank_transport.py b/packages/microcosm-build/src/microcosm/build/uk_runtime/spi_rank_transport.py index 33728b9b84..596ec88f39 100644 --- a/packages/microcosm-build/src/microcosm/build/uk_runtime/spi_rank_transport.py +++ b/packages/microcosm-build/src/microcosm/build/uk_runtime/spi_rank_transport.py @@ -32,7 +32,7 @@ conditional's mass, so its located quantile was mostly the random placement inside that atom and the draw kept under half of the twin's rank within a cell. The rows are therefore split into folds by a stable hash of their -predictor cell (gender, region, whole-year age and the four bridge +predictor cell (gender, region, SPI age band and the four bridge predictors), each fold's recipients are located by a forest fitted on the other folds, and because a copy shares its twin's cell, the forest that locates it never saw the twin. Keying the folds on the cell rather than the @@ -98,11 +98,12 @@ SPI_TRANSPORT_FOLDS = 5 #: The fold draw's salt; the fold of a cell is ``floor(uniform * folds)``. SPI_TRANSPORT_FOLD_SALT = "spi_stage1:reference_fold" -#: The columns whose values name a predictor cell, age at the whole year. +#: The columns whose values name a predictor cell: the stage-1 predictors, +#: age as its SPI band (uk-data#628). SPI_TRANSPORT_CELL_COLUMNS = ( "gender", "region", - "age", + "spi_age_band", "main_source", "has_pay", "has_trade", @@ -244,7 +245,7 @@ def cell_fold_ids( """Assign every row to a fold by a stable hash of its predictor cell. ``predictors`` holds the raw (unencoded) stage-1 predictors; a cell is the - tuple of :data:`SPI_TRANSPORT_CELL_COLUMNS` with age at the whole year. + tuple of :data:`SPI_TRANSPORT_CELL_COLUMNS`. The fold is ``floor(uniform * used)`` of the cell's identity-keyed uniform, so two frames whose rows share a cell share its fold. ``used`` is ``folds`` capped at the number of distinct cells in ``predictors``, or @@ -257,9 +258,6 @@ def cell_fold_ids( if missing: raise ValueError(f"fold cells need predictor column(s) {missing}.") cells = predictors[list(SPI_TRANSPORT_CELL_COLUMNS)].copy() - cells["age"] = np.floor( - pd.to_numeric(cells["age"], errors="coerce").to_numpy(dtype=np.float64) - ) keys = cells.astype(str).agg("|".join, axis=1).to_numpy() if used is None: used = min(folds, len(set(keys.tolist()))) diff --git a/packages/microcosm-build/src/microcosm/build/uk_runtime/spi_spine.py b/packages/microcosm-build/src/microcosm/build/uk_runtime/spi_spine.py index 64746b11da..96a5070387 100644 --- a/packages/microcosm-build/src/microcosm/build/uk_runtime/spi_spine.py +++ b/packages/microcosm-build/src/microcosm/build/uk_runtime/spi_spine.py @@ -63,6 +63,10 @@ SPI_DONOR_AGE_POPULATION_PERIOD, SPI_DONOR_AGE_POPULATION_RESOURCE, SPI_DONOR_INCOME_YEAR, + SPI_EMPLOYMENT_PAY_FLOOR_ANNUAL_RULE, + SPI_EMPLOYMENT_PAY_FLOOR_EMPLOYEE_STATUSES, + SPI_EMPLOYMENT_PAY_FLOOR_PARAMETER, + SPI_EMPLOYMENT_PAY_FLOOR_WEEKS, SPI_INCOME_BAND_CARRIER_KEY_COLUMN, SPI_INCOME_BAND_DONOR_LEAF_DRAW_SALT, SPI_INCOME_RECIPIENT_COLUMN, @@ -79,6 +83,7 @@ assert_frs_hmrc_auxiliary_crosswalk_available, impute_uk_spi_income_support, load_spi_donor_age_model, + load_spi_employment_pay_floor, verify_spi_donor_identity, ) from microcosm.build.uk_runtime.spi_rank_transport import ( @@ -163,6 +168,55 @@ "state_pension_age": SPI_SPINE_STATE_PENSION_AGE_SOURCE, "receipt": "rows, weighted people and amounts removed per column and step", } +#: Reviewed declaration of the employment pay floor (spi_income's +#: SPI_EMPLOYMENT_PAY_FLOOR_* notes give the reasons). +SPI_SPINE_EMPLOYMENT_PAY_FLOOR: Mapping[str, object] = { + "column": "hmrc_spi_pay", + "hours_column": "hours_worked", + "hours_basis": ( + "annual usual hours: the FRS adult's usual weekly hours in all jobs " + "(TOTHOURS) times 52, read back to weekly hours" + ), + "weeks_in_year": SPI_EMPLOYMENT_PAY_FLOOR_WEEKS, + "hourly_rate": ( + f"the lower of policyengine-uk {SPI_EMPLOYMENT_PAY_FLOOR_PARAMETER} by the " + "twin's age, read as the engine reads the build year (30 April), and the " + "twin's own hourly pay (its employment income before the draw over its " + "annual hours)" + ), + "employee_statuses": list(SPI_EMPLOYMENT_PAY_FLOOR_EMPLOYEE_STATUSES), + "rows": ( + "drawn recipients other than reserved band carriers, whose twin has no " + "trade (has_trade 0), an employee main job and usual hours above zero, " + "and whose drawn PAY is positive; FRS rows, undrawn copies and every " + "other leaf keep their values" + ), + "pay_basis": ( + "tape PAY is taxable pay, net of net-pay pension contributions and " + "salary sacrifice; the minimum wage binds gross pay, and the engine " + "reads employment_income (PAY + EPB + TAXTERM) as gross pay, so PAY " + "alone is compared with the gross minimum and a twin at the minimum " + "wage who pays net-pay contributions can be lifted by up to them" + ), + "reason": ( + "stage 1 draws annual tape pay without hours and the tape holds " + "part-year workers, so a twin reporting usual employee hours could " + "draw a year's pay below what those hours earn at the minimum wage " + "(uk-data#629)" + ), + "annual_income": SPI_EMPLOYMENT_PAY_FLOOR_ANNUAL_RULE, + "receipt": ( + "eligible and floored source households (rounded), weighted people, " + "the weighted share floored, the weighted mean uplift and the amount " + "added; figures on one or two source households are <3, and the " + "floored weight, share and amount are given only where neither the " + "floored nor the unfloored side rests on one or two; the hourly-pay " + "check gives the weighted shares of the drawn employees below the " + "minimum wage for their age before and after the floor, beside the FRS " + "employees' share, each withheld beside a side on one or two, and the " + "eligible rows still below their floor (banded, zero exact)" + ), +} UK_FRS_HMRC_SPINE_LEAF_OUTPUT_COLUMNS = ( *FRS_HMRC_RETAINED_LEAF_COLUMNS, @@ -284,8 +338,8 @@ # applies to every declared parameter: it needs (1) a drift assert and (2) an # executed-effect receipt, or an explicit absence statement. Seeded draws use # twin-build determinism as their executed-effect receipt. -#: Age, gender and region, then the four bridge predictors the tape and the -#: twin derive from their own leaves (microcosm#840). +#: The SPI age band (uk-data#628), gender and region, then the four bridge +#: predictors the tape and the twin derive from their own leaves (microcosm#840). SPI_SPINE_STAGE1_PREDICTORS = SPI_STAGE1_PREDICTOR_COLUMNS SPI_SPINE_STAGE1_CATEGORICAL_PREDICTORS = SPI_STAGE1_CATEGORICAL_PREDICTORS #: The stage-1 draw: each drawn recipient's twin is located on the FRS @@ -413,6 +467,7 @@ def evidence(self) -> dict[str, object]: "pension_coherence": self.imputation.pension_coherence, "gift_anchor": self.imputation.gift_anchor, "state_pension_age_guard": list(self.imputation.state_pension_age_guard), + "employment_pay_floor": self.imputation.employment_pay_floor, "targets": { "count": len(self.source_targets.targets), "classification": dict(self.replay_report.summary), @@ -782,6 +837,14 @@ def __call__(self, frame: Frame) -> Frame: if age_op is not None or guard_op is not None else None ) + floor_op = _optional_operation( + self.stage, "floor_spi_employment_pay_at_minimum_wage" + ) + employment_pay_floor = ( + None + if floor_op is None + else load_spi_employment_pay_floor(uk_time_period(frame)) + ) state_pension_age_guard = ( None if guard_op is None or donor_age_model is None @@ -821,6 +884,7 @@ def __call__(self, frame: Frame) -> Frame: state_pension_age=( None if donor_age_model is None else donor_age_model.state_pension_age ), + employment_pay_floor=employment_pay_floor, ) result_frame = uk_national_frame( person=imputation.person, @@ -1337,6 +1401,10 @@ def _assert_income_stage_parameters( "zero_pension_age_reports_below_state_pension_age", SPI_SPINE_STATE_PENSION_AGE_GUARD, ), + ( + "floor_spi_employment_pay_at_minimum_wage", + SPI_SPINE_EMPLOYMENT_PAY_FLOOR, + ), ): operation = _optional_operation(stage, kind) if operation is None: diff --git a/packages/microcosm-build/src/microcosm/build/uk_runtime/spine_build.py b/packages/microcosm-build/src/microcosm/build/uk_runtime/spine_build.py index e340d2f8be..bd4ab37284 100644 --- a/packages/microcosm-build/src/microcosm/build/uk_runtime/spine_build.py +++ b/packages/microcosm-build/src/microcosm/build/uk_runtime/spine_build.py @@ -391,6 +391,14 @@ def _parse_args(argv: list[str] | None = None) -> argparse.Namespace: type=Path, help="Caller-supplied private NTS ticket tab for nts_bus_travel.", ) + parser.add_argument( + "--nts-vehicle-tab", + type=Path, + help=( + "Caller-supplied private NTS vehicle tab for lcfs_consumption's " + "zero-emission share by income fifth and household-paid road-fuel mix." + ), + ) parser.add_argument( "--lcfs-hh-tab", type=Path, @@ -450,6 +458,7 @@ def _parse_args(argv: list[str] | None = None) -> argparse.Namespace: ("--nts-trip-tab", args.nts_trip_tab), ("--nts-stage-tab", args.nts_stage_tab), ("--nts-ticket-tab", args.nts_ticket_tab), + ("--nts-vehicle-tab", args.nts_vehicle_tab), ("--lcfs-hh-tab", args.lcfs_hh_tab), ("--lcfs-person-tab", args.lcfs_person_tab), ("--etb-tab", args.etb_tab), @@ -558,6 +567,7 @@ def _synthetic_graph_sources(source: Path) -> dict[str, Path]: "nts_trip": "nts_trip", "nts_stage": "nts_stage", "nts_ticket": "nts_ticket", + "nts_vehicle": "nts_vehicle", "lcfs_household": "lcfs_household", "lcfs_person": "lcfs_person", "etb": "etb", @@ -1613,6 +1623,8 @@ def prepare_uk_spine_execution( for flag, value in ( ("--lcfs-hh-tab", args.lcfs_hh_tab), ("--lcfs-person-tab", args.lcfs_person_tab), + ("--nts-household-tab", args.nts_household_tab), + ("--nts-vehicle-tab", args.nts_vehicle_tab), ) if value is None ] @@ -1780,6 +1792,8 @@ def prepare_uk_spine_execution( engine=engine, lcfs_hh_tab_path=sources["lcfs_household"], lcfs_person_tab_path=sources["lcfs_person"], + nts_household_tab_path=sources["nts_household"], + nts_vehicle_tab_path=sources["nts_vehicle"], ) ) if "etb_vat" in stage_names: @@ -2001,6 +2015,8 @@ def prepare_uk_spine_execution( if "lcfs_consumption" in stage_names: graph_sources["lcfs_household"] = args.lcfs_hh_tab graph_sources["lcfs_person"] = args.lcfs_person_tab + graph_sources["nts_household"] = args.nts_household_tab + graph_sources["nts_vehicle"] = args.nts_vehicle_tab if "etb_vat" in stage_names or "etb_services" in stage_names: graph_sources["etb"] = args.etb_tab if "spi_income_band_donors" in stage_names: diff --git a/packages/microcosm-build/src/microcosm/build/uk_runtime/stage_health.py b/packages/microcosm-build/src/microcosm/build/uk_runtime/stage_health.py index d36cda4899..86af8dd57d 100644 --- a/packages/microcosm-build/src/microcosm/build/uk_runtime/stage_health.py +++ b/packages/microcosm-build/src/microcosm/build/uk_runtime/stage_health.py @@ -108,6 +108,8 @@ def uk_stage_health_gate( return _property_components_gate(stage, evidence, parameters) if check == "property_purchases": return _property_purchases_gate(stage, evidence, parameters) + if check == "spi_hourly_pay": + return _spi_hourly_pay_gate(stage, evidence, parameters) if check == "regional_home_values": return _regional_home_values_gate(stage, evidence, parameters) if check == "legacy_closure_take_up": @@ -1432,16 +1434,22 @@ def _spi_benefit_coherence_gate( """SPI-channel benefit reports and take-up are coherent (microcosm#1095). Structural zeros only: no SPI row keeps a zeroed report, every restored - report equals the FRS twin's, no person's ``receives_benefits_in_own_right`` - disagrees with their own reports, base rows are unchanged, every SPI unit - with a Universal Credit reporter claims, and no SPI unit outside the - Universal Credit age population claims without reporting. + report equals the FRS twin's, every contributory report equals the twin's + within the permitted-work limit and is nil above it, no person's + ``receives_benefits_in_own_right`` disagrees with their own reports, base + rows are unchanged, every SPI unit with a Universal Credit reporter claims, + and no SPI unit outside the Universal Credit age population claims without + reporting. """ check = "spi_benefit_coherence" failures: list[str] = [] zeroed = _mapping(evidence.get("zeroed"), label=f"{stage}.zeroed") restored = _mapping(evidence.get("restored"), label=f"{stage}.restored") + within_limit = _mapping( + evidence.get("restored_within_earnings_limit"), + label=f"{stage}.restored_within_earnings_limit", + ) own_right = _mapping( evidence.get("benefits_in_own_right"), label=f"{stage}.benefits_in_own_right" ) @@ -1461,6 +1469,18 @@ def _spi_benefit_coherence_gate( failures.append(f"{stage}: the receipt does not record restoring {column}.") elif int(receipt.get("rows_differing_from_twin_after", -1)) != 0: failures.append(f"{stage}: SPI {column} differs from the FRS twin.") + for column in parameters["restored_within_earnings_limit_columns"]: + receipt = within_limit.get(column) + if not isinstance(receipt, Mapping): + failures.append( + f"{stage}: the receipt does not record restoring {column} within " + "the permitted-work limit." + ) + elif int(receipt.get("rows_breaking_rule_after", -1)) != 0: + failures.append( + f"{stage}: SPI {column} is not the FRS twin's within the " + "permitted-work limit and nil above it." + ) if int(own_right.get("mismatches_after", -1)) != 0: failures.append( f"{stage}: receives_benefits_in_own_right disagrees with own reports." @@ -1503,9 +1523,12 @@ def _uc_take_up_gate( Every reporter claims and no unit outside the draw changes. Over a family type's pools whose target the draw can reach, the realized Great Britain - caseload is within ``maximum_caseload_deviation`` of DWP's count, and the - family type's whole caseload is no further from DWP's than before the - redraw, give or take that share of DWP's count. A family type whose + caseload is within ``maximum_reachable_pool_deviation`` of DWP's count, and + the family type's whole caseload is no further from DWP's than before the + redraw, give or take ``maximum_caseload_deviation`` of DWP's count. The two + are separate, so that widening the second for what a stage before the + redraw does to the caseload leaves the first as tight as the draw achieves. + A family type whose caseload rests on fewer than three sources, which the receipt prints "<3", is flagged unchecked, never failed: a small-cell rule never stops a build (María's ruling of 2026-10-26). @@ -1516,6 +1539,10 @@ def _uc_take_up_gate( parameters["maximum_caseload_deviation"], label=f"{stage}.maximum_caseload_deviation", ) + pool_tolerance = _finite_number( + parameters["maximum_reachable_pool_deviation"], + label=f"{stage}.maximum_reachable_pool_deviation", + ) failures: list[str] = [] details: dict[str, object] = {} for key in ("reporters_not_claiming", "changed_outside_draw"): @@ -1556,11 +1583,11 @@ def _uc_take_up_gate( realized = _finite_number( values["reachable_pools_caseload_after"], label=f"{stage}.{name}" ) - if target > 0.0 and abs(realized - target) > tolerance * target: + if target > 0.0 and abs(realized - target) > pool_tolerance * target: failures.append( f"{stage}: family type {name} realizes {realized:,.0f} against " f"DWP's {target:,.0f} over its reachable pools (tolerance " - f"{tolerance})." + f"{pool_tolerance})." ) if abs(after - dwp) > abs(before - dwp) + tolerance * dwp: failures.append( @@ -1616,6 +1643,80 @@ def _spi_income_spine_gate( ) +def _spi_hourly_pay_gate( + stage: str, + evidence: Mapping[str, object], + parameters: Mapping[str, object], +) -> GateResult: + """Drawn SPI employees are paid at least their floor (uk-data#629). + + The employment pay floor lifts each eligible drawn employee's pay to its + twin's hours at the lower of the minimum wage for its age and the twin's + own hourly pay, so none may stay below its floor; and after the floor the + drawn employees' weighted share below the minimum wage for their age may + exceed the FRS employees' own share by at most the declared margin. A + share the receipt withholds (one or two source households on a side) + is not judged, and the details give only the verdicts, not the shares. + """ + + check = "spi_hourly_pay" + floor = evidence.get("employment_pay_floor") + if not isinstance(floor, Mapping): + return _fail( + stage, check, [f"{stage}: the receipt carries no employment pay floor."], {} + ) + hourly = _mapping( + floor.get("hourly_pay_check"), + label=f"{stage}.employment_pay_floor.hourly_pay_check", + ) + margin = _finite_number( + parameters["maximum_share_above_frs"], label=f"{stage}.maximum_share_above_frs" + ) + failures: list[str] = [] + below_floor = hourly.get("eligible_rows_below_their_floor_after") + if below_floor != 0: + failures.append( + f"{stage}: eligible drawn employees remain below their pay floor " + f"({below_floor})." + ) + drawn = _mapping( + hourly.get("spi_drawn_employees"), + label=f"{stage}.hourly_pay_check.spi_drawn_employees", + ) + reference = _mapping( + hourly.get("frs_employees"), label=f"{stage}.hourly_pay_check.frs_employees" + ) + after = drawn.get("below_minimum_wage_share_after") + frs_share = reference.get("below_minimum_wage_share") + judged = all( + isinstance(value, (int, float)) and not isinstance(value, bool) + for value in (after, frs_share) + ) + within = None + if judged: + after_share = _finite_number( + after, label=f"{stage}.below_minimum_wage_share_after" + ) + reference_share = _finite_number( + frs_share, label=f"{stage}.frs_employees.below_minimum_wage_share" + ) + # A share at exactly the margin passes, whatever the float rounding. + within = after_share - reference_share <= margin + 1e-12 + if not within: + failures.append( + f"{stage}: after the floor, drawn employees sit below the minimum " + f"wage more often than FRS employees, beyond the margin {margin}." + ) + details = { + "eligible_rows_below_their_floor_after": below_floor, + "share_judged": judged, + "share_within_margin": within, + } + if failures: + return _fail(stage, check, failures, details) + return _pass(stage, check, details) + + def _source_signal_gate( stage: str, evidence: Mapping[str, object], @@ -3612,10 +3713,19 @@ def _road_fuel_level_gate( from the drawn total, to ``maximum_relative_deviation``. The other-fuels share comes from the licensed LCFS donor, so it is bounded, not recomputed: it must lie in [0, ``maximum_other_fuels_share``]. + + A declared ``mix_rule`` (microcosm#1095 B3, K) levels each fuel to the + level times its household-paid share: each fuel's levelled total must be + the level times the share recomputed here from the vendored litres, + cars shares and pump prices, with the receipt's household-paid shares of + car miles, which come from the licensed NTS and so are bounded to (0, 1], + not recomputed; the receipt's own mix must match it. """ from microcosm.build.country_spec import load_country_spec from microcosm.build.uk_runtime.lcfs_consumption import ( + UK_LCFS_ROAD_FUEL_COLUMNS, + road_fuel_household_mix, road_fuel_level, road_fuel_level_operation, ) @@ -3632,9 +3742,8 @@ def _road_fuel_level_gate( parameters.get("maximum_other_fuels_share"), label=f"{stage}.maximum_other_fuels_share", ) - declared = road_fuel_level_operation( - load_country_spec("uk").sources.stage_map()[stage] - ) + spec_stage = load_country_spec("uk").sources.stage_map()[stage] + declared = road_fuel_level_operation(spec_stage) if declared is None: raise ValueError(f"{stage}: declares no level_road_fuel operation.") share = _finite_number( @@ -3688,6 +3797,49 @@ def _close(observed: object, value: float) -> bool: "factor": factor, "petrol_share_of_level": receipt.get("petrol_share_of_level"), } + if declared.get("mix_rule") is not None: + mix = _mapping(receipt.get("mix"), label=f"{stage}.road_fuel_level.mix") + nts = _mapping( + _mapping(mix.get("nts"), label=f"{stage}.road_fuel_level.mix.nts").get( + "fuels" + ), + label=f"{stage}.road_fuel_level.mix.nts.fuels", + ) + paid: dict[str, float] = {} + for column in UK_LCFS_ROAD_FUEL_COLUMNS: + value = _finite_number( + _mapping(nts.get(column), label=f"{stage}.{column}").get( + "household_paid_share" + ), + label=f"{stage}.{column}.household_paid_share", + ) + if not 0.0 < value <= 1.0: + failures.append( + f"{stage}: the household-paid {column} share {value} is outside " + "(0, 1]." + ) + value = min(max(value, 1e-12), 1.0) + paid[column] = value + expected, _ = road_fuel_household_mix(spec_stage, paid) + fuels = _mapping(mix.get("fuels"), label=f"{stage}.road_fuel_level.mix.fuels") + after = _mapping( + mix.get("frame_after"), label=f"{stage}.road_fuel_level.mix.frame_after" + ) + for column in UK_LCFS_ROAD_FUEL_COLUMNS: + observed = _mapping(fuels.get(column), label=f"{stage}.{column}").get("mix") + if not _close(observed, expected[column]): + failures.append( + f"{stage}: the receipt's {column} mix {observed!r} is not the " + f"recomputed {expected[column]}." + ) + if not _close(after.get(column), level.level * expected[column]): + failures.append( + f"{stage}: the levelled {column} total {after.get(column)!r} is not " + f"the level times its household-paid share, " + f"{level.level * expected[column]}." + ) + details["household_paid_share"] = paid + details["household_mix"] = expected return ( _fail(stage, check, failures, details) if failures diff --git a/packages/microcosm-build/src/microcosm/build/uk_runtime/student_loans.py b/packages/microcosm-build/src/microcosm/build/uk_runtime/student_loans.py index 1ec1c2b4ea..eb416a8e3a 100644 --- a/packages/microcosm-build/src/microcosm/build/uk_runtime/student_loans.py +++ b/packages/microcosm-build/src/microcosm/build/uk_runtime/student_loans.py @@ -1,4 +1,5 @@ -"""UK student-loan cohort assignment and SLC liable-stock support top-ups.""" +"""UK student-loan cohort assignment, SLC liable-stock support top-ups and the +borrowers' share of the household's student-loan balance.""" from __future__ import annotations @@ -85,10 +86,27 @@ "reported" ) STUDENT_LOANS_MASS_CHANGE_REASON = ( - "Student-loan plan assignment writes an enum column only; household rows " - "and typed household weights pass through and total household mass is " - "conserved." + "Student-loan plan assignment writes the plan and re-splits each household's " + "student-loan balance among its members; household rows and typed household " + "weights pass through and total household mass is conserved." ) +#: ``was_wealth`` draws the household's student-loan balance from the WAS and +#: splits it among the members before any plan exists, so it can sit on a +#: member with no loan while the household's borrower holds none. +#: policyengine-uk caps a borrower's repayment at a positive balance, so once +#: the plans are set the balance moves to the members who hold one: by their +#: repayments where any of them repays, else equally. A household with no +#: borrower keeps was_wealth's split, and no household's total moves +#: (microcosm#1095 B9). +BALANCE_COLUMN = "student_loan_balance" +BALANCE_RULE = ( + "each household's student_loan_balance re-split to its members with " + "student_loan_plan != NONE, by student_loan_repayments where any of them " + "repays, else equally; a household with no such member keeps was_wealth's " + "split, and every household's total is unchanged" +) +#: Absolute tolerance, in pounds, of the household-total check. +BALANCE_TOLERANCE_GBP = 1e-6 def load_slc_liable_stocks() -> Mapping[str, Any]: @@ -160,6 +178,7 @@ class UKStudentLoansResult: frame: Frame calibration_year: int plans: Mapping[str, UKStudentLoanPlanReceipt] + balance: Mapping[str, object] = field(default_factory=dict) def evidence(self) -> dict[str, object]: return { @@ -167,6 +186,7 @@ def evidence(self) -> dict[str, object]: "year_rule": YEAR_RULE, "calibration_year": self.calibration_year, "plans": {name: receipt.evidence() for name, receipt in self.plans.items()}, + "balance": dict(self.balance), } @@ -207,7 +227,8 @@ def assign_student_loan_plans( stocks: Mapping[str, Any], year: int, ) -> UKStudentLoansResult: - """Assign reported cohorts, then top up PLAN_5 before PLAN_2. + """Assign reported cohorts, top up PLAN_5 before PLAN_2, then move each + household's student-loan balance to its borrowers (:data:`BALANCE_RULE`). A reported borrower repays (``student_loan_repayments > 0``) or, in England or Wales, reports an outstanding loan and is not in full-time @@ -235,6 +256,7 @@ def assign_student_loan_plans( "current_education", "reports_outstanding_student_loan", "age_left_full_time_education", + BALANCE_COLUMN, } missing = sorted(required - set(person.columns)) if missing: @@ -364,6 +386,15 @@ def assign_student_loan_plans( if unknown: raise ValueError(f"Student-loan assignment emitted unknown plan(s): {unknown}.") person["student_loan_plan"] = plan + person[BALANCE_COLUMN], balance_receipt = allocate_balance_to_borrowers( + balance=pd.to_numeric(person[BALANCE_COLUMN], errors="coerce").to_numpy( + dtype=float + ), + repayments=repayments, + borrower=plan != "NONE", + household_ids=person["person_household_id"].to_numpy(), + person_weights=person_weights, + ) total = frame.weights_for("household").total mass_receipt = MassChangeRecord( entity="household", @@ -386,7 +417,74 @@ def assign_student_loan_plans( frame=result_frame, calibration_year=year, plans=receipts, + balance=balance_receipt, + ) + + +def allocate_balance_to_borrowers( + *, + balance: np.ndarray, + repayments: np.ndarray, + borrower: np.ndarray, + household_ids: np.ndarray, + person_weights: np.ndarray, +) -> tuple[np.ndarray, dict[str, object]]: + """Move each household's student-loan balance to its borrowers. + + A household with a borrower and a positive balance gives it all to its + borrowers, in proportion to their repayments where any of them repays and + equally otherwise; every other household keeps its split. Returns the new + balances and an aggregate receipt. + """ + + balance = np.asarray(balance, dtype=float) + repayments = np.asarray(repayments, dtype=float) + borrower = np.asarray(borrower, dtype=bool) + if not np.isfinite(balance).all() or (balance < 0.0).any(): + raise ValueError("Student-loan balances must be finite and nonnegative.") + households = pd.Index(household_ids) + + def by_household(values: np.ndarray, how: str) -> np.ndarray: + return pd.Series(values).groupby(households).transform(how).to_numpy() + + total = by_household(balance, "sum") + repaying = borrower & (repayments > 0.0) + repaid = by_household(np.where(repaying, repayments, 0.0), "sum") + borrowers = by_household(borrower.astype(np.int64), "sum") + share = np.where( + repaid > 0.0, + np.where(repaying, repayments / np.where(repaid > 0.0, repaid, 1.0), 0.0), + np.where(borrower, 1.0 / np.maximum(borrowers, 1), 0.0), ) + resplit = (borrowers > 0) & (total > 0.0) + allocated = np.where(resplit, total * share, balance) + drift = np.abs(by_household(allocated, "sum") - total) + if (drift > BALANCE_TOLERANCE_GBP).any(): + raise ValueError( + "Student-loan balance re-split moved a household's total by up to " + f"{float(drift.max()):.6f}." + ) + moved = resplit & ~np.isclose(allocated, balance) + weights = np.asarray(person_weights, dtype=float) + receipt = { + "rule": BALANCE_RULE, + "households_resplit": int(households[moved].nunique()), + "rows_changed": int(moved.sum()), + "weighted_balance": float((balance * weights).sum()), + "weighted_balance_on_borrowers_before": float( + (balance * weights)[borrower].sum() + ), + "weighted_balance_on_borrowers_after": float( + (allocated * weights)[borrower].sum() + ), + "weighted_borrowers_with_balance_before": float( + weights[borrower & (balance > 0.0)].sum() + ), + "weighted_borrowers_with_balance_after": float( + weights[borrower & (allocated > 0.0)].sum() + ), + } + return allocated, receipt #: Household lineage columns the top-up receipt reports the taken rows on, @@ -649,6 +747,7 @@ def _assert_student_loans_stage_parameters( "reason": STUDENT_LOANS_MASS_CHANGE_REASON, }, ), + ("derive", {"output": BALANCE_COLUMN, "formula": BALANCE_RULE}), ), ) if year == 2025: diff --git a/packages/microcosm-build/src/microcosm/build/uk_runtime/terminal_gates.py b/packages/microcosm-build/src/microcosm/build/uk_runtime/terminal_gates.py index 9b68b3f19f..6ff0d518ad 100644 --- a/packages/microcosm-build/src/microcosm/build/uk_runtime/terminal_gates.py +++ b/packages/microcosm-build/src/microcosm/build/uk_runtime/terminal_gates.py @@ -350,6 +350,13 @@ def __post_init__(self) -> None: "person.company_car_electric_range", "person.company_car_capital_contributions", "person.company_car_private_fuel_provided", + # policyengine-uk's vehicle excise duty inputs for households' own cars, + # which the lcfs_consumption stage's NTS car step writes (microcosm#1095 B3). + "person.car_fuel_type", + "person.car_co2_emissions", + "person.car_engine_size", + "person.car_first_registration_date", + "person.car_is_ved_exempt", "person.individual_savings_account_interest_income", "person.local_bus_single_fare_share", "person.local_bus_trips", @@ -387,6 +394,7 @@ def __post_init__(self) -> None: "person.uc_is_in_startup_period", "person.uc_is_in_gainful_self_employment", "person.is_looked_after_by_local_authority", + "person.child_limit_non_parental_caring_exception", "person.would_claim_carers_allowance", "person.would_claim_marriage_allowance", "person.would_claim_scp", diff --git a/packages/microcosm-build/src/microcosm/build/uk_runtime/uc_target_measurements.py b/packages/microcosm-build/src/microcosm/build/uk_runtime/uc_target_measurements.py index 423fd24770..309186d1f0 100644 --- a/packages/microcosm-build/src/microcosm/build/uk_runtime/uc_target_measurements.py +++ b/packages/microcosm-build/src/microcosm/build/uk_runtime/uc_target_measurements.py @@ -6,9 +6,10 @@ https://www.gov.uk/government/statistics/universal-credit-claimants-statistics-on-the-two-child-limit-policy-april-2025/background-information-and-methodology The retained frame does not identify April open claims or exact birth dates. -The affected measures therefore explicitly remain positive-award/birth-year -proxies. Their receipts record those gaps; improved fit is not evidence that -the administrative population has been reconstructed. +The affected measures therefore explicitly remain positive-award proxies, and +they date births by the engine's own cutoff test, whose dates of birth come +from whole ages. Their receipts record those gaps; improved fit is not +evidence that the administrative population has been reconstructed. """ from __future__ import annotations @@ -162,10 +163,14 @@ def uc_tcl_comparison_contract(year: int) -> dict[str, Any]: "source_claim_state": "open claim within source observation month", "model_claim_state_proxy": "universal_credit > 0", "source_birth_cutoff": "2017-04-06", - "model_birth_cutoff_proxy": "model birth_year >= 2017", + "model_birth_cutoff_proxy": ( + "policyengine-uk uc_is_child_born_before_child_limit: date of birth " + "before 2017-04-06" + ), "birth_precision": ( - "model year minus retained age input; source-age observation " - "date/advancement and exact birth date unavailable" + "whole-year interview age and the stored months since the last " + "birthday, placed at 6 October of the model year; policyengine-uk " + "holds ages fixed across years; exact birth date unavailable" ), "source_period": "April snapshot; retain matched fact's observation year", "model_period": str(year), @@ -225,12 +230,14 @@ def count(mask: np.ndarray) -> np.ndarray: > 0 ) - birth_year = calculate("birth_year") - if not np.equal(birth_year, np.floor(birth_year)).all(): - raise ValueError("UC birth-year proxy requires integer model birth years.") + # The engine's own cutoff test, a date of birth before 6 April 2017, so the + # measure dates births as the child element does: a calendar year would + # count a child born from January to 5 April 2017 as affected + # (microcosm#1095 AC3). + born_before = calculate("uc_is_child_born_before_child_limit").astype(bool) # The first two children are the oldest. This count is invariant to person # row order and ties, and deliberately includes excepted later children. - post_cutoff_count = count(children & (birth_year >= 2017)) + post_cutoff_count = count(children & ~born_before) affected_count = np.minimum(post_cutoff_count, np.maximum(child_count - 2, 0)) if variable == "uc_tcl_affected_child_count_proxy": return affected_count diff --git a/packages/microcosm-build/tests/engine/uk/test_uk_spi_income.py b/packages/microcosm-build/tests/engine/uk/test_uk_spi_income.py index 60b8200d33..e0022e4e40 100644 --- a/packages/microcosm-build/tests/engine/uk/test_uk_spi_income.py +++ b/packages/microcosm-build/tests/engine/uk/test_uk_spi_income.py @@ -374,7 +374,13 @@ def test_spi_qrf_stages_use_typed_weights_and_keep_isa_interest_apart( allow_in_sample_reference=True, ) - assert _FakeQRF.fit_weight_kinds == ["design", "importance", "importance"] + # The reference forest is fitted once per cross-fit fold in use (the + # transport receipt's ``folds``), all under its one fit record. + assert _FakeQRF.fit_weight_kinds == [ + "design", + *["importance"] * result.stage1_transport["folds"], + "importance", + ] assert [ (record.fit_name, record.weight_kind) for record in result.fit_weight_records ] == [ @@ -983,9 +989,19 @@ def predict_from_uniforms(self, predictors, *, quantiles, sign_uniforms): ) stage1 = captured["stage1"] assert stage1["rows"] == result.spi_prediction_rows == 3 - assert {"has_pay", "has_trade", "at_or_over_spa", "main_source_pay", "age"} <= set( - stage1["columns"] - ) + assert { + "has_pay", + "has_trade", + "at_or_over_spa", + "main_source_pay", + } <= set(stage1["columns"]) + # The forest reads the band, one-hot so that composites are a category of + # their own, never the age drawn inside it (uk-data#628; Vahid's review of + # #1426). + band = spi_income.SPI_STAGE1_AGE_BAND_COLUMN + assert band not in stage1["columns"] + assert any(column.startswith(f"{band}_") for column in stage1["columns"]) + assert "age" not in stage1["columns"] # The no-analogue leaf's sign uniform is the identity-keyed one for the # drawn recipients, in their order. age_domain = (result.person[channel] == "spi") & result.person["age"].ge(16) @@ -1066,3 +1082,127 @@ def test_the_stage_resets_the_esa_group_and_clears_a_loss_beside_a_profit( profit = person.loc[drawn, "self_employment_income"].to_numpy() > 0.0 assert profit.any() assert (person.loc[drawn, "trading_loss"].to_numpy()[profit] == 0.0).all() + + +def test_spi_pay_floor_reads_the_engines_minimum_wage_for_the_build_year() -> None: + floor = spi_income.load_spi_employment_pay_floor(2024) + assert floor.instant == "2024-04-30" + assert floor.weeks_in_year == 52.0 + assert spi_income.SPI_EMPLOYMENT_PAY_FLOOR_PARAMETER in floor.source + # 2024-25: the national living wage from 21 (S.I. 2024/432), £8.60 from 18 + # and £6.40 below. + np.testing.assert_allclose( + floor.hourly_rate(np.array([16, 17, 18, 20, 21, 30, 70])), + [6.40, 6.40, 8.60, 8.60, 11.44, 11.44, 11.44], + ) + + +def test_spi_pay_floor_lifts_drawn_pay_before_employment_income_and_stage2( + monkeypatch, tmp_path +) -> None: + """The floor moves only drawn PAY, before employment_income is derived. + + FRS rows and every other leaf keep their values, the transport receipt is + the unfloored draw's, and a floored row's year of pay stays the tape's. + """ + + support = _dead_support() + person = support.person.copy() + # The spine annualises usual weekly hours at frs_spine.WEEKS_IN_YEAR (52). + hours = 35 * 52 + person["hours_worked"] = hours + # A twin without a trade, so its hours are all employee hours. + person["self_employment_income"] = 0.0 + # A copy carries its twin's age and pay. The floor is the hours at the + # lower of the minimum wage and the twin's own hourly pay (uk-data#629): + # these twins earn £20 an hour, above every age's rate, but lineage 104's + # earns £5, which caps its copy's floor. + lineage = person["person_source_id"] + person.loc[lineage.eq(101), "age"] = 19 + person["employment_income"] = hours * 20.0 + person.loc[lineage.eq(104), "employment_income"] = hours * 5.0 + for column in spi_income.FRS_ANNUAL_INCOME_OUTPUT_COLUMNS: + person[column] = 1.0 if column in spi_income.ANNUAL_SHARE_COLUMNS else 0.0 + support = replace(support, person=person) + donor_path = tmp_path / SPI_DONOR_FILENAME + _write_donor(donor_path) + monkeypatch.setattr(spi_income, "QRF", _FakeQRF) + _bypass_reviewed_donor_identity(monkeypatch) + options = dict( + seed=9, + n_estimators=3, + donor_sample_size=None, + state_pension_age=66, + allow_in_sample_reference=True, + ) + unfloored = impute_uk_spi_income_support(support, donor_path, **options) + floor = spi_income.load_spi_employment_pay_floor(2024) + floored = impute_uk_spi_income_support( + support, donor_path, employment_pay_floor=floor, **options + ) + + drawn = floored.person[spi_income.SPI_INCOME_RECIPIENT_COLUMN].to_numpy(bool) + assert drawn.any() + ages = floored.person.loc[drawn, "age"].to_numpy(dtype=float) + twin_rate = ( + support.person.loc[floored.person.index[drawn], "employment_income"].to_numpy( + dtype=float + ) + / hours + ) + expected = hours * np.minimum(floor.hourly_rate(ages), twin_rate) + assert (twin_rate < floor.hourly_rate(ages)).any() + np.testing.assert_allclose( + floored.person.loc[drawn, SPI_HMRC_PAY_COLUMN].to_numpy(), expected + ) + assert ( + unfloored.person.loc[drawn, SPI_HMRC_PAY_COLUMN].to_numpy() < expected + ).all() + # The annual share puts the year's pay back at the tape's draw. + np.testing.assert_allclose( + floored.person.loc[drawn, "employment_income"].to_numpy() + * floored.person.loc[drawn, spi_income.EMPLOYMENT_INCOME_ANNUAL_SHARE], + unfloored.person.loc[drawn, "employment_income"].to_numpy(), + ) + np.testing.assert_allclose( + floored.person.loc[drawn, "employment_income"].to_numpy(), + floored.person.loc[ + drawn, + [ + SPI_HMRC_PAY_COLUMN, + SPI_HMRC_EMPLOYMENT_BENEFITS_COLUMN, + SPI_HMRC_TAXABLE_TERMINATION_PAY_COLUMN, + ], + ] + .sum(axis=1) + .to_numpy(), + ) + untouched = [ + column + for column in floored.person.columns + if column + not in { + SPI_HMRC_PAY_COLUMN, + "employment_income", + # Pension coherence prices a row's employer contribution at its + # twin's rate on the row's own pay. + "employer_pension_contributions", + spi_income.EMPLOYMENT_INCOME_ANNUAL_SHARE, + SPI_HMRC_EMPLOYED_INCOME_COLUMN, + SPI_HMRC_TOTAL_EARNED_INCOME_COLUMN, + HMRC_SPI_ASSESSABLE_INCOME_COLUMN, + } + and not column.startswith("hmrc_spi_total") + ] + pd.testing.assert_frame_equal( + floored.person.loc[~drawn], unfloored.person.loc[~drawn] + ) + pd.testing.assert_frame_equal( + floored.person.loc[drawn, untouched], unfloored.person.loc[drawn, untouched] + ) + assert floored.stage1_transport == unfloored.stage1_transport + assert unfloored.employment_pay_floor is None + receipt = floored.employment_pay_floor + assert receipt["step"] == "spi_employment_pay_floor_before_stage2" + # The floored rows rest on three to nine source households: a banded count. + assert receipt["floored"]["source_households"] == "3-9" diff --git a/packages/microcosm-build/tests/engine/uk/test_uk_spi_permitted_work_limit.py b/packages/microcosm-build/tests/engine/uk/test_uk_spi_permitted_work_limit.py new file mode 100644 index 0000000000..1522761e22 --- /dev/null +++ b/packages/microcosm-build/tests/engine/uk/test_uk_spi_permitted_work_limit.py @@ -0,0 +1,34 @@ +"""SPI copies take their twin's contributory JSA and ESA within each benefit's +work limits, read from policyengine-uk's own variable and parameters +(microcosm#1095 B10). +""" + +from __future__ import annotations + +from microcosm.build.uk_runtime.spi_benefit_coherence import ( + uk_spi_permitted_work_limit, +) + + +def test_the_esa_limit_is_the_engines_permitted_work_limit_for_the_year() -> None: + # 16 hours at the national living wage, rounded up to the next 50p (ESA + # Regs 2008 reg 45(4) and (9A)): GBP 11.44 in 2024-25, GBP 12.21 in 2025-26. + assert uk_spi_permitted_work_limit(2024).esa_weekly_limit == 183.5 + assert uk_spi_permitted_work_limit(2025).esa_weekly_limit == 195.5 + limit = uk_spi_permitted_work_limit("2024") + assert limit.year == 2024 + assert limit.esa_hours_limit == 16.0 + assert limit.source.endswith("claimant_hours at 2024") + + +def test_the_jsa_limits_are_the_engines_rates_for_the_year() -> None: + # The 2024-25 and 2025-26 age-related amounts, the GBP 5 disregard and + # 16 hours of remunerative work: the year's own rates, as formulas read + # them, not the year before's. + limit = uk_spi_permitted_work_limit(2024) + assert (limit.jsa_amount_under_25, limit.jsa_amount_from_25) == (71.7, 90.5) + assert limit.jsa_earnings_disregard == 5.0 + assert limit.jsa_remunerative_hours == 16.0 + later = uk_spi_permitted_work_limit(2025) + assert (later.jsa_amount_under_25, later.jsa_amount_from_25) == (72.9, 92.05) + assert list(limit.jsa_amount([24, 25])) == [71.7, 90.5] diff --git a/packages/microcosm-build/tests/engine/uk/test_uk_vehicle_excise_duty_inputs.py b/packages/microcosm-build/tests/engine/uk/test_uk_vehicle_excise_duty_inputs.py new file mode 100644 index 0000000000..8c2d4ba62e --- /dev/null +++ b/packages/microcosm-build/tests/engine/uk/test_uk_vehicle_excise_duty_inputs.py @@ -0,0 +1,135 @@ +"""policyengine-uk charges vehicle excise duty on the LCFS car step's inputs (microcosm#1095 B3). + +The ``assign_car_attributes_from_nts`` step writes five person inputs no +earlier stage wrote. The export-surface gate checks only that they are +allow-listed, so these checks hold the step to the engine it is locked with: +each is a person input there whose default is what a person without a car +keeps, the fuel types are the engine's names, the duty regimes start where +the engine's do, each CO2 band's midpoint is charged its own band's rate, and +on the step's ISO dates the engine charges each regime's duty. +""" + +from __future__ import annotations + +from datetime import date + +import pytest + +from microcosm.build.uk_runtime.nts_car_attributes import ( + UK_CAR_INPUT_COLUMNS, + UK_CAR_INPUT_DEFAULTS, + UK_FIRST_YEAR_CO2_MIDPOINTS, + UK_GRADUATED_CO2_MIDPOINTS, + UK_VED_GRADUATED_START, + UK_VED_MODERN_START, +) + +#: The step's reference date, 1 October 2025, sits in rate year 2025-26. +YEAR = 2025 + + +@pytest.fixture(scope="module") +def system(): + from policyengine_uk import CountryTaxBenefitSystem + + return CountryTaxBenefitSystem() + + +@pytest.fixture(scope="module") +def duty(system): + return system.parameters(f"{YEAR}-06-01").gov.dft.vehicle_excise_duty + + +def test_every_car_input_is_an_engine_person_input_with_the_steps_default( + system, +) -> None: + for column in UK_CAR_INPUT_COLUMNS: + variable = system.variables[column] + assert variable.entity.key == "person", column + assert variable.definition_period == "year", column + assert not variable.formulas, column + default = variable.default_value + if column == "car_fuel_type": + default = default.name + elif column == "car_first_registration_date": + default = default.isoformat() + assert default == UK_CAR_INPUT_DEFAULTS[column], column + assert { + value.name for value in system.variables["car_fuel_type"].possible_values + } == { + "PETROL", + "DIESEL_RDE2", + "DIESEL_NON_RDE2", + "ALTERNATIVE_FUEL", + "ELECTRIC", + } + # The list price the step leaves alone charges no supplement. + assert system.variables["car_list_price"].default_value == 0 + + +def test_the_duty_regimes_start_where_the_engines_do(duty) -> None: + assert date(*duty.modern_registration_start) == UK_VED_MODERN_START + assert date(*duty.graduated_registration_start) == UK_VED_GRADUATED_START + + +def test_each_band_midpoint_is_charged_its_own_bands_rate(duty) -> None: + """The NTS bands are the engine's brackets in order, one to one.""" + + for scale, midpoints in ( + (duty.first_year, UK_FIRST_YEAR_CO2_MIDPOINTS), + (duty.graduated, UK_GRADUATED_CO2_MIDPOINTS), + ): + assert len(scale.thresholds) == len(midpoints) + for band, midpoint in midpoints.items(): + assert scale.calc(midpoint, right=True) == scale.amounts[band - 1], band + + +def test_the_engine_charges_each_regimes_duty_on_the_steps_inputs(duty) -> None: + from policyengine_uk import Simulation + + cars = { + # Registered in the rate year: the first-year rate. + "new": ("PETROL", 121.0, 1400.0, "2025-06-01", False), + "new_diesel": ("DIESEL_NON_RDE2", 121.0, 2000.0, "2025-06-01", False), + # The standard rate after the first licence, electric cars too. + "modern": ("PETROL", 121.0, 1400.0, "2019-05-01", False), + "electric": ("ELECTRIC", 0.0, 0.0, "2020-05-01", False), + # Table A to M by CO2, then engine size before March 2001. + "graduated": ("DIESEL_NON_RDE2", 158.0, 2000.0, "2010-05-01", False), + "engine": ("PETROL", 0.0, 2000.0, "1999-01-01", False), + "exempt": ("PETROL", 121.0, 1400.0, "2019-05-01", True), + "none": tuple(UK_CAR_INPUT_DEFAULTS[c] for c in UK_CAR_INPUT_COLUMNS), + } + people = { + name: {"age": {YEAR: 40}} + | { + column: {YEAR: value} + for column, value in zip(UK_CAR_INPUT_COLUMNS, inputs, strict=True) + } + for name, inputs in cars.items() + } + simulation = Simulation( + situation={ + "people": people, + "benunits": {f"{name}_unit": {"members": [name]} for name in people}, + "households": {"household": {"members": list(people)}}, + } + ) + charged = dict( + zip(people, simulation.calculate("car_vehicle_excise_duty", YEAR), strict=True) + ) + assert charged == pytest.approx( + { + "new": duty.first_year.calc(121.0, right=True), + "new_diesel": duty.first_year_diesel_non_rde2.calc(121.0, right=True), + "modern": duty.standard_rate, + "electric": duty.standard_rate, + "graduated": duty.graduated.calc(158.0, right=True), + "engine": duty.large_engine_rate, + "exempt": 0.0, + "none": 0.0, + } + ) + assert simulation.calculate("vehicle_excise_duty", YEAR).sum() == pytest.approx( + sum(charged.values()) + ) diff --git a/packages/microcosm-build/tests/engine_free/shared/test_country_spec.py b/packages/microcosm-build/tests/engine_free/shared/test_country_spec.py index 710c1b5918..b7a06ead53 100644 --- a/packages/microcosm-build/tests/engine_free/shared/test_country_spec.py +++ b/packages/microcosm-build/tests/engine_free/shared/test_country_spec.py @@ -1075,6 +1075,8 @@ def test_spi_spine_adds_no_country_package_resources(self) -> None: "hmrc_stamp_tax_facts.json", "hmrc_isa_statistics_facts.json", "hmrc_benefits_in_kind_facts.json", + # microcosm#1095: dense builds only, uk_runtime.property_localisation. + "scotgov_chargeable_dwellings_by_band.json", "dwp_move_to_uc_facts.json", "dwp_uc_award_band_facts.json", "obr_hvcts_costing_facts.json", @@ -1191,8 +1193,8 @@ def test_uk_source_manifest_contains_only_canonical_spine_stages(self) -> None: # microcosm#1240 high_value_home_support between them, microcosm#1112 # regional_home_values after it, and microcosm#1095 property_purchases # after property_components and uc_legacy_closure_take_up after - # uc_capital_coherence; microcosm#1319 carers_allowance_take_up after - # child_benefit_take_up; childcare_copy_take_up last, after every copy + # uc_capital_coherence; microcosm#1319 carers_allowance_take_up, after + # salary_sacrifice since microcosm#1095 B5; childcare_copy_take_up last, after every copy # stage; microcosm#1334 uc_take_up after uc_capital_coherence and # frs_annual_income_spells after frs_hmrc_spine_leaves; microcosm#1428 # trading_allowance_receipts last; company_cars right after @@ -1242,6 +1244,8 @@ def test_uk_package_loads(self) -> None: "hmrc_stamp_tax_facts.json", "hmrc_isa_statistics_facts.json", "hmrc_benefits_in_kind_facts.json", + # microcosm#1095: dense builds only, uk_runtime.property_localisation. + "scotgov_chargeable_dwellings_by_band.json", "dwp_move_to_uc_facts.json", "dwp_uc_award_band_facts.json", "obr_hvcts_costing_facts.json", @@ -1609,6 +1613,7 @@ def test_declares_the_full_june_battery(self, manifest) -> None: "uk_stage_frs_annual_income_spells", "uk_stage_spi_support_channel_mass", "uk_stage_hmrc_spi_income_spine_identity", + "uk_stage_hmrc_spi_income_spine_hourly_pay", "uk_stage_spi_benefit_coherence", "uk_stage_uc_take_up", "uk_stage_pension_credit_take_up", @@ -1748,6 +1753,7 @@ def test_strict_absent_evidence_entries_are_declared(self, manifest) -> None: "uk_stage_frs_annual_income_spells", "uk_stage_spi_support_channel_mass", "uk_stage_hmrc_spi_income_spine_identity", + "uk_stage_hmrc_spi_income_spine_hourly_pay", "uk_stage_spi_benefit_coherence", "uk_stage_uc_take_up", "uk_stage_pension_credit_take_up", diff --git a/packages/microcosm-build/tests/engine_free/uk/test_uk_carers_allowance_take_up.py b/packages/microcosm-build/tests/engine_free/uk/test_uk_carers_allowance_take_up.py index c56e3b0016..6cb4ba6183 100644 --- a/packages/microcosm-build/tests/engine_free/uk/test_uk_carers_allowance_take_up.py +++ b/packages/microcosm-build/tests/engine_free/uk/test_uk_carers_allowance_take_up.py @@ -941,12 +941,13 @@ def test_the_packaged_stage_carries_the_reviewed_operations_in_order() -> None: assert assign.parameters["seed"] == 0 order = [stage.stage for stage in load_country_spec("uk").sources.stages] position = order.index(ca.CARERS_ALLOWANCE_TAKE_UP_STAGE_NAME) - # After the SPI income chain and the other take-up redraws, before the - # deduction attributes and every CGT clone. - assert order[position - 1] == "child_benefit_take_up" - assert order[position + 1] == "uc_deduction_attributes" - assert position > order.index("hmrc_spi_income_spine") - assert position < order.index("cgt_support_split") + # After the SPI income chain, the other take-up redraws and + # salary_sacrifice, whose converted pay the earnings test reads, so after + # every CGT copy too, which draws as the member it copies (microcosm#1095 + # B5). + assert order[position - 1] == "salary_sacrifice" + assert position > order.index("child_benefit_take_up") + assert position > order.index("cgt_residential_split") def test_a_drifted_manifest_is_refused() -> None: @@ -1138,3 +1139,207 @@ def test_the_stage_draws_the_same_carers_whatever_the_row_order() -> None: _run(shuffled, rate=0.6).frame.table("person").set_index("person_id")[_OUTPUT] ) pd.testing.assert_series_equal(again.loc[first.index], first) + + +def _cgt_lineage(household: pd.DataFrame) -> pd.DataFrame: + """``household`` with every CGT lineage column, each row an original.""" + + household = household.copy() + n = len(household) + household["source_household_id"] = household["household_id"].astype("int64") + household["household_support_channel"] = "frs" + household["household_support_clone_index"] = np.zeros(n, dtype="int64") + household["household_is_cgt_support_copy"] = np.zeros(n, dtype=bool) + household["cgt_support_copy_index"] = np.zeros(n, dtype="int64") + household["household_is_capital_gains_clone"] = np.zeros(n, dtype=bool) + household["household_is_cgt_residential_clone"] = np.zeros(n, dtype=bool) + household["cgt_residential_clone_index"] = np.zeros(n, dtype="int64") + return household + + +def test_a_cgt_copy_draws_as_the_member_it_copies() -> None: + """Since the stage runs after salary_sacrifice it sees the CGT stages' + copies; a member of a copy is keyed on the member at the same rank of the + household it copies, and an SPI support copy on itself (microcosm#1095 + B5).""" + + household = _cgt_lineage(pd.DataFrame({"household_id": [1, 2, 3, 4]})) + household["source_household_id"] = np.array([7, 7, 7, 7], dtype="int64") + # 2 is the incidence clone of 1, 3 its support copy, 4 an SPI copy. + household.loc[1, "household_is_capital_gains_clone"] = True + household.loc[2, "household_is_cgt_support_copy"] = True + household.loc[2, "cgt_support_copy_index"] = 1 + household.loc[3, "household_support_channel"] = "spi" + household.loc[3, "household_support_clone_index"] = 1 + person = pd.DataFrame( + { + "person_id": [12, 11, 1011, 1012, 2012, 2011, 41], + "person_household_id": [1, 1, 2, 2, 3, 3, 4], + } + ) + roots = ca.lineage_roots(person, household) + np.testing.assert_array_equal(roots, [12, 11, 11, 12, 12, 11, 41]) + # Without CGT lineage everyone is their own root. + np.testing.assert_array_equal( + ca.lineage_roots(person, household[["household_id"]]), person["person_id"] + ) + # A copy whose source is not in the frame cannot be keyed. + with pytest.raises(ValueError, match="no member at its rank"): + ca.lineage_roots(person.iloc[2:], household.iloc[1:]) + + +def test_a_source_and_its_copies_take_one_position() -> None: + """A source and its copies, sharing a draw, are placed as one record of + their joint weight, so they claim together, and every other record keeps + the position it took before the copy split the source's weight.""" + + strata = np.array([1, 1, 1, 1, 2]) + identities = np.array([11, 11, 21, 31, 41], dtype="int64") + draws = stable_identity_uniforms(identities, seed=0, salt="test") + split = ca.lineage_balanced_positions( + strata, + draws, + np.array([0.5, 0.5, 1.0, 1.0, 1.0]), + identities=identities, + salt="test", + ) + whole = ca.lineage_balanced_positions( + strata[1:], + draws[1:], + np.array([1.0, 1.0, 1.0, 1.0]), + identities=identities[1:], + salt="test", + ) + assert split[0] == split[1] + np.testing.assert_array_equal(split[1:], whole) + # Distinct identities are placed as the balanced uniforms place them. + np.testing.assert_array_equal( + whole, + weight_balanced_uniforms( + strata[1:], + draws[1:], + np.ones(4), + starts=ca.stratum_starts( + strata[1:], salt="test", identities=identities[1:], draws=draws[1:] + ), + ), + ) + with pytest.raises(ValueError, match="share their draw"): + ca.lineage_balanced_positions( + strata[:2], + np.array([0.1, 0.2]), + np.ones(2), + identities=identities[:2], + salt="test", + ) + + +def test_the_stage_draws_a_cgt_clone_with_the_carer_it_copies() -> None: + """Every carer and their CGT clone, each at half the carer's weight, + claim as the carer alone did at the whole weight (microcosm#1095 B5): a + clone drawn on its own identity would match its carer only by chance.""" + + n = 12 + weights = np.random.default_rng(5).uniform(0.5, 2.0, n) + base = _frame( + care_hours=[40.0] * n, + reported=[0.0] * n, + weekly_pay=[200.0] * n, + weights=weights, + ) + before = _run(base).frame.table("person").set_index("person_id")[_OUTPUT] + person = base.table("person") + benunit = base.table("benunit") + household = _cgt_lineage(base.table("household")) + for source in range(1, n + 1): + clone = household[household["household_id"] == source].copy() + clone["household_id"] = source + 100 + clone["household_is_capital_gains_clone"] = True + members = person[person["person_household_id"] == source].copy() + members["person_id"] += 10_000 + members["person_household_id"] = source + 100 + members["person_benunit_id"] += 1_000 + person = pd.concat([person, members], ignore_index=True) + benunit = pd.concat( + [benunit, pd.DataFrame({"benunit_id": members["person_benunit_id"]})], + ignore_index=True, + ) + household = pd.concat([household, clone], ignore_index=True) + halved = np.r_[weights, weights] / 2.0 + cloned = uk_national_frame( + person=person, + benunit=benunit.sort_values("benunit_id", ignore_index=True), + household=household, + time_period="2024", + weight_kind=WeightKind.DESIGN, + household_weights=halved, + ) + after = _run(cloned).frame.table("person").set_index("person_id")[_OUTPUT] + pd.testing.assert_series_equal(after.loc[before.index], before) + clones = after.loc[before.index + 10_000] + np.testing.assert_array_equal(clones.to_numpy(), before.to_numpy()) + assert 0 < before.sum() < n + + +def test_a_lineage_in_two_strata_is_placed_in_each() -> None: + """Salary sacrifice draws a copy's pay on its own id, so a copy's earnings + band, and so its stratum, can differ from its source's. The lineage is then + a record of each stratum, each placed with its own stratum's start, as if + each stratum were placed alone (B-1's first spine, microcosm#1095 B5).""" + + strata = np.array([1, 2, 1, 2]) + identities = np.array([11, 11, 21, 31], dtype="int64") + draws = stable_identity_uniforms(identities, seed=0, salt="test") + weights = np.array([0.5, 0.5, 1.0, 1.0]) + positions = ca.lineage_balanced_positions( + strata, draws, weights, identities=identities, salt="test" + ) + for code in (1, 2): + rows = strata == code + np.testing.assert_array_equal( + positions[rows], + ca.lineage_balanced_positions( + strata[rows], + draws[rows], + weights[rows], + identities=identities[rows], + salt="test", + ), + ) + + +def test_the_stage_draws_a_clone_whose_pay_left_its_source_s_band() -> None: + """A CGT clone whose pay salary sacrifice moved into another earnings band + draws in that band's stratum, keyed on its source, and every stratum still + claims its rate to within one record (microcosm#1095 B5).""" + + n = 12 + base = _frame(care_hours=[40.0] * n, reported=[0.0] * n, weekly_pay=[200.0] * n) + person = base.table("person") + household = _cgt_lineage(base.table("household")) + clone = household[household["household_id"] == 1].copy() + clone["household_id"] = 101 + clone["household_is_capital_gains_clone"] = True + members = person[person["person_household_id"] == 1].copy() + members["person_id"] += 10_000 + members["person_household_id"] = 101 + members["person_benunit_id"] += 1_000 + # The clone's pay sits three weekly rates above the limit. + members.loc[members["care_hours"] > 0, "employment_income"] = 600.0 * 52.0 + benunit = pd.concat( + [ + base.table("benunit"), + pd.DataFrame({"benunit_id": members["person_benunit_id"]}), + ], + ignore_index=True, + ).sort_values("benunit_id", ignore_index=True) + cloned = uk_national_frame( + person=pd.concat([person, members], ignore_index=True), + benunit=benunit, + household=pd.concat([household, clone], ignore_index=True), + time_period="2024", + weight_kind=WeightKind.DESIGN, + household_weights=np.r_[0.5, np.ones(n - 1), 0.5], + ) + result = _run(cloned).frame.table("person").set_index("person_id")[_OUTPUT] + assert result.loc[[11, 10_011]].notna().all() diff --git a/packages/microcosm-build/tests/engine_free/uk/test_uk_frs_relationships.py b/packages/microcosm-build/tests/engine_free/uk/test_uk_frs_relationships.py index 373b7a9a72..15736cf7b1 100644 --- a/packages/microcosm-build/tests/engine_free/uk/test_uk_frs_relationships.py +++ b/packages/microcosm-build/tests/engine_free/uk/test_uk_frs_relationships.py @@ -445,6 +445,64 @@ def test_older_foster_children_and_other_units_are_not_marked() -> None: assert result.evidence["looked_after_children"] == 0 +def _non_parental(result) -> list[bool]: + return result.person_values["child_limit_non_parental_caring_exception"].tolist() + + +def test_a_child_whose_unit_holds_no_parent_is_in_non_parental_care() -> None: + # A grandparent carer; a lone teenage mother's baby in her parents' unit, + # whose own parent is a child of that unit (UC Regs 2013 Sch 12 para 4). + result = _derive( + [ + _person(1, age=60, hrp=True, rel={2: GRANDPARENT}), + _person(2, age=7, table="child", rel={1: GRANDCHILD}), + ], + [ + _person(1, age=45, hrp=True, rel={2: PARENT, 3: GRANDPARENT}), + _person(2, age=15, table="child", rel={1: CHILD, 3: PARENT}), + _person(3, age=0, table="child", rel={1: GRANDCHILD, 2: CHILD}), + ], + ) + + assert _non_parental(result) == [False, True, False, False, True] + assert result.evidence["non_parental_care_children"] == 2 + + +def test_a_parent_or_step_parent_in_the_unit_leaves_the_child_unmarked() -> None: + # Natural, adopted and step children of either partner, the link read + # from either side of the grid (the child's own entry here reads + # non-relative). + one, two = _couple(code=COHABITEE) + result = _derive( + [ + _person(1, age=40, hrp=True, rel={**one, 3: PARENT, 4: STEP_PARENT}), + _person(2, age=38, rel={**two, 3: STEP_PARENT}), + _person(3, age=12, table="child", rel={1: CHILD, 2: STEP_CHILD}), + _person(4, age=9, table="child", rel={1: NON_RELATIVE, 2: NON_RELATIVE}), + ] + ) + + assert _non_parental(result) == [False, False, False, False] + assert result.evidence["non_parental_care_children"] == 0 + + +def test_placed_children_adults_and_parents_elsewhere_follow_the_unit() -> None: + result = _derive( + [ + # A local authority placement is not a caring arrangement of the + # claimant's own. + _person(1, age=45, hrp=True, rel={2: FOSTER_PARENT, 3: GRANDPARENT}), + _person(2, age=8, table="child", rel={1: FOSTER_CHILD}), + # The parent lives in the household in a benefit unit of their + # own, so the grandparent's unit holds no parent of the child. + _person(3, age=4, table="child", rel={1: GRANDCHILD, 4: CHILD}), + _person(4, age=20, rel={1: CHILD, 3: PARENT}, benunit=2), + ] + ) + + assert _non_parental(result) == [False, False, True, False] + + def test_weighted_cells_and_domains_in_evidence() -> None: person, household, adult, child, raw_household = _tables( [_person(1, age=30, hrp=True)], diff --git a/packages/microcosm-build/tests/engine_free/uk/test_uk_frs_spine.py b/packages/microcosm-build/tests/engine_free/uk/test_uk_frs_spine.py index b8bcaa6449..77406d9753 100644 --- a/packages/microcosm-build/tests/engine_free/uk/test_uk_frs_spine.py +++ b/packages/microcosm-build/tests/engine_free/uk/test_uk_frs_spine.py @@ -3990,6 +3990,7 @@ def test_input_artifact_pins_bind_spi_donor_and_ods() -> None: "nts_trip_tab", "nts_stage_tab", "nts_ticket_tab", + "nts_vehicle_tab", "published_fact_surface", "qrf_donor", "was_person_tab", diff --git a/packages/microcosm-build/tests/engine_free/uk/test_uk_graph.py b/packages/microcosm-build/tests/engine_free/uk/test_uk_graph.py index a7aa7dbab3..bee9da35f7 100644 --- a/packages/microcosm-build/tests/engine_free/uk/test_uk_graph.py +++ b/packages/microcosm-build/tests/engine_free/uk/test_uk_graph.py @@ -126,15 +126,20 @@ def test_uk_production_graph_binds_split_donor_sources_and_runtime_config() -> N "nts_trip", "nts_stage", "nts_ticket", + "nts_vehicle", "lcfs_household", "lcfs_person", "etb", "spi", "hmrc_income", } + # The NTS household and vehicle tabs feed the zero-emission share by income + # fifth and the household-paid road-fuel mix (microcosm#1095 B3). assert graph.node("lcfs_consumption").sources == ( "lcfs_household", "lcfs_person", + "nts_household", + "nts_vehicle", ) assert graph.node("was_lisa").sources == ("was", "was_person") assert graph.node("hmrc_spi_income_spine").sources == ( @@ -459,3 +464,28 @@ def test_property_components_reads_cover_the_stage_inputs() -> None: assert declared is not None required = {("person", column) for column in PROPERTY_COMPONENTS_PERSON_INPUTS} assert required <= declared, sorted(required - declared) + + +def test_spi_benefit_coherence_reads_cover_its_work_tests() -> None: + """The contributory awards' work tests read the copy's earnings and its + twin's hours, and the receipt counts by source household: the node gets + only its declared cells (the 4 November b5j spine failed at the node + before the hours followed).""" + from microcosm.build.uk_runtime.graph import _STAGE_CONSUMES + from microcosm.build.uk_runtime.spi_benefit_coherence import ( + SPI_WITHIN_LIMIT_EARNINGS_COLUMNS, + SPI_WITHIN_LIMIT_HOURS_COLUMN, + SPI_WITHIN_LIMIT_REPORT_COLUMNS, + ) + + declared = _STAGE_CONSUMES["spi_benefit_coherence"] + assert declared is not None + required = { + ("person", column) + for column in ( + *SPI_WITHIN_LIMIT_REPORT_COLUMNS, + *SPI_WITHIN_LIMIT_EARNINGS_COLUMNS, + SPI_WITHIN_LIMIT_HOURS_COLUMN, + ) + } | {("household", "household_source_id")} + assert required <= declared, sorted(required - declared) diff --git a/packages/microcosm-build/tests/engine_free/uk/test_uk_lcfs_consumption.py b/packages/microcosm-build/tests/engine_free/uk/test_uk_lcfs_consumption.py index 5e62943133..a83f2871d3 100644 --- a/packages/microcosm-build/tests/engine_free/uk/test_uk_lcfs_consumption.py +++ b/packages/microcosm-build/tests/engine_free/uk/test_uk_lcfs_consumption.py @@ -920,7 +920,8 @@ def licensed(fuel_type: str) -> float: ) / licensed("all") assert rate == expected assert 0.95 < rate < 0.97 - assert receipt["rule"] == "per_car_zero_emission_share" + # Since microcosm#1095 B3 (J2) the declared rule grades the share by income. + assert receipt["rule"] == "per_car_zero_emission_share_by_income_quintile" assert receipt["period_value"] == 2024 assert receipt["geography_id"] == "K03000001" assert set(receipt["zero_emission_licensed_cars"]) == { @@ -1527,7 +1528,10 @@ def _synthetic_lcfs_stage(household_columns=None, *, excise=True, gambling=True) the gambling top-up's stake forest are shrunk to four trees. ``household_columns(n)`` adds frame columns; with ``excise=False`` the excise step is dropped, and with it the top-up that re-keys it; with - ``gambling=False`` the top-up alone. + ``gambling=False`` the top-up alone. The fuel flag's income gradient reads + synthetic NTS cars (microcosm#1095 B3, J2); the road-fuel level keeps one + factor, since K's household mix reads the dropped uprating's litre-proxy + rows (its own tests cover it). """ import dataclasses @@ -1555,6 +1559,15 @@ def _synthetic_lcfs_stage(household_columns=None, *, excise=True, gambling=True) kind=operation.kind, parameters={**operation.parameters, "n_estimators": 4}, ) + if operation.kind == "level_road_fuel": + operation = SourceOperationSpec( + kind=operation.kind, + parameters={ + key: value + for key, value in operation.parameters.items() + if key not in ("mix_rule", "nts_cars") + }, + ) operations.append(operation) stage = dataclasses.replace(committed, operations=tuple(operations)) @@ -1629,15 +1642,42 @@ def materialize(self, frame, variables, period): "household_gross_income" ].to_numpy() * 0.2, + # The fuel flag's income fifths divide by the equivalence scale. + "household_equivalisation_bhc": np.full(rows, 1.5), } return {name: values.get(name, np.zeros(rows)) for name in variables} + # Thirty kept cars an income fifth, 10 + 2q of them zero-emission. + fifth = np.repeat(np.arange(1, 6), 30) + position = np.tile(np.arange(30), 5) + nts_household = pd.DataFrame( + {"HouseholdID": np.arange(1, 151), "W3": 1.0, "HHIncQISEngTS_B01ID": fifth} + ) + nts_vehicle = pd.DataFrame( + { + "HouseholdID": np.arange(1, 151), + "SurveyYear": 2024, + "VehType_B03ID": 1, + "CarOwn_B01ID": 1, + "VehPropTypeTS_B01ID": np.where(position % 2 == 0, 1, 2), + "VehCO2Bands_B01ID": np.where(position < 10 + 2 * fifth, 1, 7), + "VehAnMileage": 6000.0, + "VehComMile": 1000.0, + "VehPriMile": 4000.0, + # The vehicle excise duty inputs' Table A-M band, engine size and age. + "VehCO2Tax2008_B01ID": np.where(position < 10 + 2 * fifth, 1, 4), + "EngineCap": 1400.0, + "VehAge_B01ID": 1 + position % 14, + } + ) donor_person, donor_household = _synthetic_lcfs_donor() transform = UKLCFSConsumptionStageTransform( stage=stage, engine=_Engine(), lcfs_household=donor_household, lcfs_person=donor_person, + nts_household=nts_household, + nts_vehicle=nts_vehicle, ) return SimpleNamespace( transform=transform, @@ -1662,6 +1702,7 @@ def test_stage_transform_prices_bus_fares_from_journeys() -> None: from microcosm.build.uk_runtime.lcfs_consumption import ( UK_LCFS_CONSUMPTION_ENGINE_PREDICTORS, UK_LCFS_CONSUMPTION_OUTPUT_COLUMNS, + UK_LCFS_CONSUMPTION_PERSON_OUTPUT_COLUMNS, ) synthetic = _synthetic_lcfs_stage() @@ -1676,6 +1717,10 @@ def test_stage_transform_prices_bus_fares_from_journeys() -> None: out = result.table("household") assert set(UK_LCFS_CONSUMPTION_OUTPUT_COLUMNS) <= set(out.columns) + # The vehicle excise duty inputs are the person's (microcosm#1095 B3). + assert set(UK_LCFS_CONSUMPTION_PERSON_OUTPUT_COLUMNS) <= set( + result.table("person").columns + ) # The 20 chain targets (the heating fuels after the spend targets, # pe-uk#2572) and the five excise shares (microcosm#1359), the road-fuel # redraw's total and petrol share, the prepayment-meter flag @@ -1864,6 +1909,18 @@ def test_stage_transform_prices_bus_fares_from_journeys() -> None: assert evidence["energy_pricing"]["level"]["period_type"] == "calendar_year" assert evidence["bus_pricing"]["price_year"] == 2024 for gate in gates: + if gate.parameters["check"] == "road_fuel_level": + # The committed level declares K's household mix (microcosm#1095 + # B3), which reads the dropped uprating's litre-proxy rows: this + # run levels by one factor, so the gate refuses on exactly that. + with pytest.raises(ValueError, match="road_fuel_level.mix must be"): + uk_stage_health_gate( + evidence=evidence, + stage="lcfs_consumption", + check=gate.parameters["check"], + parameters=gate.parameters, + ) + continue checked = uk_stage_health_gate( evidence=evidence, stage="lcfs_consumption", @@ -2578,6 +2635,372 @@ def test_level_road_fuel_scales_both_fuels_by_one_factor() -> None: level_road_fuel(draws * 0.0, level=level, weights=weights) +def _nts_car_rows(**columns) -> pd.DataFrame: + """NTS cars as ``nts_cars`` returns them: lower-cased columns, one row a car.""" + + base = { + "householdid": 1, + "surveyyear": 2024, + "vehtype_b03id": 1, + "carown_b01id": 1, + "vehproptypets_b01id": 1, + "vehco2bands_b01id": 5, + "vehanmileage": 5000.0, + "vehcommile": 0.0, + "vehprimile": 5000.0, + "w3": 1.0, + "hhincqisengts_b01id": 1, + } + length = max(len(value) for value in columns.values()) + return pd.DataFrame( + {key: columns.get(key, [value] * length) for key, value in base.items()} + ) + + +def test_nts_cars_keeps_the_declared_cars_with_their_households() -> None: + """microcosm#1095 B3: 2022-2024's cars and four-by-fours, at W3 and the fifth.""" + + from microcosm.build.uk_runtime.lcfs_consumption import nts_cars + + vehicle = pd.DataFrame( + { + "HouseholdID": [1, 1, 2, 3, 4], + "SurveyYear": [2022, 2024, 2023, 2019, 2024], + "VehType_B03ID": [1, 3, 2, 1, 1], + "CarOwn_B01ID": [1, 2, 1, 1, 1], + "VehPropTypeTS_B01ID": [1, 2, 1, 1, 3], + "VehCO2Bands_B01ID": [5, 1, 3, 2, 1], + "VehAnMileage": [5000, 8000, 3000, 4000, 6000], + "VehComMile": [1000, 0, 0, 0, 0], + "VehPriMile": [3500, 2000, 3000, 4000, 6000], + "VehCO2Tax2008_B01ID": [3, 1, 2, 1, 1], + "EngineCap": [1400, 2000, 125, 1600, 0], + "VehAge_B01ID": [6, 2, 12, 9, 3], + } + ) + household = pd.DataFrame( + { + "HouseholdID": [1, 2, 3, 4], + "W3": [1.5, 2.0, 1.0, 0.5], + "HHIncQISEngTS_B01ID": [1, 2, 3, 5], + } + ) + + cars = nts_cars(vehicle, household) + + # The motorcycle (type 2) and the 2019 car are left out. + assert cars["householdid"].tolist() == [1, 1, 4] + assert cars["w3"].tolist() == [1.5, 1.5, 0.5] + assert cars["hhincqisengts_b01id"].tolist() == [1, 1, 5] + with pytest.raises(ValueError, match="positive interview weight"): + nts_cars(vehicle, household.assign(W3=[1.5, 2.0, 1.0, 0.0])) + with pytest.raises(pd.errors.MergeError): + nts_cars(vehicle, pd.concat([household, household.iloc[:1]])) + with pytest.raises(ValueError, match="required column"): + nts_cars(vehicle.drop(columns="VehPriMile"), household) + + +def _graded_cars() -> pd.DataFrame: + """Twenty kept, linked cars a fifth, 2q of them zero-emission in fifth q.""" + + fifth = np.repeat(np.arange(1, 6), 20) + position = np.tile(np.arange(20), 5) + cars = _nts_car_rows( + hhincqisengts_b01id=fifth.tolist(), + vehco2bands_b01id=np.where(position < 2 * fifth, 1, 6).tolist(), + ) + # Neither a company car, a car with no linked band nor one of unknown + # fifth counts, zero-emission or not. + extra = _nts_car_rows( + hhincqisengts_b01id=[1, 1, -8], + carown_b01id=[2, 1, 1], + vehco2bands_b01id=[1, -8, 1], + ) + return pd.concat([cars, extra], ignore_index=True) + + +def test_zero_emission_relative_risks_grade_kept_linked_cars_by_fifth() -> None: + from microcosm.build.uk_runtime.lcfs_consumption import ( + zero_emission_relative_risks, + ) + + risks, receipt = zero_emission_relative_risks(_graded_cars(), minimum_cars=2) + + # Fifth q's share is q / 10 against 0.3 overall. + assert risks == pytest.approx({q: q / 3 for q in range(1, 6)}) + assert receipt["zero_emission_share"] == pytest.approx(0.3) + assert receipt["fifths"] == [[1], [2], [3], [4], [5]] + assert receipt["zero_emission_cars"] == { + "1": "<3", + "2": "3-9", + "3": "3-9", + "4": "3-9", + "5": "10-29", + } + assert receipt["linked_share"] == pytest.approx(100 / 101) + # Weights count: a heavier fifth-5 zero-emission car lifts that fifth. + heavier = _graded_cars() + heavier.loc[80, "w3"] = 11.0 + lifted, _ = zero_emission_relative_risks(heavier, minimum_cars=2) + assert lifted[5] > risks[5] + with pytest.raises(ValueError, match="no zero-emission car"): + zero_emission_relative_risks( + _graded_cars().assign(vehco2bands_b01id=6), minimum_cars=2 + ) + + +def test_zero_emission_relative_risks_pool_a_thin_fifth_with_its_neighbour() -> None: + from microcosm.build.uk_runtime.lcfs_consumption import ( + zero_emission_relative_risks, + ) + + risks, receipt = zero_emission_relative_risks(_graded_cars(), minimum_cars=5) + + # Fifth 1 (two cars) pools toward the middle with fifth 2 (four): 6 of 40. + assert receipt["fifths"] == [[1, 2], [3], [4], [5]] + assert risks[1] == risks[2] == pytest.approx(0.15 / 0.3) + assert risks[3] == pytest.approx(1.0) + assert set(receipt["zero_emission_cars"]) == {"1+2", "3", "4", "5"} + with pytest.raises(ValueError, match="fewer than 31"): + zero_emission_relative_risks(_graded_cars(), minimum_cars=31) + + +def test_frame_income_quintiles_rank_equivalised_income_at_household_weight() -> None: + from microcosm.build.uk_runtime.lcfs_consumption import frame_income_quintiles + + income = np.arange(10.0, 101.0, 10.0) + assert frame_income_quintiles(income, np.ones(10), np.ones(10)).tolist() == [ + 1, + 1, + 2, + 2, + 3, + 3, + 4, + 4, + 5, + 5, + ] + # The scale divides: the top earner, ten strong, ranks lowest. + scale = np.ones(10) + scale[-1] = 10.0 + assert frame_income_quintiles(income, scale, np.ones(10))[-1] == 1 + # Weights move the cut points: the lowest household holding half the + # weight fills the bottom two fifths alone. + weights = np.ones(10) + weights[0] = 9.0 + assert frame_income_quintiles(income, np.ones(10), weights)[1] == 3 + with pytest.raises(ValueError, match="positive equivalence scale"): + frame_income_quintiles(income, np.zeros(10), np.ones(10)) + + +def test_zero_emission_share_by_household_keeps_the_national_share_over_the_cars() -> ( + None +): + from microcosm.build.uk_runtime.lcfs_consumption import ( + zero_emission_share_by_household, + ) + + risks = {1: 0.5, 2: 1.0, 3: 1.0, 4: 1.5, 5: 2.0} + vehicles = np.array([1, 2, 1, 1, 1, 0]) + weights = np.array([1.0, 1.0, 3.0, 1.0, 2.0, 5.0]) + share, receipt = zero_emission_share_by_household( + 0.04, risks, [1, 2, 3, 4, 5, 5], vehicles=vehicles, weights=weights + ) + + cars = weights * vehicles + assert np.average(share, weights=cars) == pytest.approx(0.04) + assert share[4] / share[0] == pytest.approx(4.0) + assert receipt["national_share"] == 0.04 + assert sum(receipt["frame_car_share_by_fifth"].values()) == pytest.approx(1.0) + assert receipt["share_by_fifth"]["5"] == pytest.approx(share[4]) + with pytest.raises(ValueError, match="outside"): + zero_emission_share_by_household( + 0.9, risks, [1, 2, 3, 4, 5, 5], vehicles=vehicles, weights=weights + ) + with pytest.raises(ValueError, match="no vehicles"): + zero_emission_share_by_household( + 0.04, risks, [1] * 6, vehicles=np.zeros(6), weights=weights + ) + + +def test_fuel_flag_by_income_keeps_the_uniforms_and_moves_only_the_threshold() -> None: + """microcosm#1095 B3 (J2): the household's own share replaces 1 - rate.""" + + ids = np.arange(1, 2_001) + vehicles = np.tile([0, 1, 2, 3], 500) + frame = uk_national_frame( + person=pd.DataFrame( + {"person_id": ids, "person_benunit_id": ids, "person_household_id": ids} + ), + benunit=pd.DataFrame({"benunit_id": ids}), + household=pd.DataFrame( + { + "household_id": ids, + "household_weight": np.ones(len(ids)), + "num_vehicles": vehicles, + } + ), + time_period="2024", + ) + rate = 0.7 + flat = assign_recipient_has_fuel(frame, rate=rate, seed=0) + same = assign_recipient_has_fuel( + frame, rate=rate, seed=0, zero_emission_share=np.full(len(ids), 1.0 - rate) + ) + assert same.tolist() == flat.tolist() + # A higher zero-emission share only ever turns a flag off. + higher = assign_recipient_has_fuel( + frame, rate=rate, seed=0, zero_emission_share=np.full(len(ids), 0.5) + ) + assert not bool((higher & ~flat).any()) + assert higher.sum() < flat.sum() + for bad in (np.full(len(ids) - 1, 0.3), np.full(len(ids), 1.0)): + with pytest.raises(ValueError, match="one share in"): + assign_recipient_has_fuel(frame, rate=rate, seed=0, zero_emission_share=bad) + + +def test_household_paid_shares_count_kept_cars_private_and_commuting_miles() -> None: + """microcosm#1095 B3 (K): business and company-car miles are not household-paid.""" + + from microcosm.build.uk_runtime.lcfs_consumption import ( + household_paid_road_fuel_shares, + ) + + cars = _nts_car_rows( + carown_b01id=[1, 2, 1, 1, -8, 1], + vehproptypets_b01id=[1, 1, 1, 2, 2, 2], + vehanmileage=[10000.0, 10000.0, np.nan, 20000.0, 5000.0, 1000.0], + vehcommile=[2000.0, 1000.0, 0.0, 5000.0, 0.0, np.nan], + vehprimile=[6000.0, 5000.0, 0.0, 10000.0, 5000.0, np.nan], + w3=[1.0, 1.0, 1.0, 2.0, 1.0, 1.0], + ) + + shares, receipt = household_paid_road_fuel_shares(cars) + + # Petrol: 8,000 of the kept car's 10,000 miles, none of the company + # car's 10,000; the car with no annual miles is left out. Diesel: the + # kept car's 15,000 of 20,000; a car kept by neither, and a car whose + # miles are not split (blanks, never zeros), are left out. + assert shares == pytest.approx({"petrol_spending": 0.4, "diesel_spending": 0.75}) + petrol = receipt["fuels"]["petrol_spending"] + assert petrol["company_car_share_of_miles"] == pytest.approx(0.5) + assert receipt["fuels"]["diesel_spending"]["company_car_share_of_miles"] == 0.0 + assert receipt["survey_years"] == [2022, 2023, 2024] + with pytest.raises(ValueError, match="no diesel_spending miles"): + household_paid_road_fuel_shares(cars.assign(vehproptypets_b01id=1)) + + +def test_road_fuel_household_mix_weights_cars_litres_by_paid_share_and_price() -> None: + from microcosm.build.country_spec import load_country_spec + from microcosm.build.uk_runtime.lcfs_consumption import ( + _road_fuel_prices_and_litres, + desnz_cars_share_by_fuel, + road_fuel_household_mix, + uprating_operation, + ) + + stage = load_country_spec("uk").sources.stage_map()["lcfs_consumption"] + uprating = uprating_operation(stage) + terms = _road_fuel_prices_and_litres( + uprating, columns=("petrol_spending", "diesel_spending") + ) + cars = desnz_cars_share_by_fuel(int(uprating["to_period"])) + spend = { + column: terms[column]["hmrc_litres_all_road_users"] + * cars[fuel]["cars_share"] + * terms[column]["price_pence_per_litre"] + for column, fuel in ( + ("petrol_spending", "petrol"), + ("diesel_spending", "diesel"), + ) + } + + whole, receipt = road_fuel_household_mix( + stage, {"petrol_spending": 1.0, "diesel_spending": 1.0} + ) + total = sum(spend.values()) + assert whole == pytest.approx({key: value / total for key, value in spend.items()}) + assert receipt["rule"] == "household_paid_litres" + assert receipt["period_value"] == 2024 + half, _ = road_fuel_household_mix( + stage, {"petrol_spending": 1.0, "diesel_spending": 0.5} + ) + assert half["diesel_spending"] == pytest.approx( + 0.5 + * spend["diesel_spending"] + / (spend["petrol_spending"] + 0.5 * spend["diesel_spending"]) + ) + for share in (0.0, 1.2): + with pytest.raises(ValueError, match="outside"): + road_fuel_household_mix( + stage, {"petrol_spending": share, "diesel_spending": 1.0} + ) + + +def test_level_road_fuel_levels_each_fuel_to_its_household_share() -> None: + """microcosm#1095 B3 (K): the level stays; each fuel takes its share of it.""" + + from microcosm.build.uk_runtime.lcfs_consumption import ( + RoadFuelLevel, + level_road_fuel, + ) + + draws = pd.DataFrame( + { + "petrol_spending": [1000.0, 0.0, 500.0, 0.0], + "diesel_spending": [0.0, 300.0, 250.0, 0.0], + } + ) + weights = np.array([2.0, 1.0, 1.0, 5.0]) + level = RoadFuelLevel(5000.0, 0.02, {"operation": "level_road_fuel"}) + mix = {"petrol_spending": 0.6, "diesel_spending": 0.4} + + levelled, receipt = level_road_fuel( + draws, level=level, weights=weights, mix=mix, mix_receipt={"rule": "r"} + ) + + after = levelled.to_numpy() * weights[:, None] + assert after[:, 0].sum() == pytest.approx(4900.0 * 0.6) + assert after[:, 1].sum() == pytest.approx(4900.0 * 0.4) + assert receipt["frame_after"] == pytest.approx(4900.0) + assert receipt["petrol_share_of_level"] == pytest.approx(0.6) + assert receipt["factor"] == pytest.approx(4900.0 / 3050.0) + # Each fuel keeps every household's relative spend. + assert levelled.loc[0, "petrol_spending"] == pytest.approx( + 2.0 * levelled.loc[2, "petrol_spending"] + ) + assert receipt["mix"]["rule"] == "r" + assert receipt["mix"]["drawn_mix"]["petrol_spending"] == pytest.approx(2500 / 3050) + assert receipt["mix"]["frame_after"]["diesel_spending"] == pytest.approx(1960.0) + assert receipt["mix"]["factors"]["diesel_spending"] == pytest.approx(1960.0 / 550.0) + with pytest.raises(ValueError, match="diesel_spending"): + level_road_fuel( + draws.assign(diesel_spending=0.0), level=level, weights=weights, mix=mix + ) + + +def test_road_fuel_level_refuses_a_wrong_mix_declaration() -> None: + from microcosm.build.country_spec import load_country_spec + from microcosm.build.uk_runtime.lcfs_consumption import ( + road_fuel_level, + road_fuel_level_operation, + ) + + declared = road_fuel_level_operation( + load_country_spec("uk").sources.stage_map()["lcfs_consumption"] + ) + assert declared["mix_rule"] == "household_paid_litres" + assert road_fuel_level(declared, other_fuels_share=0.0).receipt["mix_rule"] == ( + "household_paid_litres" + ) + with pytest.raises(ValueError, match="unsupported level_road_fuel mix_rule"): + road_fuel_level({**declared, "mix_rule": "diary"}, other_fuels_share=0.0) + cars = {**declared["nts_cars"], "survey_years": [2023, 2024]} + with pytest.raises(ValueError, match="nts_cars must declare"): + road_fuel_level({**declared, "nts_cars": cars}, other_fuels_share=0.0) + + def test_other_road_fuel_share_is_the_donor_weighted_c72213_share() -> None: from microcosm.build.uk_runtime.lcfs_consumption import ( lcfs_other_road_fuel_share, diff --git a/packages/microcosm-build/tests/engine_free/uk/test_uk_measure_simulation.py b/packages/microcosm-build/tests/engine_free/uk/test_uk_measure_simulation.py index e856f0b7a4..80ffff4780 100644 --- a/packages/microcosm-build/tests/engine_free/uk/test_uk_measure_simulation.py +++ b/packages/microcosm-build/tests/engine_free/uk/test_uk_measure_simulation.py @@ -745,8 +745,9 @@ def test_packaged_exclusions_load(): # and SLC's Scottish and Northern Irish repayment rows (ruling R4: Wales # only binds). The savings follow-up holds the SPI £1m-and-over interest # amount row on its measured distortion (microcosm#1428, María's ruling of - # 2026-10-30). - assert len(names) == len(set(names)) == 45 + # 2026-10-30). microcosm#1426 holds HMRC's High Income Child Benefit Charge count + # and revenue as measured diagnostics (María's ruling of 2026-11-03). + assert len(names) == len(set(names)) == 47 (gas,) = [ entry for entry in exclusions diff --git a/packages/microcosm-build/tests/engine_free/uk/test_uk_measurement_period.py b/packages/microcosm-build/tests/engine_free/uk/test_uk_measurement_period.py index 8c8dd17219..63cc6282dd 100644 --- a/packages/microcosm-build/tests/engine_free/uk/test_uk_measurement_period.py +++ b/packages/microcosm-build/tests/engine_free/uk/test_uk_measurement_period.py @@ -461,6 +461,9 @@ def test_a_frame_without_a_period_label_keeps_the_frame_route(): "attends_private_school", "benefit_cap_reduction", "benunit_tenure_type", + # Engine-computed at the calibration period: the High Income Child + # Benefit Charge, which the HICBC count reads (microcosm#1426). + "CB_HITC", # Engine-computed at the calibration period: the Child Benefit paid and # the children it is paid for (microcosm#1095). "child_benefit", diff --git a/packages/microcosm-build/tests/engine_free/uk/test_uk_nts_car_attributes.py b/packages/microcosm-build/tests/engine_free/uk/test_uk_nts_car_attributes.py new file mode 100644 index 0000000000..197e629ead --- /dev/null +++ b/packages/microcosm-build/tests/engine_free/uk/test_uk_nts_car_attributes.py @@ -0,0 +1,264 @@ +"""policyengine-uk's vehicle excise duty inputs from the NTS cars (microcosm#1095 B3, VED).""" + +from __future__ import annotations + +from datetime import date + +import pandas as pd +import pytest + +from microcosm.build.uk_runtime.nts_car_attributes import ( + UK_CAR_INPUT_COLUMNS, + UK_CAR_INPUT_DEFAULTS, + UK_FIRST_YEAR_CO2_MIDPOINTS, + UK_GRADUATED_CO2_MIDPOINTS, + UK_VED_GRADUATED_START, + UK_VED_MODERN_START, + _donor_pools, + assign_car_attributes, +) + +PARAMETERS = { + "seed": 0, + "salt": "test_car_attributes", + "reference_date": "2025-10-01", + "oldest_age_years": 25, + "default_engine_size_cc": 1600, +} + + +def _nts_cars() -> pd.DataFrame: + """Kept cars in every fifth: a petrol, a diesel, an electric car, each at three ages.""" + + rows = [] + for fifth in range(1, 6): + for fuel, band, graduated in ((1, 7, 4), (2, 8, 6), (3, 1, 1)): + for age in (2, 9, 13): + rows.append( + { + "householdid": fifth, + "carown_b01id": 1, + "vehproptypets_b01id": fuel, + "vehco2bands_b01id": band, + "vehco2tax2008_b01id": graduated, + "enginecap": 0 if fuel == 3 else 1400, + "vehage_b01id": age, + "hhincqisengts_b01id": fifth, + "w3": 1.0, + } + ) + # Neither a company car nor a car without a linked band is a donor. + rows.append({**rows[0], "carown_b01id": 2}) + rows.append({**rows[0], "vehco2bands_b01id": -8}) + return pd.DataFrame(rows) + + +def _frame(): + person = pd.DataFrame( + { + "person_id": [11, 12, 13, 21, 31, 32, 41], + "person_household_id": [1, 1, 1, 2, 3, 3, 4], + "person_benunit_id": [1, 1, 1, 2, 3, 3, 4], + "age": [45, 50, 6, 30, 40, 38, 70], + "company_car_list_price": [0, 0, 0, 0, 30000.0, 0, 0], + # The child's DLA higher-rate mobility exempts a car in the unit. + "dla_m_category": [ + "NONE", + "NONE", + "HIGHER", + "NONE", + "NONE", + "NONE", + "NONE", + ], + "pip_m_category": [ + "NONE", + "NONE", + "NONE", + "NONE", + "NONE", + "NONE", + "ENHANCED", + ], + } + ) + return person, { + "household_ids": [1, 2, 3, 4], + "vehicles": [2, 1, 2, 3], + "weights": [1.0, 2.0, 1.0, 1.0], + "has_fuel": [True, False, True, True], + "fifths": [5, 1, 3, 2], + "zero_emission_share": [0.5, 0.02, 0.02, 0.02], + } + + +def test_cars_go_to_adults_oldest_first_and_skip_company_cars() -> None: + person, households = _frame() + result = assign_car_attributes( + person=person, cars=_nts_cars(), parameters=PARAMETERS, **households + ) + cars = result.person + holds = cars["car_first_registration_date"] != "9999-01-01" + # Household 1: both adults hold a car, the child none. Household 3's + # company-car holder keeps the defaults; its other adult holds its own + # car. Household 4 has one adult for three cars. + assert holds.tolist() == [True, True, False, True, False, True, True] + for column, value in UK_CAR_INPUT_DEFAULTS.items(): + assert cars.loc[2, column] == value + assert cars.loc[4, column] == value + receipt = result.receipt + # Own cars at weight: 2 + 2 x 1 + 1 + 3; assigned 2 + 2 + 1 + 1. + assert receipt["weighted_own_cars"] == pytest.approx(8.0) + assert receipt["assigned_share_of_own_cars"] == pytest.approx(6 / 8) + assert receipt["dropped_share_of_own_cars"] == pytest.approx(2 / 8) + assert receipt["weighted_company_cars_left_out"] == pytest.approx(1.0) + + +def test_fuel_follows_the_households_fuel_flag() -> None: + person, households = _frame() + cars = assign_car_attributes( + person=person, cars=_nts_cars(), parameters=PARAMETERS, **households + ).person + # Household 2 buys no fuel: its car is electric with no CO2 or engine. + assert cars.loc[3, "car_fuel_type"] == "ELECTRIC" + assert cars.loc[3, "car_co2_emissions"] == 0.0 + assert cars.loc[3, "car_engine_size"] == 0.0 + # Household 1's first car, the oldest adult's, burns fuel. + assert cars.loc[1, "car_fuel_type"] in { + "PETROL", + "DIESEL_RDE2", + "DIESEL_NON_RDE2", + "ALTERNATIVE_FUEL", + } + assert set(cars["car_fuel_type"]) <= { + "PETROL", + "DIESEL_RDE2", + "DIESEL_NON_RDE2", + "ALTERNATIVE_FUEL", + "ELECTRIC", + } + + +def test_registration_ages_the_car_from_the_reference_date_and_sets_its_co2() -> None: + person, households = _frame() + cars = assign_car_attributes( + person=person, cars=_nts_cars(), parameters=PARAMETERS, **households + ).person + reference = date(2025, 10, 1) + for row in cars.index[cars["car_first_registration_date"] != "9999-01-01"]: + registered = date.fromisoformat(cars.loc[row, "car_first_registration_date"]) + years = (reference - registered).days / 365.25 + # The donors' bands: half a year to a year, 6-7 and 13-18 years. + assert any( + low - 0.01 <= years <= high + 0.01 + for low, high in ((0.5, 1.0), (6.0, 7.0), (13.0, 18.0)) + ) + co2 = cars.loc[row, "car_co2_emissions"] + fuel = cars.loc[row, "car_fuel_type"] + if fuel == "ELECTRIC": + assert co2 == 0.0 + elif registered >= UK_VED_MODERN_START: + assert co2 in UK_FIRST_YEAR_CO2_MIDPOINTS.values() + else: + assert registered >= UK_VED_GRADUATED_START + assert co2 in UK_GRADUATED_CO2_MIDPOINTS.values() + if fuel.startswith("DIESEL"): + rde2 = registered >= date(2021, 1, 1) + assert fuel == ("DIESEL_RDE2" if rde2 else "DIESEL_NON_RDE2") + + +def test_a_mobility_component_exempts_one_car() -> None: + person, households = _frame() + cars = assign_car_attributes( + person=person, cars=_nts_cars(), parameters=PARAMETERS, **households + ).person + # The child holds no car: the unit's oldest holder's car is exempt. The + # 70-year-old with PIP's enhanced mobility exempts their own. + assert cars["car_is_ved_exempt"].tolist() == [ + False, + True, + False, + False, + False, + False, + True, + ] + + +def test_draws_are_keyed_and_reproducible() -> None: + person, households = _frame() + first = assign_car_attributes( + person=person, cars=_nts_cars(), parameters=PARAMETERS, **households + ).person + # The person table's order does not move a draw. + second = assign_car_attributes( + person=person.sample(frac=1.0, random_state=3), + cars=_nts_cars(), + parameters=PARAMETERS, + **households, + ).person.sort_index() + assert first[list(UK_CAR_INPUT_COLUMNS)].equals(second[list(UK_CAR_INPUT_COLUMNS)]) + other = assign_car_attributes( + person=person, + cars=_nts_cars(), + parameters={**PARAMETERS, "salt": "other"}, + **households, + ).person + assert not first[list(UK_CAR_INPUT_COLUMNS)].equals( + other[list(UK_CAR_INPUT_COLUMNS)] + ) + + +def test_each_linked_car_stands_for_its_fifth_and_age_bands_kept_cars() -> None: + cars = _nts_cars() + # Half fifth 2's newest diesels lack the registration record. + newest = (cars["hhincqisengts_b01id"] == 2) & (cars["vehage_b01id"] == 2) + cars = pd.concat( + [ + cars, + cars[newest & (cars["vehproptypets_b01id"] == 2)].assign( + vehco2bands_b01id=-8, vehco2tax2008_b01id=-8 + ), + ], + ignore_index=True, + ) + pools, linked_share = _donor_pools(cars) + # 3 cars a band in fifth 2, one unlinked beside the newest: 4 / 3. + fuel = pools[(2, "fuel_burning")] + assert fuel.loc[fuel["age"] == 2, "weight"].tolist() == pytest.approx([4 / 3] * 2) + assert fuel.loc[fuel["age"] != 2, "weight"].tolist() == pytest.approx([1.0] * 4) + zero = pools[(2, "zero_emission")] + assert zero.loc[zero["age"] == 2, "weight"].tolist() == pytest.approx([4 / 3]) + # Fifth 1's unlinked car: 45 linked of 47 kept. + assert linked_share == pytest.approx(45 / 47) + # The newest band's kept cars hold their place in the draw. + assert fuel["weight"].sum() + zero["weight"].sum() == pytest.approx(10.0) + + +def test_refuses_a_fifth_without_donors() -> None: + person, households = _frame() + cars = _nts_cars() + cars = cars[ + ~((cars["hhincqisengts_b01id"] == 3) & (cars["vehco2bands_b01id"] == 1)) + ] + with pytest.raises(ValueError, match="no zero_emission car in fifth 3"): + assign_car_attributes( + person=person, cars=cars, parameters=PARAMETERS, **households + ) + # Kept cars of an age band no linked car shares cannot be stood for. + unlinked = _nts_cars().assign( + vehco2bands_b01id=lambda c: c["vehco2bands_b01id"].where( + ~((c["hhincqisengts_b01id"] == 4) & (c["vehage_b01id"] == 9)), -8 + ) + ) + with pytest.raises(ValueError, match="fifth 4 and age band 9 hold no car"): + assign_car_attributes( + person=person, cars=unlinked, parameters=PARAMETERS, **households + ) + with pytest.raises(ValueError, match="belong to a frame household"): + assign_car_attributes( + person=person.assign(person_household_id=[1, 1, 1, 2, 3, 3, 9]), + cars=_nts_cars(), + parameters=PARAMETERS, + **households, + ) diff --git a/packages/microcosm-build/tests/engine_free/uk/test_uk_population_targets.py b/packages/microcosm-build/tests/engine_free/uk/test_uk_population_targets.py index 6118f3f078..e22948d7db 100644 --- a/packages/microcosm-build/tests/engine_free/uk/test_uk_population_targets.py +++ b/packages/microcosm-build/tests/engine_free/uk/test_uk_population_targets.py @@ -266,8 +266,10 @@ def test_uk_population_targets_shape_order_and_registry_accounting() -> None: # amounts by self-employment band and the counts with employment income # among them, and DWP's income-based Jobseeker's Allowance spending; # microcosm#1095 R4 splits SLC's devolved repayments into one row per - # nation, three rows for one. - assert len(resource["targets"]) == 460 + # nation, three rows for one; microcosm#1426 adds HMRC's Table 16 count of + # taxpayers liable to the High Income Child Benefit Charge and its revenue, + # two national rows held as measured diagnostics. + assert len(resource["targets"]) == 462 providers = resource["hierarchy"]["providers"] categories = resource["hierarchy"]["categories"] @@ -281,10 +283,10 @@ def test_uk_population_targets_shape_order_and_registry_accounting() -> None: target_ids = [target["target_id"] for target in resource["targets"]] registry_scope = resource["registry_parity"]["scope_target_ids"] profile_scope = resource["profile_parity"]["scope_target_ids"] - assert len(registry_scope) == 398 + assert len(registry_scope) == 400 assert len(profile_scope) == 62 - assert target_ids[:398] == registry_scope - assert target_ids[398:] == profile_scope + assert target_ids[:400] == registry_scope + assert target_ids[400:] == profile_scope parity = resource["registry_parity"] assert parity["pinned_ref"] == "12a1e028afeef08d8b2d74ee03fd9de3a78b2dd3" @@ -314,9 +316,9 @@ def test_uk_population_targets_shape_order_and_registry_accounting() -> None: # row or its three Table 3.10 rows, nor microcosm#1428's income-based JSA # spending row. microcosm#1095 R4 maps the incumbent's three devolved SLC # repayment metrics one to one, to three nation rows in place of one - # devolved row. + # devolved row. microcosm#1426's two HICBC rows have no uk-data metric either. assert len(mapped_target_ids) == 185 - assert len(unmapped_declarations) == 213 + assert len(unmapped_declarations) == 215 suppressed_ancestors = parity["suppressed_ancestors"] assert len(suppressed_ancestors) == 5 assert set(suppressed_ancestors).isdisjoint(parity["mapped"]) @@ -828,7 +830,7 @@ def test_uk_population_targets_have_unique_target_ids() -> None: resource = _load() target_ids = [target["target_id"] for target in resource["targets"]] - assert len(target_ids) == 460 + assert len(target_ids) == 462 assert len(target_ids) == len(set(target_ids)) @@ -1331,7 +1333,7 @@ def test_uc_payment_bands_share_administrative_family_but_keep_source_window() - def test_paid_joint_diagnostics_do_not_add_active_targets() -> None: targets = _load()["targets"] - assert len(targets) == 460 + assert len(targets) == 462 assert not any( f.get("variable") == "uc_calibration_child_entitlement" for target in targets diff --git a/packages/microcosm-build/tests/engine_free/uk/test_uk_property_localisation.py b/packages/microcosm-build/tests/engine_free/uk/test_uk_property_localisation.py index dc08f01349..568111495c 100644 --- a/packages/microcosm-build/tests/engine_free/uk/test_uk_property_localisation.py +++ b/packages/microcosm-build/tests/engine_free/uk/test_uk_property_localisation.py @@ -286,6 +286,92 @@ def test_localise_bands_is_monotone_in_the_uniform_and_skips_scotland() -> None: assert receipt["band_mix_after"]["I"] == 0 +def _scotland_mix() -> pl.BandMix: + return pl.load_scotland_band_mix( + json.dumps(toy_property_resources()["scotland_band_mix"]).encode() + ) + + +def test_scotland_band_mix_needs_every_band_of_every_council_area() -> None: + resource = toy_property_resources()["scotland_band_mix"] + mix = pl.load_scotland_band_mix(json.dumps(resource).encode()) + # Scotland's bands run A to H, so band I adds nothing. + assert all(values[-2] == values[-1] == 1.0 for values in mix.cumulative.values()) + assert mix.as_at == pl.SCOTLAND_BAND_PERIOD + short = {**resource, "rows": resource["rows"][1:]} + with pytest.raises(ValueError, match="lacks bands"): + pl.load_scotland_band_mix(json.dumps(short).encode()) + with pytest.raises(ValueError, match="not the vendored CTAXBASE facts"): + pl.load_scotland_band_mix(json.dumps({**resource, "kind": "other"}).encode()) + # Only the September 2025 rows are read. + stale = { + **resource, + "rows": [ + {**row, "period": {"type": "month", "value": "2024-09"}} + for row in resource["rows"] + ], + } + with pytest.raises(ValueError, match="no council areas"): + pl.load_scotland_band_mix(json.dumps(stale).encode()) + + +def test_localise_bands_draws_scottish_owners_from_their_council_area() -> None: + """With the CTAXBASE mix a Scottish owner draws its band from its council + area's shares at its uniform; a Scottish renter and Northern Ireland keep + theirs (microcosm#1095 B12).""" + mix, scotland = _mix(), _scotland_mix() + lsoa = next(iter(mix.cumulative)) + area = next(iter(scotland.cumulative)) + u = np.array([0.0, 0.124, 0.126, 0.999, 0.6, 0.6, 0.3]) + codes = np.array(["S01000001"] * 5 + ["N00000001", lsoa]) + areas = np.array([area] * 5 + ["N09000001", "E06000001"]) + band = np.array(["D"] * 7) + tenure = np.array( + ["OWNED_OUTRIGHT"] * 4 + ["RENT_PRIVATELY"] + ["OWNED_OUTRIGHT"] * 2 + ) + new_band, receipt = pl.localise_bands( + u=u, + lsoa_code=codes, + band=band, + tenure_type=tenure, + mix=mix, + scotland_mix=scotland, + local_authority_code=areas, + ) + # The toy council area splits A to H in eighths, so no owner reads I. + assert list(new_band[:4]) == ["A", "A", "B", "H"] + assert new_band[4] == "D" and new_band[5] == "D" + # England and Wales draw as before. + assert new_band[6] == "C" + scottish = receipt["scotland"] + assert scottish["rows_rewritten"] == 4 and scottish["rows_untouched_renters"] == 1 + assert scottish["council_areas"] == 1 and scottish["band_mix_after"]["I"] == 0 + assert scottish["as_at"] == "2025-09" + # Scotland's owners leave the untouched count; the renter and + # Northern Ireland stay in it. + assert receipt["rows_untouched_outside_england_wales"] == 2 + assert pl.monotone_violations(u[:4], new_band[:4], areas[:4]) == 0 + with pytest.raises(ValueError, match="No Scottish band mix"): + pl.localise_bands( + u=u, + lsoa_code=codes, + band=band, + tenure_type=tenure, + mix=mix, + scotland_mix=scotland, + local_authority_code=np.where(areas == area, "S12999999", areas), + ) + with pytest.raises(ValueError, match="council areas"): + pl.localise_bands( + u=u, + lsoa_code=codes, + band=band, + tenure_type=tenure, + mix=mix, + scotland_mix=scotland, + ) + + # ---------------------------------------------------------------------------- # Lineage diff --git a/packages/microcosm-build/tests/engine_free/uk/test_uk_property_purchases.py b/packages/microcosm-build/tests/engine_free/uk/test_uk_property_purchases.py index b0346a2ddf..9065c158de 100644 --- a/packages/microcosm-build/tests/engine_free/uk/test_uk_property_purchases.py +++ b/packages/microcosm-build/tests/engine_free/uk/test_uk_property_purchases.py @@ -53,6 +53,9 @@ def _rows() -> list[dict]: rows.append(_row(_HRAD, "hmrc.sdlt.hrad_property_value", band, value * 1e6)) rows.append(_row(_HRAD, "hmrc.sdlt.hrad_transactions", "all_price_bands", 1_800.0)) rows.append(_row(_HRAD, "hmrc.sdlt.hrad_property_value", "all_price_bands", 625e6)) + # Gross HRAD receipts: GBP 6,000 a transaction and 4p a pound in the nil band. + rows.append(_row(_HRAD, "hmrc.sdlt.hrad_receipts_gross", "gbp_250k_or_less", 6e6)) + rows.append(_row(_HRAD, "hmrc.sdlt.hrad_receipts_gross", "all_price_bands", 25e6)) for record_set, count, value in ( (_RES_IND, 9_000.0, 3_000e6), (_RES_OTHER, 1_000.0, 1_000e6), @@ -63,6 +66,11 @@ def _rows() -> list[dict]: rows.append( _row(record_set, "hmrc.sdlt.property_value", "all_price_bands", value) ) + # Other buyers' nil-band receipts, GBP 1.2m, are 200 HRAD transactions and + # GBP 30m at the band's gross receipts per transaction and per pound. + rows.append(_row(_RES_OTHER, "hmrc.sdlt.transactions", "gbp_250k_or_less", 400.0)) + rows.append(_row(_RES_OTHER, "hmrc.sdlt.receipts", "gbp_250k_or_less", 1.2e6)) + rows.append(_row(_RES_OTHER, "hmrc.sdlt.receipts", "all_price_bands", 5e6)) for band, (count, value) in _NONRES_BANDS.items(): rows.append(_row(_NONRES_IND, "hmrc.sdlt.transactions", band, count)) rows.append(_row(_NONRES_IND, "hmrc.sdlt.property_value", band, value * 1e6)) @@ -71,16 +79,39 @@ def _rows() -> list[dict]: return rows -def test_targets_allocate_hrad_by_individuals_shares_and_combine_top_bands() -> None: +def test_targets_allocate_the_nil_rate_band_from_receipts_and_combine_top_bands() -> ( + None +): targets = pp.property_purchase_targets_from_rows(_rows()) additional = targets.additional_residential - # uk-data#573: Table 6b's all-buyer HRAD times individuals' Table 8a shares. - assert additional.transactions == pytest.approx(1_800.0 * 9_000 / 10_000) - assert additional.value == pytest.approx(625e6 * 3_000 / 4_000) + # At or below GBP 250,000 households take Table 6b's band less the 200 + # transactions and GBP 30m other buyers' receipts imply; above it, + # individuals' Table 8a shares of Table 6b (uk-data#573). + assert additional.transactions == pytest.approx( + (1_800.0 - 1_000.0) * 9_000 / 10_000 + 1_000.0 - 200.0 + ) + assert additional.value == pytest.approx( + (625e6 - 150e6) * 3_000 / 4_000 + 150e6 - 30e6 + ) assert additional.band_ids == pp.PROPERTY_PURCHASE_BAND_IDS + assert additional.band_transactions[0] == pytest.approx(800.0) + assert additional.band_values[0] == pytest.approx(120e6) + assert additional.band_transactions[1] == pytest.approx(500.0 * 0.9) # The five bands above GBP 2m become one: 8+4+2+2+1 transactions. - assert additional.band_transactions[-1] == 17.0 - assert additional.band_values[-1] == pytest.approx(72e6) + assert additional.band_transactions[-1] == pytest.approx(17.0 * 0.9) + assert additional.band_values[-1] == pytest.approx(72e6 * 0.75) + assert targets.derivation["nil_band_other_buyers_hrad_transactions"] == ( + pytest.approx(200.0) + ) + assert targets.derivation["nil_band_other_buyers_hrad_value"] == ( + pytest.approx(30e6) + ) + assert targets.derivation["nil_band_other_buyers_hrad_transaction_share"] == ( + pytest.approx(0.5) + ) + assert targets.derivation["nil_band_households_hrad_transaction_share"] == ( + pytest.approx(0.8) + ) assert additional.minimum_price == pp.HMRC_SDLT_MINIMUM_CONSIDERATION non_residential = targets.non_residential assert non_residential.transactions == 400.0 @@ -92,6 +123,20 @@ def test_targets_allocate_hrad_by_individuals_shares_and_combine_top_bands() -> assert targets.derivation["residential_individuals_value_share"] == 0.75 +def test_targets_refuse_nil_band_receipts_beyond_other_buyers_transactions() -> None: + rows = [ + _row(_RES_OTHER, "hmrc.sdlt.receipts", "gbp_250k_or_less", 3e6) + if row["layout"]["record_set_id"] == _RES_OTHER + and row["concept"] == "hmrc.sdlt.receipts" + and row["layout"]["groupby_value_id"] == "gbp_250k_or_less" + else row + for row in _rows() + ] + # GBP 3m implies 500 HRAD transactions, more than other buyers' 400. + with pytest.raises(ValueError, match="imply HRAD outside"): + pp.property_purchase_targets_from_rows(rows) + + def test_targets_round_trip_through_the_payload() -> None: targets = pp.property_purchase_targets_from_rows(_rows()) assert pp.UKPropertyPurchaseTargets.from_payload(targets.payload()) == targets @@ -484,12 +529,25 @@ def test_the_stage_fits_one_kind_at_its_stock_beside_one_it_scales() -> None: ) -def test_the_packaged_targets_reproduce_uk_data_573() -> None: - # The vendored HMRC Stamp Tax rows give uk-data#573's household figures. +def test_the_packaged_targets_allocate_the_nil_rate_band_from_receipts() -> None: + # The vendored HMRC Stamp Tax rows (2024-25, corrected): Table 6b's + # 211,700 HRAD transactions and GBP 77.97bn, 113,500 and GBP 16.635bn of + # them at or below GBP 250,000 with GBP 625m gross receipts; Table 8a's + # individuals' shares 925,100 / 1,049,600 and GBP 335.515bn / 380.205bn; and + # other buyers' GBP 265m of receipts in that band. targets = pp.load_property_purchase_targets() additional = targets.additional_residential - assert additional.transactions == pytest.approx(186_588.8624, rel=1e-9) - assert additional.value == pytest.approx(68_805_261_766.68, rel=1e-9) + other_count = 265e6 * 113_500 / 625e6 + other_value = 265e6 * 16.635e9 / 625e6 + assert additional.transactions == pytest.approx( + (211_700 - 113_500) * 925_100 / 1_049_600 + 113_500 - other_count, rel=1e-9 + ) + assert additional.value == pytest.approx( + (77.97e9 - 16.635e9) * 335.515e9 / 380.205e9 + 16.635e9 - other_value, + rel=1e-9, + ) + # Both stay above uk-data#573's household lower bounds. + assert additional.transactions > 87_200 and additional.value > 33.28e9 non_residential = targets.non_residential assert non_residential.transactions == pytest.approx(25_000.0) assert non_residential.value == pytest.approx(7.64e9) diff --git a/packages/microcosm-build/tests/engine_free/uk/test_uk_receipt_counts.py b/packages/microcosm-build/tests/engine_free/uk/test_uk_receipt_counts.py index bf5d02bf35..8813e01e7c 100644 --- a/packages/microcosm-build/tests/engine_free/uk/test_uk_receipt_counts.py +++ b/packages/microcosm-build/tests/engine_free/uk/test_uk_receipt_counts.py @@ -146,7 +146,13 @@ def test_no_uk_output_still_withholds_at_ten() -> None: "uk_runtime/national_reconciliation.py": (("len(moved) > 10", 1),), "uk_runtime/size_evaluation.py": (("(values > 10)", 1),), "uk_runtime/spi_dependency.py": (("goes to HMRC at least ten", 2),), - "uk/spec/sources.yaml": (("over at least 10 rows (a statistical floor", 1),), + "uk/spec/sources.yaml": ( + ("over at least 10 rows (a statistical floor", 1), + # The zero-emission share's pooling floor, a statistical floor + # (microcosm#1095 B3, J2). + ("minimum_zero_emission_cars: 10", 1), + ("a fifth on fewer than 10 zero-emission NTS cars", 1), + ), "uk/calibration_measure_exclusions.json": ( ("a cell that rests on fewer than 10 records is no reason", 1), ( diff --git a/packages/microcosm-build/tests/engine_free/uk/test_uk_source_stages.py b/packages/microcosm-build/tests/engine_free/uk/test_uk_source_stages.py index c7f5edbf01..78688bd0a0 100644 --- a/packages/microcosm-build/tests/engine_free/uk/test_uk_source_stages.py +++ b/packages/microcosm-build/tests/engine_free/uk/test_uk_source_stages.py @@ -101,11 +101,6 @@ CHILD_BENEFIT_TAKE_UP_STAGE_NAMES = [ "child_benefit_take_up", ] -# microcosm#1319: the Carer's Allowance draw reads the post-SPI earnings and -# the anchor the SPI income chain refreshes. -CARERS_ALLOWANCE_TAKE_UP_STAGE_NAMES = [ - "carers_allowance_take_up", -] E9_STAGE_NAMES = [ "uc_deduction_attributes", ] @@ -119,6 +114,10 @@ "cgt_residential_split", "hmrc_cgt_asset_type_spine", "salary_sacrifice", + # microcosm#1095 B5: the Carer's Allowance draw reads the earnings test on + # the pay salary sacrifice converts, each draw keyed on lineage so that a + # CGT copy claims with the member it copies (microcosm#1319). + "carers_allowance_take_up", "student_loans", # The copies' childcare re-draw runs after every copy stage, before the # private-school attendance ranks households on net income (which counts @@ -151,7 +150,6 @@ *UC_LEGACY_CLOSURE_TAKE_UP_STAGE_NAMES, *PENSION_CREDIT_TAKE_UP_STAGE_NAMES, *CHILD_BENEFIT_TAKE_UP_STAGE_NAMES, - *CARERS_ALLOWANCE_TAKE_UP_STAGE_NAMES, *E9_STAGE_NAMES, *E8_STAGE_NAMES, ] @@ -225,7 +223,6 @@ def test_e5_and_e6_follow_e7_and_precede_the_uc_rewrites(self) -> None: *UC_LEGACY_CLOSURE_TAKE_UP_STAGE_NAMES, *PENSION_CREDIT_TAKE_UP_STAGE_NAMES, *CHILD_BENEFIT_TAKE_UP_STAGE_NAMES, - *CARERS_ALLOWANCE_TAKE_UP_STAGE_NAMES, *E9_STAGE_NAMES, ] @@ -410,6 +407,7 @@ def test_e3_outputs_are_backed_by_runtime_written_columns(self) -> None: from microcosm.build.uk_runtime.lcfs_consumption import ( UK_LCFS_CONSUMPTION_NONNEGATIVE_OUTPUT_COLUMNS, UK_LCFS_CONSUMPTION_OUTPUT_COLUMNS, + UK_LCFS_CONSUMPTION_PERSON_OUTPUT_COLUMNS, ) from microcosm.build.uk_runtime.regional_uprating import ( UK_REGIONAL_PROPERTY_REWRITES, @@ -479,7 +477,10 @@ def test_e3_outputs_are_backed_by_runtime_written_columns(self) -> None: stages["regional_property_uprating"].rewrites == UK_REGIONAL_PROPERTY_REWRITES ) - assert stages["lcfs_consumption"].outputs == UK_LCFS_CONSUMPTION_OUTPUT_COLUMNS + assert stages["lcfs_consumption"].outputs == ( + *UK_LCFS_CONSUMPTION_OUTPUT_COLUMNS, + *UK_LCFS_CONSUMPTION_PERSON_OUTPUT_COLUMNS, + ) assert ( stages["lcfs_consumption"].nonnegative_outputs == UK_LCFS_CONSUMPTION_NONNEGATIVE_OUTPUT_COLUMNS @@ -698,6 +699,7 @@ def test_e3_operation_kinds_are_declared_in_order(self) -> None: "recompose_from_remainder", "top_up_gambling_participation", "level_excise_quantities", + "assign_car_attributes_from_nts", "record_mass_conservation_receipt", ] assert [op.kind for op in stages["etb_vat"].operations] == [ @@ -735,6 +737,7 @@ def test_e3_operation_kinds_are_declared_in_order(self) -> None: "draw_spi_donor_ages_by_population", "fit_weighted_qrf_stage1", "resample_band_donor_leaves", + "floor_spi_employment_pay_at_minimum_wage", "fit_weighted_qrf_stage2", "zero_pension_age_reports_below_state_pension_age", "materialize_hmrc_income_bands_fail_closed", @@ -807,6 +810,8 @@ def test_e3_operation_kinds_are_declared_in_order(self) -> None: "assign_student_loan_plan_cohorts", "top_up_to_stock", "top_up_to_stock", + # The balance moves to the borrowers (microcosm#1095 B9). + "derive", ] def test_engine_predictor_and_rewrite_constants_match_manifest(self) -> None: @@ -1085,6 +1090,8 @@ def test_e6_declared_seed_lockstep(self) -> None: "impute_prepayment_meter": 0, # The gambling participation top-up (microcosm#1359). "top_up_gambling_participation": 0, + # The vehicle excise duty inputs' car draws (microcosm#1095 B3). + "assign_car_attributes_from_nts": 0, } assert stages["etb_vat"].operations[3].parameters["seed"] == 0 assert stages["etb_vat"].operations[3].parameters["salt"] == "etb_vat" @@ -1098,12 +1105,13 @@ def test_e7_declared_seed_lockstep(self) -> None: assert stages["hmrc_spi_income_spine"].operations[3].parameters["seed"] == 42 # The reserved carriers' resample draws at stage seed + 2 (PolicyEngine/chronicle#280 lane). assert stages["hmrc_spi_income_spine"].operations[4].parameters["seed"] == 44 - assert stages["hmrc_spi_income_spine"].operations[5].parameters["seed"] == 43 - # The donor age draw and the State Pension age guard take no seed of - # their own: ages draw on the stage-1 seed, the guard is deterministic - # (microcosm#1069). + assert stages["hmrc_spi_income_spine"].operations[6].parameters["seed"] == 43 + # The donor age draw, the employment pay floor and the State Pension + # age guard take no seed of their own: ages draw on the stage-1 seed, + # the floor and the guard are deterministic (microcosm#1069). assert "seed" not in stages["hmrc_spi_income_spine"].operations[2].parameters - assert "seed" not in stages["hmrc_spi_income_spine"].operations[6].parameters + assert "seed" not in stages["hmrc_spi_income_spine"].operations[5].parameters + assert "seed" not in stages["hmrc_spi_income_spine"].operations[7].parameters assert stages["spi_income_band_donors"].operations[0].parameters["seed"] == 3 assert stages["uc_reporter_redraw"].operations[3].parameters["seed"] == 44 assert stages["uc_capital_coherence"].operations[1].parameters["seed"] == 0 @@ -1123,8 +1131,10 @@ def test_e8_declared_seed_lockstep(self) -> None: assert stages["salary_sacrifice"].operations[3].parameters["seed"] == 2024 assert [ operation.parameters["seed"] - for operation in stages["student_loans"].operations[1:] + for operation in stages["student_loans"].operations[1:3] ] == [42, 42] + # The balance re-split is deterministic (microcosm#1095 B9). + assert "seed" not in stages["student_loans"].operations[3].parameters def test_e9_declared_seed_lockstep(self) -> None: from microcosm.build.uk_runtime.uc_deduction_attributes import ( diff --git a/packages/microcosm-build/tests/engine_free/uk/test_uk_spi_benefit_coherence.py b/packages/microcosm-build/tests/engine_free/uk/test_uk_spi_benefit_coherence.py index cbdf5c0e37..72b4957e2e 100644 --- a/packages/microcosm-build/tests/engine_free/uk/test_uk_spi_benefit_coherence.py +++ b/packages/microcosm-build/tests/engine_free/uk/test_uk_spi_benefit_coherence.py @@ -14,7 +14,9 @@ from microcosm.build.uk_runtime.spi_benefit_coherence import ( SPI_BENEFIT_COHERENCE_STAGE_NAME, SPI_RESTORED_REPORT_COLUMNS, + SPI_WITHIN_LIMIT_REPORT_COLUMNS, SPI_ZEROED_REPORT_COLUMNS, + UKSPIPermittedWorkLimit, apply_spi_benefit_coherence, assert_spi_benefit_coherence_stage_parameters, ) @@ -49,6 +51,19 @@ POLICY = UKTakeUpPopulationPolicy( adult_age=18, state_pension_age=66, instant="2024-01-01", source="test" ) +#: The 2024-25 limits: ESA's permitted work (GBP 183.50 a week, GBP 9,542 a +#: year, under 16 hours) and JSA's age-related amounts, GBP 5 disregard and +#: 16-hour remunerative work. +LIMIT = UKSPIPermittedWorkLimit( + esa_weekly_limit=183.5, + esa_hours_limit=16.0, + jsa_amount_under_25=71.7, + jsa_amount_from_25=90.5, + jsa_earnings_disregard=5.0, + jsa_remunerative_hours=16.0, + year=2024, + source="test", +) class _Contract: @@ -62,6 +77,7 @@ def rate(self, key: str) -> float: ( *SPI_ZEROED_REPORT_COLUMNS, *SPI_RESTORED_REPORT_COLUMNS, + *SPI_WITHIN_LIMIT_REPORT_COLUMNS, *frs_disability.UK_DISABILITY_FLAG_REPORTED_COLUMNS, "universal_credit_reported", ) @@ -83,6 +99,7 @@ def _person( support_source_id_column("person"): source_id, } row.update(dict.fromkeys(REPORT_COLUMNS, 0.0)) + row.update(employment_income=0.0, self_employment_income=0.0, hours_worked=0.0) row.update(reports) return row @@ -181,7 +198,13 @@ def _frame(*, base_own_right_override: bool | None = None): "would_claim_uc": [True, True, False, True, True, True], } ) - household = pd.DataFrame({"household_id": [1, 2, 3, 5, 6, 7]}) + household = pd.DataFrame( + { + "household_id": [1, 2, 3, 5, 6, 7], + # Each SPI copy repeats its twin's household. + "household_source_id": [1, 2, 3, 1, 2, 3], + } + ) return uk_national_frame( person=person, benunit=benunit, @@ -199,6 +222,24 @@ def _apply(frame): population_policy=POLICY, category_rates=CATEGORY_RATES, flag_rates=FLAG_RATES, + permitted_work_limit=LIMIT, + ) + + +def _with(frame, **columns_by_person): + """The frame with person columns set, ``{person_id: {column: value}}``.""" + + person = frame.table("person").copy() + for person_id, values in columns_by_person.items(): + for column, value in values.items(): + person.loc[person["person_id"] == int(person_id), column] = value + return uk_national_frame( + person=person, + benunit=frame.table("benunit"), + household=frame.table("household"), + household_weights=frame.weights_for("household").values, + weight_kind=WeightKind.IMPORTANCE, + time_period="2024", ) @@ -208,39 +249,175 @@ def test_spi_rows_lose_out_of_work_and_legacy_reports() -> None: for column in SPI_ZEROED_REPORT_COLUMNS: assert (person.loc[[105, 106, 107], column] == 0.0).all(), column - assert person.loc[21, "jsa_contrib_reported"] == 300.0 - assert result.zeroed["jsa_contrib_reported"]["rows_reporting_before"] == 1 + assert result.zeroed["income_support_reported"]["rows_reporting_before"] == 1 + assert "jsa_contrib_reported" not in result.zeroed assert all( receipt["rows_reporting_after"] == 0 for receipt in result.zeroed.values() ) -def test_spi_rows_lose_income_related_esa_and_keep_contributory_esa() -> None: +def test_spi_rows_lose_income_related_esa_and_their_drawn_contributory_esa() -> None: # policyengine-uk pays a drawn income-related ESA report as the award, - # behind a capital test alone, whatever the copy's new incomes; contributory - # ESA is open to new claims and not income-tested, so the copy keeps it. - frame = _frame() - person = frame.table("person").copy() - copy = person["person_id"] == 106 - person.loc[copy, "esa_income_reported"] = 600.0 - person.loc[copy, "esa_contrib_reported"] = 700.0 - drawn = uk_national_frame( - person=person, - benunit=frame.table("benunit"), - household=frame.table("household"), - household_weights=frame.weights_for("household").values, - weight_kind=WeightKind.IMPORTANCE, - time_period="2024", + # behind a capital test alone, whatever the copy's new incomes. A drawn + # contributory ESA report gives way to the twin's, who reports none. + result = _apply( + _with( + _frame(), + **{"106": {"esa_income_reported": 600.0, "esa_contrib_reported": 700.0}}, + ) ) - result = _apply(drawn) after = result.frame.table("person").set_index("person_id") assert after.loc[106, "esa_income_reported"] == 0.0 - assert after.loc[106, "esa_contrib_reported"] == 700.0 + assert after.loc[106, "esa_contrib_reported"] == 0.0 assert result.zeroed["esa_income_reported"]["rows_reporting_before"] == 1 assert "esa_contrib_reported" not in result.zeroed +def test_spi_rows_take_the_twins_contributory_awards_within_their_limits() -> None: + # Twin 21 reports contributory JSA and ESA; its copy 106 earns nothing and + # works no hours, so it takes both. Copy 105 drew JSA, but its twin 11 + # reports none. + frame = _with(_frame(), **{"21": {"esa_contrib_reported": 700.0}}) + result = _apply(frame) + person = result.frame.table("person").set_index("person_id") + + assert person.loc[106, "jsa_contrib_reported"] == 300.0 + assert person.loc[106, "esa_contrib_reported"] == 700.0 + assert person.loc[105, "jsa_contrib_reported"] == 0.0 + assert person.loc[[21, 106], "receives_benefits_in_own_right"].all() + receipt = result.restored_within_earnings_limit + assert all(item["rows_breaking_rule_after"] == 0 for item in receipt.values()) + assert result.permitted_work_limit["esa_weekly_limit"] == 183.5 + assert result.permitted_work_limit["jsa_amount_from_25"] == 90.5 + + +#: Contributory JSA at the 2024-25 rate from 25, GBP 90.50 a week. +JSA_FULL = 90.5 * 52 + + +@pytest.mark.parametrize( + "copy,expected", + [ + # No work: the twin's whole award. + ({}, JSA_FULL), + # The disregard itself costs nothing. + ({"employment_income": 5.0 * 52}, JSA_FULL), + # GBP 50 a week cuts the award by the GBP 45 above the disregard + # (Jobseekers Act 1995 s. 4(1)(b)), to GBP 45.50 a week. + ({"employment_income": 50.0 * 52}, 45.5 * 52), + # At the prescribed amount, GBP 95.49 a week, the award is 1p a week. + ({"employment_income": 95.49 * 52}, 0.01 * 52), + # Above it, nothing (JSA Regs 1996 reg 56). + ({"employment_income": 95.5 * 52}, 0.0), + # GBP 150 a week is within ESA's limit but not JSA's (Vahid's case). + ({"employment_income": 150.0 * 52}, 0.0), + ({"self_employment_income": 50.0 * 52}, 45.5 * 52), + # Remunerative work from 16 hours a week (reg 51(1)(a)), paid or not. + ({"hours_worked": 16.0 * 52}, 0.0), + ({"hours_worked": 15.5 * 52}, JSA_FULL), + # Under 25 the lower amount, GBP 71.70, sets the limit and the award. + ({"age": 22, "employment_income": 50.0 * 52}, (71.7 - 45.0) * 52), + ({"age": 22, "employment_income": 76.71 * 52}, 0.0), + ], +) +def test_contributory_jsa_follows_its_own_earnings_and_hours_limits( + copy, expected +) -> None: + frame = _with( + _frame(), **{"21": {"jsa_contrib_reported": JSA_FULL}, "106": dict(copy)} + ) + result = _apply(frame) + person = result.frame.table("person").set_index("person_id") + + assert person.loc[106, "jsa_contrib_reported"] == pytest.approx(expected) + # The twin keeps its own report whatever the copy earns. + assert person.loc[21, "jsa_contrib_reported"] == JSA_FULL + receipt = result.restored_within_earnings_limit["jsa_contrib_reported"] + assert receipt["rows_breaking_rule_after"] == 0 + + +def test_contributory_jsa_never_exceeds_the_twins_award() -> None: + # Twin 21's GBP 300 a year is below the copy's GBP 45.50 a week. + frame = _with(_frame(), **{"106": {"employment_income": 50.0 * 52}}) + person = _apply(frame).frame.table("person").set_index("person_id") + + assert person.loc[106, "jsa_contrib_reported"] == 300.0 + + +@pytest.mark.parametrize( + "copy,takes_award", + [ + # Exactly the limit is within it (ESA Regs 2008 reg 45(4)). + ({"employment_income": 183.5 * 52}, True), + ({"employment_income": 183.5 * 52 + 1.0}, False), + ({"self_employment_income": 20_000.0}, False), + # A self-employment loss is not set against pay. + ({"employment_income": 9_600.0, "self_employment_income": -1_000.0}, False), + ({"employment_income": 6_000.0, "self_employment_income": 4_000.0}, False), + # Permitted work is under 16 hours a week. + ({"hours_worked": 15.5 * 52}, True), + ({"hours_worked": 16.0 * 52}, False), + ], +) +def test_contributory_esa_stops_outside_permitted_work(copy, takes_award) -> None: + frame = _with( + _frame(), **{"21": {"esa_contrib_reported": 700.0}, "106": dict(copy)} + ) + result = _apply(frame) + person = result.frame.table("person").set_index("person_id") + + assert person.loc[106, "esa_contrib_reported"] == (700.0 if takes_award else 0.0) + assert person.loc[21, "esa_contrib_reported"] == 700.0 + receipt = result.restored_within_earnings_limit["esa_contrib_reported"] + assert receipt["twin_reporters_outside_limits"] == (0 if takes_award else "<3") + assert receipt["rows_breaking_rule_after"] == 0 + + +def test_the_within_limit_receipt_withholds_figures_under_three_households() -> None: + # Copy 105 loses its drawn JSA and copy 106 takes its twin's: one source + # household carries each figure, and two the change between them. + result = _apply(_frame()) + receipt = result.restored_within_earnings_limit["jsa_contrib_reported"] + + assert receipt["twin_reporters"] == "<3" + assert receipt["changed"] == "<3" + assert receipt["twin_reporters_outside_limits"] == 0 + for key in ( + "weighted_amount_before", + "weighted_amount_after", + "weighted_reporters_before", + "weighted_reporters_after", + ): + assert receipt[key] == "<3", key + assert result.permitted_work_limit["spi_source_households_within_limits"] == { + "jsa_contrib_reported": "3-9", + "esa_contrib_reported": "3-9", + } + + +def test_the_within_limit_receipt_gives_figures_on_three_households() -> None: + frame = _with( + _frame(), + **{ + "11": {"esa_contrib_reported": 100.0}, + "21": {"esa_contrib_reported": 200.0}, + "31": { + "esa_contrib_reported": 300.0, + "receives_benefits_in_own_right": True, + }, + }, + ) + receipt = _apply(frame).restored_within_earnings_limit["esa_contrib_reported"] + + assert receipt["twin_reporters"] == "3-9" + assert receipt["changed"] == "3-9" + # Each copy's weight is its household's: 1, 2 and 3. + assert receipt["weighted_amount_after"] == pytest.approx(1_400.0) + assert receipt["weighted_reporters_after"] == pytest.approx(6.0) + assert receipt["weighted_amount_before"] == 0.0 + + def test_spi_rows_take_injury_service_and_bereavement_reports_from_their_twin() -> None: result = _apply(_frame()) person = result.frame.table("person").set_index("person_id") @@ -276,8 +453,9 @@ def test_benefits_in_own_right_follow_the_rows_own_reports() -> None: result = _apply(_frame()) person = result.frame.table("person").set_index("person_id") - # 105 inherited True (twin reports UC) but its only own report was JSA, - # now zeroed; 106 reports UC on its own; 107 reports none. + # 105 inherited True (twin reports UC) but its only own report was a drawn + # JSA its twin does not report; 106 reports UC on its own; 107 reports + # none. assert not person.loc[105, "receives_benefits_in_own_right"] assert person.loc[106, "receives_benefits_in_own_right"] assert not person.loc[107, "receives_benefits_in_own_right"] diff --git a/packages/microcosm-build/tests/engine_free/uk/test_uk_spi_income.py b/packages/microcosm-build/tests/engine_free/uk/test_uk_spi_income.py index 06afdf9573..ea0fdfa488 100644 --- a/packages/microcosm-build/tests/engine_free/uk/test_uk_spi_income.py +++ b/packages/microcosm-build/tests/engine_free/uk/test_uk_spi_income.py @@ -1063,3 +1063,300 @@ def predict_from_uniforms(self, predictors, *, quantiles, sign_uniforms): assert seen.get("reached") is True if result is not None: assert result.stage1_transport["sign_class_mismatches"] == mismatch + + +_PAY_FLOOR_2024_25 = spi_income.SPIEmploymentPayFloor( + age_thresholds=(0.0, 18.0, 21.0, 23.0, 25.0), + hourly_rates=(6.40, 8.60, 11.44, 11.44, 11.44), + weeks_in_year=52.0, + instant="2024-04-30", + source="fixture", +) + + +def _pay_floor_frames( + rows: list[dict[str, object]], +) -> tuple[pd.DataFrame, pd.DataFrame, pd.Series, pd.Series, pd.Series]: + """One person per household; ``source`` names its source household. + + ``twin_pay`` is a drawn row's FRS twin's employment income before the + draw (well paid unless given), and an FRS row (``drawn`` false) is the + floor's reference for the hourly-pay check. + """ + + person = pd.DataFrame( + { + "person_household_id": np.arange(1, len(rows) + 1), + "age": [row["age"] for row in rows], + "employment_status": [row.get("status", "FT_EMPLOYED") for row in rows], + # The spine annualises usual weekly hours at 52 (uk-data#531). + "hours_worked": [row["weekly_hours"] * 52.0 for row in rows], + SPI_HMRC_PAY_COLUMN: [row["pay"] for row in rows], + "self_employment_income": [row.get("trade", 0.0) for row in rows], + }, + index=np.arange(10, 10 + len(rows)), + ) + household = pd.DataFrame( + { + "household_id": np.arange(1, len(rows) + 1), + "household_source_id": [row.get("source", i) for i, row in enumerate(rows)], + } + ) + rows_mask = pd.Series([row.get("drawn", True) for row in rows], index=person.index) + weights = pd.Series( + [float(row.get("weight", 100.0)) for row in rows], index=person.index + ) + twin_pay = pd.Series( + [float(row.get("twin_pay", 60_000.0)) for row in rows], index=person.index + )[rows_mask] + return person, household, rows_mask, weights, twin_pay + + +def _floor(person, household, rows, weights, twin_pay): + return spi_income._floor_employment_pay_at_minimum_wage( + person, + rows=rows, + floor=_PAY_FLOOR_2024_25, + household=household, + person_weights=weights, + twin_pay=twin_pay, + reference_rows=~rows, + ) + + +def test_spi_pay_floor_rate_follows_the_age_bands() -> None: + rates = _PAY_FLOOR_2024_25.hourly_rate(np.array([16, 17.9, 18, 20.5, 21, 64])) + np.testing.assert_allclose(rates, [6.40, 6.40, 8.60, 8.60, 11.44, 11.44]) + with pytest.raises(ValueError, match="increasing age thresholds from zero"): + spi_income.SPIEmploymentPayFloor( + age_thresholds=(16.0, 21.0), + hourly_rates=(6.40, 11.44), + weeks_in_year=52.0, + instant="2024-04-30", + source="fixture", + ) + with pytest.raises(ValueError, match="hourly rates must be positive"): + spi_income.SPIEmploymentPayFloor( + age_thresholds=(0.0,), + hourly_rates=(0.0,), + weeks_in_year=52.0, + instant="2024-04-30", + source="fixture", + ) + + +def test_spi_pay_floor_lifts_only_drawn_employee_pay_below_its_floor() -> None: + person, household, rows, weights, twin_pay = _pay_floor_frames( + [ + {"age": 30, "weekly_hours": 30, "pay": 5_000.0}, # floored, 21+ + {"age": 19, "weekly_hours": 20, "pay": 2_000.0}, # floored, 18-20 + {"age": 17, "weekly_hours": 10, "pay": 1_000.0}, # floored, under 18 + # The twin's own rate, under the minimum wage, caps the floor. + {"age": 30, "weekly_hours": 30, "pay": 5_000.0, "twin_pay": 9_000.0}, + # A twin without pay caps nothing. + {"age": 30, "weekly_hours": 30, "pay": 5_000.0, "twin_pay": 0.0}, + {"age": 30, "weekly_hours": 30, "pay": 50_000.0}, # above the floor + {"age": 30, "weekly_hours": 0, "pay": 1_000.0}, # no hours + {"age": 30, "weekly_hours": 30, "pay": 0.0}, # no drawn pay + { + "age": 30, + "weekly_hours": 40, + "pay": 1_000.0, + "status": "FT_SELF_EMPLOYED", + }, + {"age": 30, "weekly_hours": 40, "pay": 1_000.0, "drawn": False}, # FRS row + ] + ) + before = person.copy() + floored, receipt, uplift = _floor(person, household, rows, weights, twin_pay) + + pay = floored[SPI_HMRC_PAY_COLUMN].to_numpy() + lifted = [ + 30 * 52 * 11.44, + 20 * 52 * 8.60, + 10 * 52 * 6.40, + 9_000.0, + 30 * 52 * 11.44, + ] + np.testing.assert_allclose(pay[:5], lifted) + np.testing.assert_array_equal(pay[5:], before[SPI_HMRC_PAY_COLUMN].to_numpy()[5:]) + np.testing.assert_allclose( + uplift.to_numpy(), + [ + *(np.asarray(lifted) - [5_000.0, 2_000.0, 1_000.0, 5_000.0, 5_000.0]), + 0, + 0, + 0, + 0, + ], + ) + assert list(uplift.index) == list(person.index[rows.to_numpy()]) + # Only the PAY leaf moves; the input frame is not modified. + pd.testing.assert_frame_equal( + floored.drop(columns=[SPI_HMRC_PAY_COLUMN]), + before.drop(columns=[SPI_HMRC_PAY_COLUMN]), + ) + pd.testing.assert_frame_equal(person, before) + # Five floored rows on five source households beside one unfloored: the + # floored weight, share and amount beside the eligible weight would give + # back that one household's, so they are withheld; the mean uplift rests + # on the five. + assert receipt["floored"] == { + "source_households": "3-9", + "weighted_people": "<3", + "weighted_share_of_eligible": "<3", + "weighted_mean_uplift_gbp": pytest.approx(float(uplift.to_numpy()[:5].mean())), + "weighted_amount_added_gbp": "<3", + } + assert receipt["eligible"]["source_households"] == "3-9" + assert receipt["rate"] == spi_income.SPI_EMPLOYMENT_PAY_FLOOR_RATE_RULE + assert receipt["annual_income"] == spi_income.SPI_EMPLOYMENT_PAY_FLOOR_ANNUAL_RULE + assert receipt["hourly_rate_by_age_from"] == { + "0": 6.40, + "18": 8.60, + "21": 11.44, + "23": 11.44, + "25": 11.44, + } + # Each share has a side on one source household (the unfloored row, the + # twin-capped row still under the minimum wage, the one FRS employee), so + # none is given; and no row stays below its floor. + assert receipt["hourly_pay_check"] == { + "spi_drawn_employees": { + "source_households": "3-9", + "below_minimum_wage_share_before": "<3", + "below_minimum_wage_share_after": "<3", + }, + "frs_employees": { + "source_households": "<3", + "below_minimum_wage_share": "<3", + }, + "eligible_rows_below_their_floor_after": 0, + } + # Deterministic: the same inputs floor the same rows to the same pay. + again, again_receipt, _ = _floor(person, household, rows, weights, twin_pay) + pd.testing.assert_frame_equal(again, floored) + assert again_receipt == receipt + + +def test_spi_pay_floor_receipt_counts_source_households_not_copies() -> None: + # Twelve floored copies of two source households, then twelve floored + # rows of twelve households beside ten, then two, unfloored ones. + copies = [ + {"age": 40, "weekly_hours": 35, "pay": 1_000.0, "source": index % 2} + for index in range(12) + ] + _, receipt, _ = _floor(*_pay_floor_frames(copies)) + assert receipt["floored"]["source_households"] == "<3" + assert receipt["floored"]["weighted_mean_uplift_gbp"] == "<3" + + def receipt_of(unfloored: int) -> dict[str, object]: + rows_ = [ + {"age": 40, "weekly_hours": 35, "pay": 1_000.0, "source": 100 + index} + for index in range(12) + ] + [ + {"age": 40, "weekly_hours": 35, "pay": 90_000.0, "source": 200 + index} + for index in range(unfloored) + ] + return _floor(*_pay_floor_frames(rows_))[1] + + receipt = receipt_of(10) + minimum = 35 * 52 * 11.44 + assert receipt["eligible"] == {"source_households": 20, "weighted_people": 2_200.0} + assert receipt["floored"]["source_households"] == 10 + assert receipt["floored"]["weighted_people"] == pytest.approx(1_200.0) + assert receipt["floored"]["weighted_share_of_eligible"] == pytest.approx( + 1_200.0 / 2_200.0 + ) + assert receipt["floored"]["weighted_mean_uplift_gbp"] == pytest.approx( + minimum - 1_000.0 + ) + assert receipt["floored"]["weighted_amount_added_gbp"] == pytest.approx( + 1_200.0 * (minimum - 1_000.0) + ) + # Before the floor twelve of the twenty-two weighted rows were below the + # minimum wage, after it none; the reference has no FRS rows here. + check = receipt["hourly_pay_check"] + assert check["spi_drawn_employees"]["below_minimum_wage_share_before"] == ( + pytest.approx(1_200.0 / 2_200.0) + ) + assert check["spi_drawn_employees"]["below_minimum_wage_share_after"] == 0.0 + assert check["eligible_rows_below_their_floor_after"] == 0 + + # Two unfloored sources: the floored weight, share or amount beside the + # eligible weight would give back their weight, so none is given; nor are + # the hourly-pay shares, whose rest is the same two. + receipt = receipt_of(2) + assert receipt["eligible"] == {"source_households": 10, "weighted_people": 1_400.0} + assert receipt["floored"] == { + "source_households": 10, + "weighted_people": "<3", + "weighted_share_of_eligible": "<3", + "weighted_mean_uplift_gbp": pytest.approx(minimum - 1_000.0), + "weighted_amount_added_gbp": "<3", + } + assert ( + receipt["hourly_pay_check"]["spi_drawn_employees"][ + "below_minimum_wage_share_before" + ] + == "<3" + ) + + +def test_spi_pay_floor_compares_the_drawn_rows_with_frs_employees() -> None: + # Ten FRS employees on the minimum wage and ten below it beside twelve + # drawn rows the floor lifts: half the FRS rows are below the minimum wage. + frs = [ + { + "age": 40, + "weekly_hours": 35, + "pay": 35 * 52 * (11.44 if index < 10 else 9.0), + "source": 300 + index, + "drawn": False, + } + for index in range(20) + ] + drawn = [ + {"age": 40, "weekly_hours": 35, "pay": 1_000.0, "source": 100 + index} + for index in range(12) + ] + _, receipt, _ = _floor(*_pay_floor_frames(frs + drawn)) + assert receipt["hourly_pay_check"]["frs_employees"] == { + "source_households": 20, + "below_minimum_wage_share": pytest.approx(0.5), + } + + +def test_spi_pay_floor_refuses_a_frame_without_hours() -> None: + person, household, rows, weights, twin_pay = _pay_floor_frames( + [{"age": 30, "weekly_hours": 30, "pay": 5_000.0}] + ) + with pytest.raises(ValueError, match="hours_worked"): + _floor( + person.drop(columns=["hours_worked"]), household, rows, weights, twin_pay + ) + + +def test_floored_rows_keep_the_tape_pay_as_their_year_of_pay() -> None: + person = pd.DataFrame( + { + "employment_income": [20_000.0, 30_000.0, 50_000.0], + "employment_income_annual_share": [1.0, 1.0, 0.4], + }, + index=[10, 11, 12], + ) + uplift = pd.Series([8_000.0, 0.0], index=[10, 11]) + kept = spi_income._keep_floored_rows_year_of_pay(person.copy(), uplift=uplift) + # Tape pay 12,000 of a floored 20,000: a 0.6 share; the others keep theirs. + np.testing.assert_allclose( + kept["employment_income_annual_share"].to_numpy(), [0.6, 1.0, 0.4] + ) + # Without the descriptors (a frame built before #1344) nothing moves. + bare = person.drop(columns=["employment_income_annual_share"]) + pd.testing.assert_frame_equal( + spi_income._keep_floored_rows_year_of_pay(bare.copy(), uplift=uplift), bare + ) + with pytest.raises(ValueError, match="must exceed its uplift"): + spi_income._keep_floored_rows_year_of_pay( + person.copy(), uplift=pd.Series([20_000.0], index=[10]) + ) diff --git a/packages/microcosm-build/tests/engine_free/uk/test_uk_spi_pension_age.py b/packages/microcosm-build/tests/engine_free/uk/test_uk_spi_pension_age.py index cc16e1631c..88b10ac05c 100644 --- a/packages/microcosm-build/tests/engine_free/uk/test_uk_spi_pension_age.py +++ b/packages/microcosm-build/tests/engine_free/uk/test_uk_spi_pension_age.py @@ -271,11 +271,13 @@ def test_band_resample_without_age_pooling_keeps_the_legacy_pools() -> None: assert receipt["bands"][0]["age_matched_carriers"] == 0 -def test_stage1_queries_sit_at_the_middle_of_the_year_of_age() -> None: +def test_stage1_queries_carry_the_spi_age_band() -> None: + # The forests read the SPI AGERANGE band of the whole-year age, not an + # age (uk-data#628): 24 is in 16-24 (1), 66 in 65-74 (6), 75 in 75+ (7). person = pd.DataFrame( { "person_household_id": [1, 1, 2], - "age": [65, 66, 74], + "age": [24, 66, 75], "gender": ["MALE", "FEMALE", "MALE"], # The bridge predictors read the row's own leaves (microcosm#840). "employment_income": [20_000.0, 0.0, 0.0], @@ -291,34 +293,39 @@ def test_stage1_queries_sit_at_the_middle_of_the_year_of_age() -> None: person, household, state_pension_age=66 ) - assert predictors["age"].tolist() == [65.5, 66.5, 74.5] + assert predictors[spi_income.SPI_STAGE1_AGE_BAND_COLUMN].tolist() == [1.0, 6.0, 7.0] + assert "age" not in predictors.columns assert predictors["region"].tolist() == ["LONDON", "LONDON", "WALES"] assert list(predictors.columns) == list(spi_income.SPI_STAGE1_PREDICTOR_COLUMNS) assert predictors["main_source"].tolist() == ["pay", "pension", "pension"] assert predictors["at_or_over_spa"].tolist() == [0.0, 1.0, 1.0] -def test_whole_year_frame_ages_draw_state_pension_from_their_own_year() -> None: - # Donors carry a fractional age and State Pension from 66.0. A frame - # person aged 66 queried at the whole year sits on the forest's split at - # that birthday; at the middle of the year every 66-year-old draws from - # the donors who have reached State Pension age (microcosm#1069). +def test_the_band_and_state_pension_flag_split_state_pension_inside_a_band() -> None: + # The forests no longer see an age inside the 65-74 band (uk-data#628), + # so the State Pension split there is at_or_over_spa's: a 65-year-old + # draws from the band's donors below State Pension age, and 66- and + # 67-year-olds from those who have reached it (microcosm#1069). from microcosm.frame import WeightKind rng = np.random.default_rng(0) count = 4_000 ages = rng.integers(60, 75, size=count) + rng.random(count) + at_or_over_spa = (ages >= 66.0).astype(float) donor = pd.DataFrame( { - "age": ages, + spi_income.SPI_STAGE1_AGE_BAND_COLUMN: spi_income._spi_agerange_codes( + np.floor(ages) + ).astype(float), "gender": np.where(rng.random(count) < 0.5, "MALE", "FEMALE"), "region": "LONDON", + "at_or_over_spa": at_or_over_spa, } ) targets = pd.DataFrame( { spi_income.SPI_HMRC_STATE_PENSION_INCOME_COLUMN: np.where( - ages >= 66.0, 9_000.0 + 1_500.0 * rng.random(count), 0.0 + at_or_over_spa > 0, 9_000.0 + 1_500.0 * rng.random(count), 0.0 ), "employment_income": np.where(ages < 66.0, 25_000.0, 4_000.0) * rng.random(count), @@ -332,10 +339,13 @@ def test_whole_year_frame_ages_draw_state_pension_from_their_own_year() -> None: } ) household = pd.DataFrame({"household_id": [1], "region": ["LONDON"]}) - # The age rule alone is under test, so the query carries the donor's three - # predictors at the middle of the year of age, without the bridge. query = spi_income._person_predictors(person, household, income_predictors=()) - query["age"] = np.floor(query["age"].to_numpy(dtype=float)) + 0.5 + query[spi_income.SPI_STAGE1_AGE_BAND_COLUMN] = spi_income._spi_agerange_codes( + query["age"].to_numpy(dtype=float) + ).astype(float) + query["at_or_over_spa"] = (query["age"].to_numpy(dtype=float) >= 66.0).astype(float) + query = query[list(donor.columns)] + assert set(query[spi_income.SPI_STAGE1_AGE_BAND_COLUMN]) == {6.0} encoded_donor, encoded_query = spi_income._encode_predictor_pair(donor, query) frame = spi_income._person_fit_frame( predictors=encoded_donor, diff --git a/packages/microcosm-build/tests/engine_free/uk/test_uk_spi_prior_concentration.py b/packages/microcosm-build/tests/engine_free/uk/test_uk_spi_prior_concentration.py new file mode 100644 index 0000000000..c409121536 --- /dev/null +++ b/packages/microcosm-build/tests/engine_free/uk/test_uk_spi_prior_concentration.py @@ -0,0 +1,49 @@ +"""The over-£100,000 young-child cell's concentration figures (Vahid's #1338 item 4).""" + +from __future__ import annotations + +import numpy as np +import pytest + +from tools.diagnose_uk_spi_prior_concentration import ( + LARGEST_SOURCES, + concentration, + kish_effective_size, +) + + +def test_kish_effective_size_counts_equal_weights_as_units() -> None: + assert kish_effective_size(np.ones(40)) == pytest.approx(40.0) + # One heavy unit shrinks the effective size; zero weights do not count. + assert kish_effective_size(np.array([9.0, 1.0, 0.0])) == pytest.approx(100 / 82) + assert kish_effective_size(np.zeros(3)) == 0.0 + + +def test_concentration_pools_copies_with_their_source_household() -> None: + # Twelve source households; the first is one FRS row and three SPI copies. + weights = np.array([5.0, 5.0, 5.0, 5.0, *np.ones(11)]) + sources = np.array([1, 1, 1, 1, *range(2, 13)]) + spi_copy = np.array([False, True, True, True, *[False] * 11]) + + figures = concentration(weights, sources, spi_copy) + + assert figures["weighted_households"] == pytest.approx(31.0) + assert figures["kish_effective_households"] == pytest.approx(31**2 / 111) + # The source household of joint weight 20 counts once. + assert figures["kish_effective_source_households"] == pytest.approx(31**2 / 411) + # The ten largest sources: the joint 20 and nine of the eleven at 1. + key = f"largest_{LARGEST_SOURCES}_source_households_weight_share" + assert figures[key] == pytest.approx(29 / 31) + assert figures["spi_copy_weight_share"] == pytest.approx(15 / 31) + assert figures["source_households"] == 10 + + +def test_concentration_withholds_a_cell_on_one_or_two_source_households() -> None: + figures = concentration( + np.array([3.0, 4.0]), np.array([7, 8]), np.array([False, True]) + ) + assert figures == {"source_households": "<3", "withheld": True} + assert concentration(np.array([]), np.array([]), np.array([], dtype=bool)) == { + "source_households": 0, + "withheld": True, + } diff --git a/packages/microcosm-build/tests/engine_free/uk/test_uk_spi_rank_transport.py b/packages/microcosm-build/tests/engine_free/uk/test_uk_spi_rank_transport.py index dc03d0c9d6..db8f7878ae 100644 --- a/packages/microcosm-build/tests/engine_free/uk/test_uk_spi_rank_transport.py +++ b/packages/microcosm-build/tests/engine_free/uk/test_uk_spi_rank_transport.py @@ -267,7 +267,7 @@ def test_cell_folds_share_a_cell_between_twins_and_copies() -> None: { "gender": ["MALE", "MALE", "FEMALE", "FEMALE", "MALE"], "region": ["LONDON"] * 5, - "age": [30.5, 30.5, 40.5, 40.5, 50.5], + "spi_age_band": [2.0, 2.0, 3.0, 3.0, 4.0], "main_source": ["pay", "pay", "pension", "pension", "trade"], "has_pay": [1.0, 1.0, 0.0, 0.0, 0.0], "has_trade": [0.0, 0.0, 0.0, 0.0, 1.0], @@ -304,11 +304,15 @@ def test_cross_fit_locates_a_copy_on_a_forest_that_never_saw_its_twin() -> None: rng = np.random.default_rng(21) n = 600 ages = rng.integers(25, 60, n).astype(float) + 0.5 + # The stage's age predictor is the SPI band (uk-data#628): codes 2 to 5. + bands = np.floor((ages - 5.0) / 10.0) + # Band cells are coarse, so the frame spans regions to fill all five folds. + regions = np.array(["LONDON", "WALES", "SCOTLAND", "NORTH_EAST", "SOUTH_WEST"]) raw = pd.DataFrame( { "gender": np.where(rng.random(n) < 0.5, "MALE", "FEMALE"), - "region": "LONDON", - "age": ages, + "region": regions[rng.integers(0, len(regions), n)], + "spi_age_band": bands, "main_source": "pay", "has_pay": 1.0, "has_trade": 0.0, @@ -317,7 +321,7 @@ def test_cross_fit_locates_a_copy_on_a_forest_that_never_saw_its_twin() -> None: ) encoded = pd.DataFrame( { - "age": ages, + "spi_age_band": bands, "gender_MALE": (raw.gender == "MALE").astype(float), "gender_FEMALE": (raw.gender == "FEMALE").astype(float), } @@ -373,7 +377,7 @@ def fit_reference(encoded_train, observed_train): located = copies[folds[copies] == fold] assert not (set(located.tolist()) & rows_seen) assert len(rows_seen) == int((folds != fold).sum()) - # Within a cell (same whole-year age and gender, and here the same + # Within a cell (same SPI age band, gender and region, and here the same # earlier leaves) the located pay quantiles are monotone in the twin's # pay: one forest locates the whole cell and holds no twin's own value. pay = observed["hmrc_spi_pay"].to_numpy()[copies] @@ -381,8 +385,9 @@ def fit_reference(encoded_train, observed_train): cells = pd.DataFrame( { "cell": ( - np.floor(ages[copies]).astype(int).astype(str) + bands[copies].astype(int).astype(str) + raw.gender.to_numpy()[copies] + + raw.region.to_numpy()[copies] ), "pay": pay, "u": located, @@ -409,7 +414,7 @@ def fit_reference(encoded_train, observed_train): # A copy whose fold-key cell moved away from its twin's is refused: the # forest that located it could have seen the twin. moved = raw.iloc[copies].reset_index(drop=True) - moved["age"] = moved["age"] + 7.0 + moved["spi_age_band"] = moved["spi_age_band"] + 1.0 with pytest.raises(ValueError, match="differs from its twin's"): cross_fit_transport( fit_reference, @@ -429,8 +434,10 @@ def fit_reference(encoded_train, observed_train): ) # A frame of one cell cannot hold anything out: refused unless the caller # is a sampled rung or a synthetic fixture, and then the receipt says so. - one_cell = raw.iloc[:10].assign(age=30.5, gender="MALE") - one_encoded = encoded.iloc[:10].assign(age=30.5, gender_MALE=1.0, gender_FEMALE=0.0) + one_cell = raw.iloc[:10].assign(spi_age_band=2.0, gender="MALE", region="LONDON") + one_encoded = encoded.iloc[:10].assign( + spi_age_band=2.0, gender_MALE=1.0, gender_FEMALE=0.0 + ) folds_one, used_one = cell_fold_ids(one_cell, folds=5, seed=42) assert used_one == 1 one_cell_call = dict( @@ -495,11 +502,13 @@ def test_cross_fit_refuses_folds_that_disagree_on_sign_classes() -> None: rng = np.random.default_rng(5) n = 400 ages = rng.integers(25, 60, n).astype(float) + 0.5 + # The stage's age predictor is the SPI band (uk-data#628): codes 2 to 5. + bands = np.floor((ages - 5.0) / 10.0) raw = pd.DataFrame( { "gender": np.where(rng.random(n) < 0.5, "MALE", "FEMALE"), "region": "LONDON", - "age": ages, + "spi_age_band": bands, "main_source": "pay", "has_pay": 1.0, "has_trade": 0.0, @@ -508,7 +517,7 @@ def test_cross_fit_refuses_folds_that_disagree_on_sign_classes() -> None: ) encoded = pd.DataFrame( { - "age": ages, + "spi_age_band": bands, "gender_MALE": (raw.gender == "MALE").astype(float), "gender_FEMALE": (raw.gender == "FEMALE").astype(float), } diff --git a/packages/microcosm-build/tests/engine_free/uk/test_uk_spi_spine.py b/packages/microcosm-build/tests/engine_free/uk/test_uk_spi_spine.py index 2705085a75..53e439b256 100644 --- a/packages/microcosm-build/tests/engine_free/uk/test_uk_spi_spine.py +++ b/packages/microcosm-build/tests/engine_free/uk/test_uk_spi_spine.py @@ -24,6 +24,7 @@ SPI_DONOR_REQUIRED_COLUMNS, SPI_INCOME_QRF_OUTPUT_COLUMNS, SPIDonorAgeModel, + SPIEmploymentPayFloor, impute_uk_spi_income_support, ) from microcosm.build.uk_runtime.spi_spine import ( @@ -72,6 +73,8 @@ def _base_frame(*, time_period: str = "2023") -> object: "ossben_identifiable_subset": [0.0, 0.0], "srp_regular_code5": [0.0, 0.0], "employment_status": ["FT_EMPLOYED", "FT_EMPLOYED"], + # Annual usual hours, as frs_spine writes them. + "hours_worked": [30 * 365.25 / 7, 0.0], "miscellaneous_income": [0.0, 0.0], **{ column: [0.0, 0.0] @@ -631,6 +634,19 @@ def uprating_factors(year, *, rebased_columns=None): source="engine-free fixture", ), ) + # The minimum wage is an engine read too; tests/engine/uk/ + # test_uk_spi_income.py reads the real parameter. + monkeypatch.setattr( + spi_spine, + "load_spi_employment_pay_floor", + lambda _build_period: SPIEmploymentPayFloor( + age_thresholds=(0.0, 18.0, 21.0), + hourly_rates=(6.40, 8.60, 11.44), + weeks_in_year=52.0, + instant="2024-04-30", + source="engine-free fixture", + ), + ) support_frame = UKSPISupportChannelStageTransform( stage=_committed_stage("spi_support_channel"), sample_fraction=0.0002, @@ -719,6 +735,9 @@ def unexpected_loader(*_args, **_kwargs): assert uk_frame_content_identity(from_path) == uk_frame_content_identity(from_seam) assert path_transform.checkpoint_metadata() == seam_transform.checkpoint_metadata() + pay_floor = path_transform.checkpoint_metadata()["evidence"]["employment_pay_floor"] + assert pay_floor["step"] == "spi_employment_pay_floor_before_stage2" + assert pay_floor["source"] == "engine-free fixture" def test_income_stage_parameters_accept_the_committed_manifest() -> None: @@ -762,6 +781,12 @@ def test_income_stage_parameters_refuse_a_base_channel_redraw() -> None: "spi_synthetic_support_channel", "target population", ), + ( + "floor_spi_employment_pay_at_minimum_wage", + "weeks_in_year", + 365.25 / 7, + "floor_spi_employment_pay_at_minimum_wage declaration drifted", + ), ], ) def test_income_stage_parameters_refuse_a_recipient_domain_drift( diff --git a/packages/microcosm-build/tests/engine_free/uk/test_uk_spine_acceptance_receipt.py b/packages/microcosm-build/tests/engine_free/uk/test_uk_spine_acceptance_receipt.py index 780c3eee19..b419b9069b 100644 --- a/packages/microcosm-build/tests/engine_free/uk/test_uk_spine_acceptance_receipt.py +++ b/packages/microcosm-build/tests/engine_free/uk/test_uk_spine_acceptance_receipt.py @@ -148,9 +148,10 @@ def _apply_pending_roster_transformations( assert "child_benefit_take_up" not in roster roster.insert(roster.index("pension_credit_take_up") + 1, "child_benefit_take_up") # microcosm#1319 re-mint pending: the Carer's Allowance draw reads the - # post-SPI earnings, right after the Child Benefit redraw. + # post-SPI earnings, right after salary_sacrifice, whose converted pay + # its earnings test reads (microcosm#1095 B5). assert "carers_allowance_take_up" not in roster - roster.insert(roster.index("child_benefit_take_up") + 1, "carers_allowance_take_up") + roster.insert(roster.index("salary_sacrifice") + 1, "carers_allowance_take_up") # microcosm#1095 re-mint pending: the SPI benefit pass runs after the last # UC report writer and before every UC, PC and CB consumer. assert "spi_benefit_coherence" not in roster diff --git a/packages/microcosm-build/tests/engine_free/uk/test_uk_stage_health.py b/packages/microcosm-build/tests/engine_free/uk/test_uk_stage_health.py index 44d331b1e3..99e4b8f96a 100644 --- a/packages/microcosm-build/tests/engine_free/uk/test_uk_stage_health.py +++ b/packages/microcosm-build/tests/engine_free/uk/test_uk_stage_health.py @@ -1561,12 +1561,15 @@ def run(ev): def test_road_fuel_level_gate_recomputes_the_level_from_the_vendored_row() -> None: """The lcfs road_fuel_level receipt is fact-checked at stage time (microcosm#1113).""" + import copy + import pandas as pd from microcosm.build.country_spec import load_country_spec from microcosm.build.uk_runtime.calibration_run import UK_SPINE_GATE_SCOPE from microcosm.build.uk_runtime.lcfs_consumption import ( level_road_fuel, + road_fuel_household_mix, road_fuel_level, road_fuel_level_operation, ) @@ -1575,18 +1578,41 @@ def test_road_fuel_level_gate_recomputes_the_level_from_the_vendored_row() -> No assert gate_id in UK_SPINE_GATE_SCOPE parameters = _gate_parameters(gate_id) assert parameters["check"] == "road_fuel_level" - declared = road_fuel_level_operation( - load_country_spec("uk").sources.stage_map()["lcfs_consumption"] - ) + stage = load_country_spec("uk").sources.stage_map()["lcfs_consumption"] + declared = road_fuel_level_operation(stage) draws = pd.DataFrame( {"petrol_spending": [900.0, 0.0, 400.0], "diesel_spending": [0.0, 700.0, 0.0]} ) + # The declaration levels each fuel to its household-paid share + # (microcosm#1095 B3, K): the receipt carries the NTS shares it used. + paid = {"petrol_spending": 0.94, "diesel_spending": 0.89} + mix, mix_receipt = road_fuel_household_mix(stage, paid) _, receipt = level_road_fuel( draws, level=road_fuel_level(declared, other_fuels_share=0.004), weights=np.array([1.0e7, 1.5e7, 2.0e7]), + mix=mix, + mix_receipt={ + **mix_receipt, + "nts": { + "fuels": { + column: {"household_paid_share": share} + for column, share in paid.items() + } + }, + }, ) + def with_mix(**changes): + tampered = copy.deepcopy(receipt) + for path, value in changes.items(): + node = tampered["mix"] + *parents, leaf = path.split("__") + for key in parents: + node = node[key] + node[leaf] = value + return tampered + def run(ev): return uk_stage_health_gate( evidence={"stage": "lcfs_consumption", "road_fuel_level": ev}, @@ -1613,6 +1639,22 @@ def failing(ev, fragment: str) -> None: failing({**receipt, "factor": receipt["factor"] * 1.01}, "does not reproduce") failing({**receipt, "source_record_id": "elsewhere"}, "declared row") failing({**receipt, "other_fuels_share": 0.2}, "other-fuels share") + assert passed.details["household_mix"] == pytest.approx(mix) + petrol_after = receipt["mix"]["frame_after"]["petrol_spending"] + failing( + with_mix(frame_after__petrol_spending=petrol_after * 1.01), + "levelled petrol_spending total", + ) + failing( + with_mix(fuels__diesel_spending__mix=mix["diesel_spending"] * 1.01), + "recomputed", + ) + failing( + with_mix(nts__fuels__petrol_spending__household_paid_share=1.2), + "outside (0, 1]", + ) + with pytest.raises(ValueError, match="mix must be an object"): + run({key: value for key, value in receipt.items() if key != "mix"}) with pytest.raises(ValueError, match="road_fuel_level must be an object"): run(None) @@ -2322,15 +2364,20 @@ def family(dwp, before, after, reachable, realized): "reachable_pools_caseload_after": realized, } - # 0.05 until microcosm#1418; the savings follow-up (microcosm#1428) joins - # unmet pools instead of widening it. + # 0.05 until microcosm#1418, and 0.055 after it: the savings follow-up + # (microcosm#1428) joins unmet pools instead of widening it. The caseload's + # was 0.12 for the SPI pay floor (uk-data#629) from María's ruling of + # 2026-10-29 until the pool joining brought every family type closer to + # DWP's count (her ruling of 2026-11-02). The reachable pools have a + # tolerance of their own (Vahid's review of #1426). parameters = { "stage": "uc_take_up", "check": "uc_take_up", "maximum_caseload_deviation": 0.055, + "maximum_reachable_pool_deviation": 0.055, } - def gate(families, **counts): + def gate(families, parameters=parameters, **counts): return uk_stage_health_gate( evidence={ "stage": "uc_take_up", @@ -2354,12 +2401,26 @@ def gate(families, **counts): assert not gate(good, outside="<3").passed # The reachable pools miss DWP's count by more than the tolerance. assert not gate( - {**good, "SINGLE": family(3_000.0, 3_300.0, 3_020.0, 2_500.0, 2_700.0)} + {**good, "SINGLE": family(3_000.0, 3_300.0, 3_020.0, 2_500.0, 2_900.0)} + ).passed + # The pools keep their own tolerance: 8% off fails even where the caseload's + # allows more. + assert not gate( + {**good, "SINGLE": family(3_000.0, 3_300.0, 3_020.0, 2_500.0, 2_700.0)}, + parameters={**parameters, "maximum_caseload_deviation": 0.12}, ).passed # The family type moves further from DWP than before. assert not gate( {**good, "LONE_PARENT": family(2_100.0, 1_400.0, 1_100.0, 0.0, 0.0)} ).passed + # A caseload at DWP's before the redraw may end up to 0.055 of DWP's count + # from it after, not 0.1. + assert _passed( + gate({**good, "SINGLE": family(3_000.0, 3_000.0, 2_850.0, 2_500.0, 2_510.0)}) + ) + assert not gate( + {**good, "SINGLE": family(3_000.0, 3_000.0, 2_700.0, 2_500.0, 2_510.0)} + ).passed # A caseload resting on fewer than three sources cannot be checked: it is # flagged, never failed (María's ruling of 2026-10-26); one missing fails. thin = gate({**good, "SINGLE": family(3_000.0, "<3", 1.0, 0.0, 0.0)}) @@ -2396,6 +2457,10 @@ def evidence(): column: {"rows_differing_from_twin_after": 0} for column in parameters["restored_columns"] }, + "restored_within_earnings_limit": { + column: {"rows_breaking_rule_after": 0} + for column in parameters["restored_within_earnings_limit_columns"] + }, "benefits_in_own_right": {"mismatches_after": 0, "spi_rows_changed": 2}, "universal_credit_take_up": { "reporters_not_claiming": 0, @@ -2426,6 +2491,14 @@ def gate(payload): payload["restored"]["iidb_reported"]["rows_differing_from_twin_after"] = 2 broken.append(payload) payload = evidence() + payload["restored_within_earnings_limit"]["esa_contrib_reported"][ + "rows_breaking_rule_after" + ] = 1 + broken.append(payload) + payload = evidence() + del payload["restored_within_earnings_limit"]["jsa_contrib_reported"] + broken.append(payload) + payload = evidence() payload["benefits_in_own_right"]["mismatches_after"] = 1 broken.append(payload) payload = evidence() @@ -2780,6 +2853,50 @@ def test_property_purchases_gate_flags_a_kind_on_fewer_than_three_buyers() -> No assert clean.details["kinds_unchecked_small_cells"] == [] +def _hourly_pay_receipt(after=0.10, frs=0.15, below_floor=0) -> dict: + return { + "stage": "hmrc_spi_income_spine", + "employment_pay_floor": { + "hourly_pay_check": { + "spi_drawn_employees": { + "source_households": "30+", + "below_minimum_wage_share_before": 0.37, + "below_minimum_wage_share_after": after, + }, + "frs_employees": { + "source_households": "30+", + "below_minimum_wage_share": frs, + }, + "eligible_rows_below_their_floor_after": below_floor, + } + }, + } + + +def test_spi_hourly_pay_gate_holds_drawn_employees_to_their_floor() -> None: + gate_id = "uk_stage_hmrc_spi_income_spine_hourly_pay" + passed = _gate(gate_id, _hourly_pay_receipt()) + assert _passed(passed) + # The details give the verdicts, never the shares. + assert passed.details == { + "stage": "hmrc_spi_income_spine", + "check": "spi_hourly_pay", + "eligible_rows_below_their_floor_after": 0, + "share_judged": True, + "share_within_margin": True, + } + assert _passed(_gate(gate_id, _hourly_pay_receipt(after=0.17, frs=0.15))) + above = _gate(gate_id, _hourly_pay_receipt(after=0.18, frs=0.15)) + assert "more often than FRS employees" in above.failures[0] + below_floor = _gate(gate_id, _hourly_pay_receipt(below_floor="<3")) + assert "below their pay floor" in below_floor.failures[0] + # A withheld share is not judged; the floor invariant still is. + withheld = _gate(gate_id, _hourly_pay_receipt(after="<3")) + assert _passed(withheld) and withheld.details["share_judged"] is False + missing = _gate(gate_id, {"stage": "hmrc_spi_income_spine"}) + assert "no employment pay floor" in missing.failures[0] + + def _home_values_receipt() -> dict: regions = [f"E1200000{index}" for index in range(1, 10)] + ["W92000004"] return { diff --git a/packages/microcosm-build/tests/engine_free/uk/test_uk_student_loans.py b/packages/microcosm-build/tests/engine_free/uk/test_uk_student_loans.py index 1b9f54f043..a23a91f29a 100644 --- a/packages/microcosm-build/tests/engine_free/uk/test_uk_student_loans.py +++ b/packages/microcosm-build/tests/engine_free/uk/test_uk_student_loans.py @@ -351,6 +351,8 @@ def test_committed_stocks_pin_full_2025_to_2030_series() -> None: "realization_bound", ) ], + (3, "output"), + (3, "formula"), ], ) def test_manifest_drift_assert_covers_every_reviewed_parameter( @@ -448,3 +450,78 @@ def test_top_up_receipt_records_the_taken_rows_lineage() -> None: year=2025, ) assert bare.plans["PLAN_2"].topped_up_lineage == {"columns": []} + + +def _balances(result): + person = result.frame.table("person") + return dict(zip(person["person_id"], person["student_loan_balance"], strict=True)) + + +def test_the_household_balance_moves_to_its_borrower_below_the_threshold() -> None: + """was_wealth splits the WAS balance before any plan exists; once the plans + are set it is the borrower's (microcosm#1095 B9).""" + # Household 1: person 1 reports an outstanding loan below the threshold + # (Plan 2 at 2025), person 2 holds was_wealth's share. Household 2 has no + # borrower and keeps its split. + result = assign_student_loan_plans( + _frame( + ages=[30, 32, 40, 41], + repayments=[0.0] * 4, + reports_outstanding=[True, False, False, False], + education=["TERTIARY", "TERTIARY", "UPPER_SECONDARY", "TERTIARY"], + balances=[0.0, 12_000.0, 3_000.0, 1_000.0], + households=[1, 1, 2, 2], + ), + stocks=_stocks(plan_2=0, plan_5=0), + year=2025, + ) + + plans = result.frame.table("person")["student_loan_plan"].tolist() + assert plans == ["PLAN_2", "NONE", "NONE", "NONE"] + assert _balances(result) == {1: 12_000.0, 2: 0.0, 3: 3_000.0, 4: 1_000.0} + assert result.balance["households_resplit"] == 1 + assert result.balance["rows_changed"] == 2 + assert result.balance["weighted_balance"] == 16_000.0 + assert result.balance["weighted_balance_on_borrowers_before"] == 0.0 + assert result.balance["weighted_balance_on_borrowers_after"] == 12_000.0 + assert result.evidence()["balance"] == dict(result.balance) + + +def test_borrowers_share_by_repayments_where_any_repays_else_equally() -> None: + balance, receipt = allocate_balance_to_borrowers( + balance=np.array([1_000.0, 0.0, 3_000.0, 0.0, 600.0, 0.0, 0.0]), + repayments=np.array([100.0, 300.0, 0.0, 0.0, 0.0, 0.0, 0.0]), + borrower=np.array([True, True, True, False, True, True, False]), + household_ids=np.array([1, 1, 1, 1, 2, 2, 2]), + person_weights=np.ones(7), + ) + + # Household 1: two repayers share 4,000 one to three, and the borrower who + # does not repay takes none. Household 2: no borrower repays, so its two + # borrowers share 600 equally. + np.testing.assert_allclose(balance, [1_000.0, 3_000.0, 0.0, 0.0, 300.0, 300.0, 0.0]) + assert receipt["households_resplit"] == 2 + assert receipt["weighted_borrowers_with_balance_after"] == 4.0 + + +def test_households_without_a_borrower_or_a_balance_keep_their_split() -> None: + before = np.array([500.0, 250.0, 0.0, 0.0]) + balance, receipt = allocate_balance_to_borrowers( + balance=before, + repayments=np.zeros(4), + borrower=np.array([False, False, True, False]), + household_ids=np.array([7, 7, 8, 8]), + person_weights=np.array([2.0, 2.0, 3.0, 3.0]), + ) + + np.testing.assert_array_equal(balance, before) + assert receipt["households_resplit"] == 0 + assert receipt["weighted_balance"] == 1_500.0 + with pytest.raises(ValueError, match="nonnegative"): + allocate_balance_to_borrowers( + balance=np.array([-1.0]), + repayments=np.zeros(1), + borrower=np.array([True]), + household_ids=np.array([1]), + person_weights=np.ones(1), + ) diff --git a/packages/microcosm-build/tests/engine_free/uk/test_uk_target_references.py b/packages/microcosm-build/tests/engine_free/uk/test_uk_target_references.py index a137a728e2..4208d35803 100644 --- a/packages/microcosm-build/tests/engine_free/uk/test_uk_target_references.py +++ b/packages/microcosm-build/tests/engine_free/uk/test_uk_target_references.py @@ -127,8 +127,9 @@ # after the compile, less the North East and Wales rows over £2m, signed out # below the small-cell floor; microcosm#1095 (#1422): the three OBR council # tax nation rows, pinned to the UK, and SLC's three nation repayment rows in -# place of the devolved total -ACTIVE_REFERENCE_COUNT = 1418 +# place of the devolved total; microcosm#1426: HMRC's two High Income Child Benefit +# Charge rows, measured diagnostics +ACTIVE_REFERENCE_COUNT = 1420 REGION_TIER_LEVEL = {code: level for level, code in UK_REGION_TIER} diff --git a/packages/microcosm-build/tests/engine_free/uk/test_uk_uc_capital_coherence.py b/packages/microcosm-build/tests/engine_free/uk/test_uk_uc_capital_coherence.py index a822fecec3..b10a09e7ee 100644 --- a/packages/microcosm-build/tests/engine_free/uk/test_uk_uc_capital_coherence.py +++ b/packages/microcosm-build/tests/engine_free/uk/test_uk_uc_capital_coherence.py @@ -64,18 +64,16 @@ def test_stage_orders_after_every_universal_credit_report_writer() -> None: assert reporter_writers assert all(index < coherence_index for index, _ in reporter_writers) # The Universal Credit redraw (microcosm#1334), the Move to UC claim draw - # (microcosm#1095), the Pension Credit take-up redraw (microcosm#1069 c7), - # the Child Benefit redraw (microcosm#1063 c8) and the Carer's Allowance - # draw (microcosm#1319) sit between the coherence stage and the deduction - # attributes; none writes a UC report. + # (microcosm#1095), the Pension Credit take-up redraw (microcosm#1069 c7) + # and the Child Benefit redraw (microcosm#1063 c8) sit between the + # coherence stage and the deduction attributes; none writes a UC report. assert [ - stage.stage for stage in stages[coherence_index + 1 : coherence_index + 7] + stage.stage for stage in stages[coherence_index + 1 : coherence_index + 6] ] == [ "uc_take_up", "uc_legacy_closure_take_up", "pension_credit_take_up", "child_benefit_take_up", - "carers_allowance_take_up", "uc_deduction_attributes", ] diff --git a/packages/microcosm-build/tests/engine_free/uk/test_uk_uc_target_measurements.py b/packages/microcosm-build/tests/engine_free/uk/test_uk_uc_target_measurements.py index 36213c3ade..3b8b47893e 100644 --- a/packages/microcosm-build/tests/engine_free/uk/test_uk_uc_target_measurements.py +++ b/packages/microcosm-build/tests/engine_free/uk/test_uk_uc_target_measurements.py @@ -23,9 +23,11 @@ from microcosm.frame import EntitySchema, Frame, WeightKind, Weights -def _fixture(): +def _fixture(*, third_child_born_early_2017=False): # Own QYP ages, award, dwelling. Units 1, 3, 4 share a dwelling: two - # affected claims and an unrelated claimant with a baby and PIP. + # affected claims and an unrelated claimant with a baby and PIP. A child + # of 9 or over was born before 6 April 2017; the 8-year-old third child of + # unit 5 after it, or with the keyword from January to 5 April 2017. scenarios = [ ([19, 17, 15, 13, 11], 100, 0), # five older qualifying children ([19, 10, 3], 100, 1), # includes an older QYP; child gets PIP @@ -47,7 +49,8 @@ def _fixture(): person_benunit_id=bu, person_household_id=hh, age=age, - birth_year=2025 - age, + born_before=i > 0 + and (age >= 9 or (bu == 5 and third_child_born_early_2017)), is_benunit_head=i == 0, is_parent=i == 0, qyp=i > 0 or bu == 3, # young claimant also QYP: exclude @@ -70,6 +73,7 @@ def _fixture(): "is_child_or_qualifying_young_person_for_universal_credit": "qyp", "uc_individual_disabled_child_element": "disabled_element", "uc_is_child_limit_affected": "denied_element", + "uc_is_child_born_before_child_limit": "born_before", } def calculate(variable, year): @@ -116,6 +120,26 @@ def test_tcl_counts_include_exceptions_and_do_not_use_denied_element_flags(): assert before[6] and not before[0] +def test_tcl_dates_births_by_the_engine_cutoff_not_the_calendar_year(): + """A third child born from January to 5 April 2017 is not affected: the + measure reads the engine's own cutoff test, not the birth year + (microcosm#1095 AC3).""" + for variable in ( + "uc_tcl_affected_child_count_proxy", + "uc_tcl_affected_benunit_proxy", + ): + frame, sim = _fixture() + after_cutoff, _ = compute_uk_measure_input( + frame, sim, "benunit", variable, 2025 + ) + frame, sim = _fixture(third_child_born_early_2017=True) + early_2017, _ = compute_uk_measure_input(frame, sim, "benunit", variable, 2025) + assert after_cutoff[5] == 1 and early_2017[5] == 0 + np.testing.assert_array_equal( + np.delete(after_cutoff, 5), np.delete(early_2017, 5) + ) + + def test_tcl_receipt_explicitly_records_remaining_claim_date_and_period_proxies(): frame, sim = _fixture() resolver = UKMeasureResolver.__new__(UKMeasureResolver) @@ -130,7 +154,10 @@ def test_tcl_receipt_explicitly_records_remaining_claim_date_and_period_proxies( resolver.compute("benunit", variable) contract = resolver.receipt()["uc_tcl_comparison_contract"] assert contract["source_birth_cutoff"] == "2017-04-06" - assert contract["model_birth_cutoff_proxy"] == "model birth_year >= 2017" + assert contract["model_birth_cutoff_proxy"] == ( + "policyengine-uk uc_is_child_born_before_child_limit: date of birth " + "before 2017-04-06" + ) assert contract["model_claim_state_proxy"] == "universal_credit > 0" assert contract["status"] == "partial_alignment_with_explicit_proxies" assert contract["model_period"] == "2025" diff --git a/packages/microcosm-build/tests/engine_free/uk/test_uk_weighted_integrity.py b/packages/microcosm-build/tests/engine_free/uk/test_uk_weighted_integrity.py index aff3e143bc..9b2be23958 100644 --- a/packages/microcosm-build/tests/engine_free/uk/test_uk_weighted_integrity.py +++ b/packages/microcosm-build/tests/engine_free/uk/test_uk_weighted_integrity.py @@ -468,12 +468,12 @@ def test_qrf_columns_check_every_declared_output_regardless_of_density() -> None assert "density_filter" in surface # Declared outputs the fixture does not carry are reported, not invented. assert "dividend_income" in surface["absent_columns"] - # The 57 declared outputs (since microcosm#1095, stage 2's trading_loss and + # The 59 declared outputs (since microcosm#1095, stage 2's trading_loss and # six owner-manager inputs, and stage 1's two loss draws, which the stage # moves into loss_relief and drops, so a frame never carries them), less - # the ten spi_benefit_coherence replaces on every SPI-channel row - # (microcosm#1100); they hold no forest draw. - assert surface["declared_qrf_outputs"] == 47 + # the thirteen spi_benefit_coherence replaces on every SPI-channel row + # (microcosm#1100; contributory ESA since B10); they hold no forest draw. + assert surface["declared_qrf_outputs"] == 46 assert surface["superseded_by_spi_benefit_coherence"] == [ "income_support_reported", "working_tax_credit_reported", @@ -486,6 +486,7 @@ def test_qrf_columns_check_every_declared_output_regardless_of_density() -> None "widowed_parents_allowance_reported", "jsa_contrib_reported", "jsa_income_reported", + "esa_contrib_reported", "esa_income_reported", ] assert not set(surface["superseded_by_spi_benefit_coherence"]) & set(values) @@ -500,12 +501,14 @@ def test_the_superseded_columns_are_the_coherence_stage_declaration() -> None: ) from microcosm.build.uk_runtime.spi_benefit_coherence import ( SPI_RESTORED_REPORT_COLUMNS, + SPI_WITHIN_LIMIT_REPORT_COLUMNS, SPI_ZEROED_REPORT_COLUMNS, ) assert uk_spi_coherence_superseded_columns() == ( *SPI_ZEROED_REPORT_COLUMNS, *SPI_RESTORED_REPORT_COLUMNS, + *SPI_WITHIN_LIMIT_REPORT_COLUMNS, ) diff --git a/packages/microcosm-data/src/microcosm/data/contract.py b/packages/microcosm-data/src/microcosm/data/contract.py index 0c8f2bf34e..3fd2deb90f 100644 --- a/packages/microcosm-data/src/microcosm/data/contract.py +++ b/packages/microcosm-data/src/microcosm/data/contract.py @@ -475,13 +475,13 @@ def _is_hierarchy_diagnostics_version(value: object) -> bool: # fingerprint derives from the manifest digest. Editing the spec moves all # three here in the same reviewed change. _UK_GATE_BATTERY_POLICY_SHA256 = ( - "40e24836c45468ccb50b025dcd05603dc4d8af37ef546fa3bc6d4ea9152f707e" + "6a215516d677a2cd071ebeaa144ff1a2b8eda8daf555930ece1e77be2492464c" ) _UK_GATE_BATTERY_GATES_MANIFEST_SHA256 = ( - "7d9a294b0c17dd545beb88fcf3d1e596a4c36dd4aa8a7821b6fe767de3beb85f" + "8beb438e98a93b4a638bfd6e559c550bffb7815dc50056db1b6cda0c256b5d46" ) _UK_GATE_BATTERY_SPEC_FINGERPRINT = ( - "0b82c7d90eb4400bb333a4f477509c9570221ecfd5afde13f08de4c8689b6db9" + "7b47b996571fce291619893c1aa4c709a3b2ff27499a5dbf7328402155b43a05" ) #: Spec entry id -> the legacy gate name whose observable detail checks #: apply unchanged (the battery re-keys the report by entry id; the gate @@ -553,6 +553,7 @@ def _is_hierarchy_diagnostics_version(value: object) -> bool: "stage_health", "transferred", ), + "uk_stage_hmrc_spi_income_spine_hourly_pay": ("stage_health", "transferred"), "uk_stage_spi_benefit_coherence": ("stage_health", "transferred"), "uk_stage_uc_take_up": ("stage_health", "transferred"), "uk_stage_pension_credit_take_up": ("stage_health", "transferred"), @@ -679,6 +680,7 @@ def _is_hierarchy_diagnostics_version(value: object) -> bool: "uk_stage_frs_annual_income_spells", "uk_stage_spi_support_channel_mass", "uk_stage_hmrc_spi_income_spine_identity", + "uk_stage_hmrc_spi_income_spine_hourly_pay", "uk_stage_spi_benefit_coherence", "uk_stage_uc_take_up", "uk_stage_pension_credit_take_up", @@ -933,6 +935,7 @@ def _uk_line_cut_tag_re(release_id: str) -> re.Pattern[str] | None: "uk_stage_high_value_home_support_mass", "uk_stage_hmrc_cgt_asset_type_spine_summary", "uk_stage_hmrc_cgt_gains_spine_summary", + "uk_stage_hmrc_spi_income_spine_hourly_pay", "uk_stage_hmrc_spi_income_spine_identity", "uk_stage_isa_subscriptions", "uk_stage_isa_subscriptions_invariants", @@ -1003,10 +1006,10 @@ def _uk_line_cut_tag_re(release_id: str) -> re.Pattern[str] | None: _UK_CERTIFICATION_PART_DIGESTS: Mapping[str, Mapping[str, str]] = { "spine": { "gates_manifest_sha256": ( - "4f59118f648d48c04aff3a28def11c472318b2dae368513a69467138799bd613" + "680c75be586f52cfbc65ef2cbd65e07ca56e75af55bd16e006a1fcb5457091b1" ), "policy_sha256": ( - "33e851f78f1dc1fde7969c6d875ea2d85b9ea41a39551680ad5a59b369b60f44" + "e09d8f90dc643caa77c597670c2a738576a0a44c5119999c3c1d66dfe3fd66d1" ), }, "calibration_seam": { @@ -1019,10 +1022,10 @@ def _uk_line_cut_tag_re(release_id: str) -> re.Pattern[str] | None: }, "release_cut": { "gates_manifest_sha256": ( - "97a16c72db2c97d224a7e6e26f4afcad6eec4ed581b337bdb68fe9df4dbea82d" + "c7d6169e6c2516274d3635937c0965f405ad0a02cd821c17bc246c11f82b3a8c" ), "policy_sha256": ( - "9961e4d3417e7812fb2248bd757fa057c2c3e08643dd4cc058da4713aae57057" + "606a841fca55d7936b7c15a10305582eba11b1a67c4da5248b97c4fa7ff721e5" ), }, } diff --git a/packages/microcosm-data/tests/engine_free/shared/test_contract.py b/packages/microcosm-data/tests/engine_free/shared/test_contract.py index f7b3e8601b..6c1736bbfa 100644 --- a/packages/microcosm-data/tests/engine_free/shared/test_contract.py +++ b/packages/microcosm-data/tests/engine_free/shared/test_contract.py @@ -224,13 +224,13 @@ def _trusted_terminal_gate_signing_key(monkeypatch) -> None: UK_GATE_BATTERY_PRODUCER = "microcosm.build.gate_battery" UK_GATE_BATTERY_SIGNING_KEY_ENV = "MICROCOSM_UK_TERMINAL_GATE_SIGNING_KEY" UK_GATE_BATTERY_POLICY_SHA256 = ( - "40e24836c45468ccb50b025dcd05603dc4d8af37ef546fa3bc6d4ea9152f707e" + "6a215516d677a2cd071ebeaa144ff1a2b8eda8daf555930ece1e77be2492464c" ) UK_GATE_BATTERY_GATES_MANIFEST_SHA256 = ( - "7d9a294b0c17dd545beb88fcf3d1e596a4c36dd4aa8a7821b6fe767de3beb85f" + "8beb438e98a93b4a638bfd6e559c550bffb7815dc50056db1b6cda0c256b5d46" ) UK_GATE_BATTERY_SPEC_FINGERPRINT = ( - "0b82c7d90eb4400bb333a4f477509c9570221ecfd5afde13f08de4c8689b6db9" + "7b47b996571fce291619893c1aa4c709a3b2ff27499a5dbf7328402155b43a05" ) UK_GATE_BATTERY_DEGENERATE_EVIDENCE_SHA256 = ( "f246388de42654dd68dbbb40c42282001b5b0a8bf48976162bcb1199085cb1d3" @@ -311,6 +311,7 @@ def _trusted_terminal_gate_signing_key(monkeypatch) -> None: "transferred", None, ), + "uk_stage_hmrc_spi_income_spine_hourly_pay": ("stage_health", "transferred", None), "uk_stage_spi_benefit_coherence": ("stage_health", "transferred", None), "uk_stage_uc_take_up": ("stage_health", "transferred", None), "uk_stage_pension_credit_take_up": ("stage_health", "transferred", None), @@ -1449,6 +1450,7 @@ def _gate_battery_payload( "uk_stage_frs_annual_income_spells": "frs_annual_income_spells", "uk_stage_spi_support_channel_mass": "spi_support_channel", "uk_stage_hmrc_spi_income_spine_identity": "hmrc_spi_income_spine", + "uk_stage_hmrc_spi_income_spine_hourly_pay": "hmrc_spi_income_spine", "uk_stage_spi_benefit_coherence": "spi_benefit_coherence", "uk_stage_uc_take_up": "uc_take_up", "uk_stage_pension_credit_take_up": "pension_credit_take_up", diff --git a/packages/microcosm-frame/src/microcosm/frame/adapters/policyengine_uk_concepts.py b/packages/microcosm-frame/src/microcosm/frame/adapters/policyengine_uk_concepts.py index 4fe2bc1655..6497ce0bd2 100644 --- a/packages/microcosm-frame/src/microcosm/frame/adapters/policyengine_uk_concepts.py +++ b/packages/microcosm-frame/src/microcosm/frame/adapters/policyengine_uk_concepts.py @@ -231,15 +231,17 @@ ) _UK_CHILD_LIMIT_EXCEPTIONS_AT_DEFAULT = ( "The exceptions to the Universal Credit and Child Tax Credit two-child limit " - "(UC Regs 2013 Sch 12; CTC Regs 2002 regs 9 to 14; policyengine-uk 2.161.0): " - "multiple births, adoption, non-parental caring arrangements, non-consensual " - "conception and the continuation of an earlier exception. The FRS records " - "none of them as such, so each stays false, and a third or later child who " - "qualifies for one gets no child element: Universal Credit is understated " - "for those families until the limit ends on 6 April 2026. Multiple births " - "(siblings of the same age) and non-parental care (a child whose benefit " - "unit holds no parent) could be read from the FRS household grid after this " - "lock (microcosm#1095; for María's signature)." + "(UC Regs 2013 Sch 12; CTC Regs 2002 regs 9 to 14; policyengine-uk 2.161.0) " + "for multiple births, adoption, non-consensual conception and the " + "continuation of an earlier exception. The FRS records none of them as such, " + "so each stays false, and a third or later child who qualifies for one gets " + "no child element: Universal Credit is understated for those families until " + "the limit ends on 6 April 2026. Multiple births stay false although " + "siblings of the same age could stand for them: the FRS has no twin field and " + "its birth dates are blank, so same-age siblings would also take in siblings " + "born under a year apart (María's ruling of 2 November 2026). The " + "non-parental caring exception is read from the household grid by " + "frs_relationships (microcosm#1095; for María's signature)." ) @@ -328,7 +330,6 @@ "child_limit_continuation_exception", "child_limit_multiple_birth_exception", "child_limit_non_consensual_conception_exception", - "child_limit_non_parental_caring_exception", ), _UK_CHILD_LIMIT_EXCEPTIONS_AT_DEFAULT, ), diff --git a/packages/microcosm-graph/tests/fixtures/parity/uk_spine/NORMALIZATION.md b/packages/microcosm-graph/tests/fixtures/parity/uk_spine/NORMALIZATION.md index a105664a75..149f550156 100644 --- a/packages/microcosm-graph/tests/fixtures/parity/uk_spine/NORMALIZATION.md +++ b/packages/microcosm-graph/tests/fixtures/parity/uk_spine/NORMALIZATION.md @@ -1,6 +1,6 @@ # UK spine parity string normalization -The unchanged legacy transforms retain these 26 textual table columns as +The unchanged legacy transforms retain these 29 textual table columns as pandas `object`. The frozen graph dtype token `string` is specified by interface-freeze amendment 10 as pandas `StringDtype(storage="python")`. Before computing the legacy oracle's `uk_frame_content_identity` (live, @@ -8,6 +8,6 @@ in `legacy_oracle_identity`), exactly this audited surface is cast to that dtype. No values, row order, column order, weights, strata, mass records, or metadata change. -- `person`: `gender`, `marital_status`, `employment_status`, `employment_sector`, `aa_category`, `dla_sc_category`, `dla_m_category`, `pip_m_category`, `pip_dl_category`, `current_education`, `highest_education`, `person_support_channel`, `student_loan_plan`, `relationship_to_head`, `ons_family_role`, `capital_gains_asset_type`, `company_car_fuel_type` +- `person`: `gender`, `marital_status`, `employment_status`, `employment_sector`, `aa_category`, `dla_sc_category`, `dla_m_category`, `pip_m_category`, `pip_dl_category`, `current_education`, `highest_education`, `person_support_channel`, `student_loan_plan`, `relationship_to_head`, `ons_family_role`, `capital_gains_asset_type`, `company_car_fuel_type`, `car_fuel_type`, `car_first_registration_date` - `benunit`: `benunit_support_channel`, `uc_deduction_combination` - `household`: `region`, `tenure_type`, `accommodation_type`, `council_tax_band`, `brma`, `household_support_channel`, `source_household_key`, `ons_household_type` diff --git a/packages/microcosm-graph/tests/fixtures/parity/uk_spine/sources/cgt_asset_type_facts.json b/packages/microcosm-graph/tests/fixtures/parity/uk_spine/sources/cgt_asset_type_facts.json index bfa6eaad6e..e2e93890da 100644 --- a/packages/microcosm-graph/tests/fixtures/parity/uk_spine/sources/cgt_asset_type_facts.json +++ b/packages/microcosm-graph/tests/fixtures/parity/uk_spine/sources/cgt_asset_type_facts.json @@ -2,70 +2,70 @@ "resource": "synthetic-cgt-asset-type.json", "resource_sha256": "synthetic", "source_commit": "synthetic", - "table4_all_gains": 6567779.158835469, + "table4_all_gains": 6432140.442900506, "table4_all_tax": 0.0, - "table4_all_taxpayers": 15.645847684894523, + "table4_all_taxpayers": 15.620692070399844, "table4_bands": [ { - "gains": 6262.290969943808, + "gains": 5904.4347908435375, "lower_bound": 0, "tax": null, - "taxpayers": 1.4320098873010005, + "taxpayers": 1.3744469955188574, "upper_bound": 10000 }, { - "gains": 24063.64355992752, + "gains": 32034.75504552742, "lower_bound": 10000, "tax": null, - "taxpayers": 1.4653704559490115, + "taxpayers": 1.9314676701362754, "upper_bound": 25000 }, { - "gains": 81614.98942021298, + "gains": 54864.57734075372, "lower_bound": 25000, "tax": null, - "taxpayers": 2.2495857610440857, + "taxpayers": 1.5032132743952833, "upper_bound": 50000 }, { - "gains": 134940.71583113162, + "gains": 152528.4560198875, "lower_bound": 50000, "tax": null, - "taxpayers": 1.9395983558176588, + "taxpayers": 2.202207105013423, "upper_bound": 100000 }, { - "gains": 142317.70165223547, + "gains": 243549.7014216287, "lower_bound": 100000, "tax": null, - "taxpayers": 0.9050403178705543, + "taxpayers": 1.441606580784334, "upper_bound": 250000 }, { - "gains": 622123.2583176545, + "gains": 452970.1208343457, "lower_bound": 250000, "tax": null, - "taxpayers": 1.725490737653384, + "taxpayers": 1.3231397337347075, "upper_bound": 500000 }, { - "gains": 848903.2550118314, + "gains": 822724.5070800455, "lower_bound": 500000, "tax": null, - "taxpayers": 1.2211988651862962, + "taxpayers": 1.1770468204494895, "upper_bound": 1000000 }, { - "gains": 4707553.304072532, + "gains": 4667563.8903674735, "lower_bound": 1000000, "tax": null, - "taxpayers": 4.7075533040725315, + "taxpayers": 4.667563890367473, "upper_bound": null } ], - "table4_individuals_gains": 6567779.158835469, + "table4_individuals_gains": 6432140.442900506, "table4_individuals_tax": 0.0, - "table4_individuals_taxpayers": 15.645847684894523, + "table4_individuals_taxpayers": 15.620692070399844, "table4_trusts_gains": 0.0, "table4_trusts_tax": 0.0, "table7_total_disposals": 2743095.2380952383, @@ -114,12 +114,12 @@ "proceeds": 9000000000.0 } ], - "table8a_disposals_total": 29.50359849151538, - "table8a_gains_total": 37385992.48877222, - "table8a_tax_total": 7477198.497754444, - "table8a_taxpayers_total": 26.82145317410489, - "table8b_all_gains": 37385992.48877222, - "table8b_all_taxpayers": 26.82145317410489, - "table8b_individuals_gains": 37385992.48877222, - "table8b_individuals_taxpayers": 26.82145317410489 + "table8a_disposals_total": 29.456162189896844, + "table8a_gains_total": 46158292.702458374, + "table8a_tax_total": 9231658.540491676, + "table8a_taxpayers_total": 26.778329263542584, + "table8b_all_gains": 46158292.702458374, + "table8b_all_taxpayers": 26.778329263542584, + "table8b_individuals_gains": 46158292.702458374, + "table8b_individuals_taxpayers": 26.778329263542584 } diff --git a/packages/microcosm-graph/tests/fixtures/parity/uk_spine/sources/fixture.json b/packages/microcosm-graph/tests/fixtures/parity/uk_spine/sources/fixture.json index f882d0778c..0bf8bdfb4b 100644 --- a/packages/microcosm-graph/tests/fixtures/parity/uk_spine/sources/fixture.json +++ b/packages/microcosm-graph/tests/fixtures/parity/uk_spine/sources/fixture.json @@ -33,6 +33,7 @@ "nts_stage": "nts_stage.csv", "nts_ticket": "nts_ticket.csv", "nts_trip": "nts_trip.csv", + "nts_vehicle": "nts_vehicle.csv", "property_purchase_targets": "property_purchase_targets.json", "property_rental_facts": "property_rental_facts.json", "spi_donor": "spi_donor.csv", @@ -98,7 +99,7 @@ "artifacts": [], "grain": "person", "nonnegative_outputs": [], - "notes": "Runs after the SPI income chain, UC capital coherence and the Pension Credit and Child Benefit redraws, before CGT cloning, so every clone carries its source's draw (microcosm#1319). frs_spine sets would_claim_carers_allowance from reported receipt and the SPI income chain re-derives it from the refilled receipt on the rows it redraws, so that care_hours qualifies a carer for the Universal Credit carer element without paying the allowance to every carer (#882). A carer above the earnings limit cannot report the allowance, so no reform that widens it reached a carer who would claim once entitled: the April 2025 rise of the limit from \u00a3151 to \u00a3196 a week brought an estimated 61,000 more people into eligibility (Independent Review of Carer's Allowance Overpayments, July 2025, chapter 7). One temporary engine materialization at the survey year, on the frame's own values, gives each person's is_gainfully_employed_for_carers_allowance, is_severely_disabled_for_carers_allowance and carers_allowance_earnings (consumed only); the engine reads a year's parameters at 30 April, so the limit is 2024-25's \u00a3151. The allowance is paid only for caring for a severely disabled person (SSCBA 1992 s. 70(2)), which the care hours do not record (microcosm#1418): a carer whose largest in-household band alone reaches the hours (frs_care_hours_in_household) qualifies when another member of the household is severely disabled, and a carer whose largest in-household band does not reach them (care outside the household, or hours spread over bands; the allowance needs the hours for one person) joins on a second identity-keyed uniform (salt carers_allowance_outside_household_pool), placed by weight within strata of survey-year means-tested receipt and earnings band, below the household-weighted share of the in-household carers reporting no allowance who have such a member (Mar\u00eda's decision (a) of 2026-10-28). A person in that pool whose care_hours reach the engine's gov.dwp.carers_allowance.min_hours (35), who reports no allowance and whom the earnings test holds gainfully employed claims at the take-up contract's carers_allowance_newly_entitled rate (0.6, Mar\u00eda's ruling of 2026-10-20, sensitivity 0.45 to 0.75) on the person's identity-keyed uniform (seed 0, salt would_claim_carers_allowance), placed by weight within strata and rotated by a start drawn per stratum, so that each stratum claims the rate of its eligible weight to within one record and each eligible carer with probability equal to the rate (weight_balanced_uniforms, policyengine-uk's stratified_uniform with a random start; microcosm#1418 and the independent review of microcosm#1420): the route, whether the benefit unit reports a means-tested benefit at the survey year, and the survey-year weekly earnings band, one weekly rate wide above the limit and open above three. would_claim = reported OR (eligible AND position < rate). A reporter stays true; a carer under the limit who reports no allowance stays false, as the survey records them entitled and not claiming. Scotland is drawn too (Mar\u00eda's ruling of 2026-10-23): there the flag is Carer Support Payment's, which policyengine-uk pays only under its own earnings limit from 2.146.1 (PolicyEngine/policyengine-uk#2473), and the receipt reports Scotland apart. The earnings test is read before salary_sacrifice moves some contributors' pension amounts out of their pay, so a drawn carer whom that conversion takes under the survey year's limit keeps the flag although the file then shows them entitled and not reporting. The stage rebuilds the flag from reported receipt and refuses a frame whose flag no longer follows it. Its receipt bands support on distinct source households (household_source_id), and gives a weighted total only where three or more carry it and a share only where neither of its sides rests on one or two; it lists each stratum's realised share against its target, and the stage refuses a take-up or pool stratum whose drawn weight misses its share by more than its heaviest record, the most the rotated placement allows, so the balance holds on every build (Anthony's reviews of microcosm#1420). The stage has no health gate.", + "notes": "Runs after the SPI income chain, UC capital coherence, the Pension Credit and Child Benefit redraws and salary_sacrifice, so the earnings test reads the pay salary sacrifice converts (microcosm#1095 B5); a CGT copy draws as the member it copies, placed with it as one record of their joint weight, so every clone carries its source's draw (microcosm#1319). frs_spine sets would_claim_carers_allowance from reported receipt and the SPI income chain re-derives it from the refilled receipt on the rows it redraws, so that care_hours qualifies a carer for the Universal Credit carer element without paying the allowance to every carer (#882). A carer above the earnings limit cannot report the allowance, so no reform that widens it reached a carer who would claim once entitled: the April 2025 rise of the limit from \u00a3151 to \u00a3196 a week brought an estimated 61,000 more people into eligibility (Independent Review of Carer's Allowance Overpayments, July 2025, chapter 7). One temporary engine materialization at the survey year, on the frame's own values, gives each person's is_gainfully_employed_for_carers_allowance, is_severely_disabled_for_carers_allowance and carers_allowance_earnings (consumed only); the engine reads a year's parameters at 30 April, so the limit is 2024-25's \u00a3151. The allowance is paid only for caring for a severely disabled person (SSCBA 1992 s. 70(2)), which the care hours do not record (microcosm#1418): a carer whose largest in-household band alone reaches the hours (frs_care_hours_in_household) qualifies when another member of the household is severely disabled, and a carer whose largest in-household band does not reach them (care outside the household, or hours spread over bands; the allowance needs the hours for one person) joins on a second identity-keyed uniform (salt carers_allowance_outside_household_pool), placed by weight within strata of survey-year means-tested receipt and earnings band, below the household-weighted share of the in-household carers reporting no allowance who have such a member (Mar\u00eda's decision (a) of 2026-10-28). A person in that pool whose care_hours reach the engine's gov.dwp.carers_allowance.min_hours (35), who reports no allowance and whom the earnings test holds gainfully employed claims at the take-up contract's carers_allowance_newly_entitled rate (0.6, Mar\u00eda's ruling of 2026-10-20, sensitivity 0.45 to 0.75) on the person's identity-keyed uniform (seed 0, salt would_claim_carers_allowance), placed by weight within strata and rotated by a start drawn per stratum, so that each stratum claims the rate of its eligible weight to within one record and each eligible carer with probability equal to the rate (weight_balanced_uniforms, policyengine-uk's stratified_uniform with a random start; microcosm#1418 and the independent review of microcosm#1420): the route, whether the benefit unit reports a means-tested benefit at the survey year, and the survey-year weekly earnings band, one weekly rate wide above the limit and open above three. would_claim = reported OR (eligible AND position < rate). A reporter stays true; a carer under the limit who reports no allowance stays false, as the survey records them entitled and not claiming. Scotland is drawn too (Mar\u00eda's ruling of 2026-10-23): there the flag is Carer Support Payment's, which policyengine-uk pays only under its own earnings limit from 2.146.1 (PolicyEngine/policyengine-uk#2473), and the receipt reports Scotland apart. The earnings test is read before salary_sacrifice moves some contributors' pension amounts out of their pay, so a drawn carer whom that conversion takes under the survey year's limit keeps the flag although the file then shows them entitled and not reporting. The stage rebuilds the flag from reported receipt and refuses a frame whose flag no longer follows it. Its receipt bands support on distinct source households (household_source_id), and gives a weighted total only where three or more carry it and a share only where neither of its sides rests on one or two; it lists each stratum's realised share against its target, and the stage refuses a take-up or pool stratum whose drawn weight misses its share by more than its heaviest record, the most the rotated placement allows, so the balance holds on every build (Anthony's reviews of microcosm#1420). The stage has no health gate.", "operations": [ { "consumed_only": true, @@ -116,7 +117,7 @@ "eligibility": "persons whose care_hours reach policyengine-uk's gov.dwp.carers_allowance.min_hours, who care for a severely disabled person, who report no Carer's Allowance, and whom is_gainfully_employed_for_carers_allowance holds gainfully employed at the survey year: the carers the earnings limit alone keeps from the allowance (a carer whose frs_care_hours_in_household reach min_hours cares for a severely disabled person when another member of the household is is_severely_disabled_for_carers_allowance at the survey year; a carer whose largest in-household band does not reach the hours does on a second identity-keyed uniform (salt carers_allowance_outside_household_pool), placed by weight within strata of survey-year means-tested receipt and earnings band, below the household-weighted share of the in-household carers reporting no allowance who have such a member). In Scotland the flag is Carer Support Payment's, which policyengine-uk pays under its own earnings limit from 2.146.1", "kind": "assign_binary_from_rate", "output": "would_claim_carers_allowance", - "rate_derivation": "the take-up contract's carers_allowance_newly_entitled rate, with the identity-keyed uniforms placed by weight within strata (the route (in-household or not), whether the benefit unit reports a means-tested benefit at the survey year (universal credit, housing benefit, income support, income-based JSA, income-related ESA, tax credits or pension credit), and the survey-year weekly earnings band, one weekly rate wide above the limit and open above three; the pool's strata are the last two) and rotated by a start drawn per stratum, so that every stratum claims the rate of its eligible weight to within one record and every eligible carer claims with probability equal to the rate; would_claim = reported OR (eligible AND position < rate), so a reporter stays true and every other person false", + "rate_derivation": "the take-up contract's carers_allowance_newly_entitled rate, with the identity-keyed uniforms placed by weight within strata (the route (in-household or not), whether the benefit unit reports a means-tested benefit at the survey year (universal credit, housing benefit, income support, income-based JSA, income-related ESA, tax credits or pension credit), and the survey-year weekly earnings band, one weekly rate wide above the limit and open above three; the pool's strata are the last two) and rotated by a start drawn per stratum, so that every stratum claims the rate of its eligible weight to within one record and every eligible carer claims with probability equal to the rate; a CGT copy draws as the member it copies, placed with it as one record of their joint weight, so the two claim together; would_claim = reported OR (eligible AND position < rate), so a reporter stays true and every other person false", "rate_key": "carers_allowance_newly_entitled", "reported_true_anchor": "carers_allowance_reported > 0", "seed": 0 @@ -2125,7 +2126,7 @@ "nonnegative_outputs": [ "ons_family_index" ], - "notes": "Derives the ONS Families and households Table 7 household type from the FRS household grid (microcosm#791). Every person's relhrp code becomes relationship_to_head (HEAD for the household reference person, whose relhrp is blank and whose hrpid is 1; hrpnum on the househol tab is the independent check). The pairwise R01-R14 matrix builds ONS families: any partner pair (spouse, cohabitee, civil partner) is a couple; a person with no partner and no own child in the household joins a parent's family through a natural/adopted or step child link (natural before step, then the lowest person number, on ties); foster, in-law, grandparent and sibling links never form a family, so foster children and grandchildren without a parent present stay individuals, as ONS treats them. A child is dependent under 16, or 16-18 in full-time education (child-tab members are in full-time non-advanced education by construction; adults use educft, fted on earlier tapes); 19 and over is non-dependent whatever the education status - the FRS child tab runs to 19, ONS stops at 18, so the two definitions are translated here rather than assumed equal. Household type: one person (split at 65), no family present (two or more unrelated adults, which counts related non-family households such as two siblings), exactly one family classified by that family whatever other individuals live there (a couple plus a lodger is a couple household - the class the #757 person-count restrictions could not place), or two or more families. The ten values are the Chronicle ons-families-households-2025 ons.household_type value ids verbatim, so the frame value, this declaration, the contract row and the published fact share one string. The reciprocity tolerance is the 2024-25 tape's three ordered pairs (two households) where a child records a parent link the parent records as non-relative or sibling; either side's declaration establishes the link, and any other count refuses the build for review. It also sets is_looked_after_by_local_authority for a child-table member under 16 whose grid code toward an adult in their own benefit unit is foster child (5), or toward whom that adult records foster parent (9). The FRS 2024-25 question instructions (Benefit Unit Allocation) put foster children under 16 in the carer's benefit unit, so without the flag policyengine-uk's child tests (Universal Credit, Child Tax Credit, Pension Credit, Tax-Free Childcare, extended childcare and the legacy benefits) count them as the carer's own children. The same instructions make a foster child aged 16 or over a separate benefit unit where a local authority maintenance allowance covers them, so one who stays in the carer's unit has no such allowance and is not marked. The flag follows the relationship code alone: few such children are recorded, and the carer's local-authority fostering allowance (ALLOW3) covers fewer still.", + "notes": "Derives the ONS Families and households Table 7 household type from the FRS household grid (microcosm#791). Every person's relhrp code becomes relationship_to_head (HEAD for the household reference person, whose relhrp is blank and whose hrpid is 1; hrpnum on the househol tab is the independent check). The pairwise R01-R14 matrix builds ONS families: any partner pair (spouse, cohabitee, civil partner) is a couple; a person with no partner and no own child in the household joins a parent's family through a natural/adopted or step child link (natural before step, then the lowest person number, on ties); foster, in-law, grandparent and sibling links never form a family, so foster children and grandchildren without a parent present stay individuals, as ONS treats them. A child is dependent under 16, or 16-18 in full-time education (child-tab members are in full-time non-advanced education by construction; adults use educft, fted on earlier tapes); 19 and over is non-dependent whatever the education status - the FRS child tab runs to 19, ONS stops at 18, so the two definitions are translated here rather than assumed equal. Household type: one person (split at 65), no family present (two or more unrelated adults, which counts related non-family households such as two siblings), exactly one family classified by that family whatever other individuals live there (a couple plus a lodger is a couple household - the class the #757 person-count restrictions could not place), or two or more families. The ten values are the Chronicle ons-families-households-2025 ons.household_type value ids verbatim, so the frame value, this declaration, the contract row and the published fact share one string. The reciprocity tolerance is the 2024-25 tape's three ordered pairs (two households) where a child records a parent link the parent records as non-relative or sibling; either side's declaration establishes the link, and any other count refuses the build for review. It also sets is_looked_after_by_local_authority for a child-table member under 16 whose grid code toward an adult in their own benefit unit is foster child (5), or toward whom that adult records foster parent (9). The FRS 2024-25 question instructions (Benefit Unit Allocation) put foster children under 16 in the carer's benefit unit, so without the flag policyengine-uk's child tests (Universal Credit, Child Tax Credit, Pension Credit, Tax-Free Childcare, extended childcare and the legacy benefits) count them as the carer's own children. The same instructions make a foster child aged 16 or over a separate benefit unit where a local authority maintenance allowance covers them, so one who stays in the carer's unit has no such allowance and is not marked. The flag follows the relationship code alone: few such children are recorded, and the carer's local-authority fostering allowance (ALLOW3) covers fewer still. It also sets child_limit_non_parental_caring_exception, policyengine-uk's two-child limit exception for non-parental caring arrangements (UC Regs 2013 Sch 12 para 4; CTC Regs 2002 reg 12), for a child-table member whom no adult of their own benefit unit claims as a natural, adopted or step child (the child's grid code toward the adult is child or step child, 3 or 4, or the adult's toward the child is parent or step parent, 7 or 8) and whom no local authority placed there: a child living with kinship or friends carers, or with a claimant whose own child is the child's parent. Nothing set it before, so the engine paid no child element for such a third or later child born from 6 April 2017. The multiple births, adoption and non-consensual conception exceptions stay at the engine's default: the FRS has no twin field and its birth dates are blank (Mar\u00eda's ruling of 2 November 2026; microcosm#1095).", "operations": [ { "delimiter": "\t", @@ -2264,6 +2265,16 @@ "foster_child_code": 5, "foster_parent_code": 9 }, + "non_parental_care_child": { + "child_codes": [ + 3, + 4 + ], + "parent_codes": [ + 7, + 8 + ] + }, "one_person_age_split": 65, "reciprocity_mismatch_tolerance": 3, "source_columns": { @@ -2298,6 +2309,7 @@ "ons_family_role", "ons_family_index", "is_looked_after_by_local_authority", + "child_limit_non_parental_caring_exception", "ons_household_type" ], "rewrites": [], @@ -3368,6 +3380,7 @@ } }, "categorical_predictors": [ + "spi_age_band", "gender", "region", "main_source" @@ -3449,7 +3462,7 @@ ], "post_sample_fit_weight": "uniform", "predictors": [ - "age", + "spi_age_band", "gender", "region", "main_source", @@ -3490,7 +3503,7 @@ "spi_profit_before_losses_draw": null }, "fit_weight_kind": "importance", - "fold_key": "predictor cell (gender, region, whole-year age, main_source, has_pay, has_trade, at_or_over_spa), the fold being floor(uniform x folds) of the cell's stable_identity_uniforms draw at the stage seed and salt spi_stage1:reference_fold; each fold's recipients are located by a forest fitted on the other folds, so the forest that locates a copy never saw its twin, and every row of a cell is located by one forest", + "fold_key": "predictor cell (gender, region, spi_age_band, main_source, has_pay, has_trade, at_or_over_spa), the fold being floor(uniform x folds) of the cell's stable_identity_uniforms draw at the stage seed and salt spi_stage1:reference_fold; each fold's recipients are located by a forest fitted on the other folds, so the forest that locates a copy never saw its twin, and every row of a cell is located by one forest", "folds": 5, "method": "Rosenblatt transport (microcosm#840): each drawn recipient's twin values are located on the reference forest, the sign uniform in the gate's cumulative class probabilities and the quantile on the sign's magnitude forest, each leaf chained on the twin's observed earlier leaves, and the stage-1 forest draws at those uniforms, so the recipient receives the SPI income of someone in the same position among SPI people like it as the twin holds among FRS people like it. taxable_savings_interest is savings_interest_income, the interest outside ISAs, floored at zero. A leaf without an analogue, or whose analogue is degenerate on the FRS rows, draws at identity-keyed uniforms, as do the placements inside a class or a flat stretch of a conditional; no model random stream is consumed. The reference locates a leaf given the twin's observed earlier analogue leaves, while the stage-1 forest draws it given every earlier output, the identity-uniform leaves included, so the located quantile is read off a conditional the identity draws also shape (microcosm#840 follow-up: the chain order). A full build refuses a reference the predictor cells cannot cross-fit (only a sampled rung or a synthetic fixture may locate in-sample, and its receipt says so), a recipient whose fold differs from its twin's, and a reference whose sign classes differ from the stage-1 forest's on any located target.", "n_estimators": 4, @@ -3635,6 +3648,23 @@ "weighting": "FACT", "with_replacement": true }, + { + "annual_income": "the floored pay is the row's current pay; its employment_income_annual_share becomes its unfloored over its floored employment income, so the annual measures read the tape's year of pay", + "column": "hmrc_spi_pay", + "employee_statuses": [ + "FT_EMPLOYED", + "PT_EMPLOYED" + ], + "hourly_rate": "the lower of policyengine-uk gov.hmrc.minimum_wage.non_apprentice by the twin's age, read as the engine reads the build year (30 April), and the twin's own hourly pay (its employment income before the draw over its annual hours)", + "hours_basis": "annual usual hours: the FRS adult's usual weekly hours in all jobs (TOTHOURS) times 52, read back to weekly hours", + "hours_column": "hours_worked", + "kind": "floor_spi_employment_pay_at_minimum_wage", + "pay_basis": "tape PAY is taxable pay, net of net-pay pension contributions and salary sacrifice; the minimum wage binds gross pay, and the engine reads employment_income (PAY + EPB + TAXTERM) as gross pay, so PAY alone is compared with the gross minimum and a twin at the minimum wage who pays net-pay contributions can be lifted by up to them", + "reason": "stage 1 draws annual tape pay without hours and the tape holds part-year workers, so a twin reporting usual employee hours could draw a year's pay below what those hours earn at the minimum wage (uk-data#629)", + "receipt": "eligible and floored source households (rounded), weighted people, the weighted share floored, the weighted mean uplift and the amount added; figures on one or two source households are <3, and the floored weight, share and amount are given only where neither the floored nor the unfloored side rests on one or two; the hourly-pay check gives the weighted shares of the drawn employees below the minimum wage for their age before and after the floor, beside the FRS employees' share, each withheld beside a side on one or two, and the eligible rows still below their floor (banded, zero exact)", + "rows": "drawn recipients other than reserved band carriers, whose twin has no trade (has_trade 0), an employee main job and usual hours above zero, and whose drawn PAY is positive; FRS rows, undrawn copies and every other leaf keep their values", + "weeks_in_year": 52 + }, { "categorical_predictors": [ "gender", @@ -4288,6 +4318,30 @@ "ukds_study_number": 9603, "vintage": "2024_25" }, + { + "access": "private_local_input", + "doi": "10.5255/UKDA-SN-5340-19", + "filename": "household_eul_2002-2024.tab", + "kind": "private_microdata", + "locator": "caller-supplied local input", + "role": "nts_household_tab", + "runtime_sha256_required": true, + "sha256": "b70252b606b13c2b7f32e6da09e202e47514f6414045a017e77deb1d2a87ceb7", + "size_bytes": 117993975, + "ukds_study_number": 5340 + }, + { + "access": "private_local_input", + "doi": "10.5255/UKDA-SN-5340-19", + "filename": "vehicle_eul_2002-2024.tab", + "kind": "private_microdata", + "locator": "caller-supplied local input", + "role": "nts_vehicle_tab", + "runtime_sha256_required": true, + "sha256": "f3f50dfff2dfb86ace531362e35668403e35893f8c46d07def417236dde68dba", + "size_bytes": 41650772, + "ukds_study_number": 5340 + }, { "format": "json", "kind": "public_aggregate_reference", @@ -4414,9 +4468,11 @@ "remote_uk_horseracing_betting_net_losses", "remote_other_betting_net_losses", "betting_exchange_commission", - "horse_and_dog_pool_betting_net_losses" + "horse_and_dog_pool_betting_net_losses", + "car_co2_emissions", + "car_engine_size" ], - "notes": "Ports the incumbent LCFS consumption QRF, including NEED energy raking, with adjudicated weighted fits and an identity-keyed seed-0 fuel flag. The vehicle count is a numeric QRF predictor on both sides (LCFS a124 on the donor, the was_wealth draw of WAS vcarnr8 on the recipient, both clipped to 0-5), which retires the incumbent's WAS-to-LCFS has-fuel bridge (microcosm#890 A). The recipient fuel flag draws each of a household's vehicles as zero-emission at the battery-electric and fuel-cell share of the vendored DfT VEH1103 licensed-car stock (2024, Great Britain; plug-in hybrids count as fuel buyers), replacing the hand-copied NTS share (microcosm#890 E2): a household with vehicles buys fuel unless every one of them is zero-emission, so it is flagged at one minus that share raised to its vehicle count, and a one-vehicle household keeps the draw it had when the whole household was drawn at once (microcosm#1278; before, a household with several vehicles was all one or the other). The frame holds no fuel type, so the draw, keyed on the household identity, is what makes a vehicle-owning household a fuel buyer: it is random with respect to income and every other characteristic. With the redraw of microcosm#1113 every flagged household buys fuel, so this flag alone sets fuel incidence; who holds the zero-emission cars by income is a known residual. The household input uses_energy_prepayment_meter, which policyengine-uk reads for the July 2023 to March 2024 Energy Price Guarantee prepayment discount (PolicyEngine/policyengine-uk#2098, from 2.123.3), is drawn by the declared impute_prepayment_meter step (microcosm#1110): the donor prepays when it last put money on an electricity, gas or combined key or meter (b1751, b1701, b233, which the LCF asks only of prepayment-meter households) or its diary records a slot-meter payment (c45114, c45214), so electricity-only prepayment counts and a household with no meter payment, including one that did not answer, does not; a weighted regime-gated QRF on the chain's predictors fits that flag and each recipient draws it at uniforms keyed on its household id, which moves no other draw. The release exports it: policyengine-uk reads it from 2.123.3 and an older engine, Microcosm's locked one among them, ignores a column it does not know; the incumbent does not carry it until uk-data#539, so it is a reviewed extra column of the export surface. The frame flags about 3.0 million Great Britain households (10.5 %) at prior weights, against the around three million prepayment households the government counted when the discount began in July 2023 (a different reference period, households in both). Energy support clipping is exempt because NEED raking governs those columns. Bus fares are clipped to donor support before the pricing step (Mar\u00eda's rulings 2026-09-15 and 2026-09-17), which bounds the region no area prices (Wales keeps the chain's raw draw) while the priced regions move beyond donor support afterwards; for that reason the column carries no committed support bound for the terminal gate. Domestic energy is raked in kWh to the NEED 2024 shape at the DESNZ level and priced at the average prices paid (microcosm#890 F, chronicle#270), where both NEED rakes take their mean-kWh margins from the vendored NEED 2024 tables (England and Wales by income band, tenure, property type and region; Scotland by income band, tenure and property type with the all-dwellings mean as its region margin; Northern Ireland untouched), the declared price_domestic_energy step converts spend to kWh and back at each household's QEP price region through the committed crosswalk using the calendar-2024 average variable unit cost and fixed cost across payment methods, standard metering, including VAT (Northern Ireland gas at the UK average because QEP publishes no Northern Ireland gas row), a gas fixed cost only for connected households, the gas connection imposed on the recipient frame at the published share of each region (DESNZ subnational gas meters over electricity meters, 2024) by disconnecting gas-positive households in an identity-keyed uniform order, skipping a household whose weight would overshoot the published share (Northern Ireland has no subnational row and keeps the positive-gas rule), and, where the draw leaves a region below its share, by the declared connect_rule (microcosm#1164): two weighted fits on the chain's predictors give each zero-gas household the probability that a donor like it pays for gas (a gradient-boosted classifier of the donor's gas payers) and the gas such a donor pays (a regime-gated QRF of the payers' gas spend, at quantiles keyed on the household id), and the region's zero-gas households are connected in an identity-keyed order drawn in proportion to that probability, by the same weight-fitting walk, until the share is met. The labelled energy split leaves about 80 % of donors paying for gas against the about 85 % of homes DESNZ counts gas meters for (the derivation it replaced gave gas to 98 %), so without the connect leg nine of the eleven Great Britain regions fell short of their share, and after the four-margin NEED rake one factor per fuel scales the kWh so the prior-weighted frame total equals the fuel's declared level for calendar 2024: for gas the DESNZ Energy Trends domestic consumption at actual temperature summed over the four quarters, and for electricity, the one fuel in spend_level_fuels (microcosm#1418), the kWh the ONS Consumer Trends 04.5.1 household spending buys at QEP's United Kingdom average prices once the standing charges of every UK domestic meter DESNZ counts come off (gas stays on Energy Trends while ONS 04.5.2 counts bottled gas, microcosm#1095); NEED gas means are per gas-metered household, so the gas kWh margins are raked over connected households only while electricity is raked over every household, and the energy_rake gate recomputes every NEED mean, the DESNZ level and the connection shares from the vendored rows. After the level, no household is left above the domestic meter definitions behind the DESNZ total (NEED Annex B: gas meters under 73,200 kWh a year, electricity meters under 50,000 kWh on profile classes 1 and 2; Mar\u00eda's ruling of 2026-10-12 on microcosm#1207's extreme energy values): the declared household_kwh_ceiling caps a household there, the households below it in the capped households' own NEED cells are re-raked to those cells' levelled means, and a proportional step restores the DESNZ total (microcosm#1164); the receipt counts the households capped and the share of the total they gave up, and the energy_rake gate checks both. Mobile homes have no NEED property-type row, so the rake takes them to the all-dwellings mean, the incumbent's translation; where every mobile home of a NEED geography draws a spend at or below the standing charge, that cell has no kWh for the rake to scale, and the declared zero_kwh_cells_at_need_mean starts it at its NEED mean before the first sweep (microcosm#1240). The receipt lists the cells it started, and the energy_rake gate fails on a started cell the stage does not declare and on any other cell with a zero mean. Both rakes band households on gross income, NEED's concept: the donor on LCFS p344p, cash income before tax, National Insurance, council tax and pension contributions, and the recipient on the same concept, its HBAI net income with the deductions policyengine-uk takes to reach it added back (council tax and domestic rates, income tax, National Insurance, student loan repayments, employee and personal pension contributions, maintenance and child payments, LVT), which the stage materializes for that band alone (microcosm#1164). Before it the recipient fell back to its HBAI net income, which put households in too low a band; the engine's household_gross_income would put them in too high a one, since it adds capital gains and the in-kind NHS, education and transport spending to cash income. The disconnection walk's seed-0 uniform order makes every group of households (dwelling type, income band, support channel) lose the same expected share of its drawn connected mass, so only the level of the drawn connection moves; the smallest-drawn-gas-first order it replaces piled the disconnections onto low-draw flats once the SPI support households drew gas from their own incomes, and NEED's Scottish property-type means then implied a level 2.6 % above the Scottish all-dwellings mean, a margin conflict the rake could not close. Bus fares are priced from journeys (microcosm#930), where the nts_bus_travel stage imputes each person's annual bus-in-London and other-local-bus trips and their concessionary eligibility, and the declared price_bus_journeys step sets bus_fare_spending as the sum over the household's non-eligible persons of trips times boardings per resident trip (the published BUS01 journeys over the published NTS0705a trips per resident times the ONS population) times the yield per fare-paying boarding (BUS05ai receipts over journeys less concessionary journeys; in England outside London only the older and disabled ones of BUS01c, as policyengine-uk prices it from 2.158.3), per area; bus-in-London trips take the London area's price for every resident, other-local-bus trips the price of the residence area (England outside London; Scotland and Northern Ireland from their own receipts and journeys with England's trip rate as the declared proxy); Wales is unpriced and keeps the raw draw. The chain still draws bus_fare_spending so later targets condition on the same raw draw; the emitted column is the priced value. The receipt records every factor, the frame-implied boardings beside the published ones and the frame's eligible trip share beside the publisher's concessionary boarding share, so the prior-weight fit of the bound receipts targets is read as a composition check, never a level the stage set; the #890 incidence draw and fare rake are retired. The 2024-25 diary (UKDS SN 9603, 2nd edition, whose household tab carries the annual weight as cal_weight_annual, the name weighta had; microcosm#1164) is moved to the base year by the declared uprate_donor_columns step (microcosm#890). Consumption columns and bus fares take the engine's CPI index from the April-to-March diary year, placed on the calendar-year index at three quarters of 2024 and one of 2025, back a quarter to calendar 2024 (microcosm#1113; the diary sits a quarter past it, so the factor is below one; the fare factor survives only where no fare cell levels the column, i.e. Wales). Income predictors take a factor of one: the diary year is the FRS 2024-25 year they are matched against. Petrol and diesel take the DESNZ pump-price times HMRC litres per head outturn from the vendored road_fuel_anchors.json, which sets only their donor distribution because the level step follows; the energy columns are exempt because the NEED 2024 shape at the DESNZ level and the QEP average prices paid set their level. The household adult and child counts (LCFS G018 and G019, the survey's age-18 split) predict on both sides; the recipient counts its members by age, not through the engine's is_adult and is_child flags, which policyengine-uk#1896 deprecates (uk-data#486, microcosm#1095). Road fuel incidence and level are set by two declared steps (microcosm#1113). The two-week diary leaves about a third of car-owning donors with no fuel purchase, which the chain reproduces among the households the fuel flag marks as fuel buyers, so the redraw_zero_road_fuel step redraws a flagged household that drew zero from the donor's distribution among households with positive road fuel, on the chain's predictors: a weighted regime-gated QRF draws the total, positive by construction, then the petrol share of it, at quantiles keyed on the household id; positive draws are kept. Then the level_road_fuel step, after the fuel flag has zeroed the households without a fuel car, scales petrol and diesel so their prior-weighted total equals ONS Consumer Trends household spending on COICOP 07.2.2 for calendar 2024 (the year of the DESNZ pump prices the donor uprating uses) less the donor's own other-fuels share of 07.2.2 (c72213), keeping the drawn mix. The diary's 07.2.2 has three lines (c72211 petrol, c72212 diesel and c72213, the other motor fuels and lubricants) and none for vehicle electricity. The LCFS diary records about a quarter less road fuel than ONS, and binding the OBR cars receipts had closed that gap by moving weight onto fuel-buying households; petrol and diesel therefore carry no committed support bound, like the other levelled columns. The totals that contain levelled columns are written back around them by the declared recompose_from_remainder step (microcosm#1113): each keeps its own chain draw less the chain's draws of the parts the stage re-levels, kept before any step touches them and floored at zero where the parts outgrow the total, and adds the levelled parts back, so housing_water_and_electricity_consumption is its draw less the drawn electricity and gas plus the levelled electricity and gas, and transport_consumption its draw less the drawn petrol, diesel and bus fares plus the levelled petrol and diesel and the priced bus fares. The chain draws each part after, and conditional on, its total, so the remainder is the chain's own split; a remainder drawn as a chain target of its own over-drew the vehicle-purchase tail of transport, 10 to 13 percent above the donor in-sample. The chain's domestic-energy target is the electricity and gas the stage derives from the diary's fuel, light and power (p537) by its labelled parts, from the LCF User Guide's derived-variable labels and P537 definition (microcosm#1164): each fuel's last account payment less its rebate (b489 electricity, b490 gas, read as the tab carries them; the stage refuses a donor where b489 equals b175 less b178, or b490 equals b170 less b173, to the penny for under 95 percent of that fuel's account payers, which pins the labels and the rebate's sign), its prepayment key or meter payment (b1751, b1701), its component of a combined utilities bill (b227 electricity, b226 gas) and of a combined key or meter payment (b2332, b2331), and the diary's second-dwelling account and slot-meter lines (c45112 and c45114, c45212 and c45214); what a combined payment leaves unsplit (the combined bill b231 less its rebate b174, and the combined key or meter payment b233, each less its parts) goes by the household's own electricity share where it pays for both fuels, and otherwise by the donor's mean share of the households that do, since a combined payment means the household pays for both; a donor with no such household fails. The diary's other fuels (central-heating oil b017 and c45312, bottled gas b018 and c45222, coal and coke c45411, wood and peat c45412, hot water, steam and ice c45511) are neither, and the donor_energy_split receipt records the split against p537: what reading refunds as zero adds, what the unclipped parts differ from p537 by, the weighted share of donors whose unclipped parts differ from their p537, and the account identity shares. The derivation it replaces read b226 as electricity by direct debit and b489 and b490 as prepayment payments, where the labels make them the gas component of a combined bill and the electricity and gas account payments less rebates. The liquid fuels (central-heating oil and paraffin with bottled gas, LPG with liquid) and the solid fuels (coal, coke, wood and peat) are drawn as liquid_fuel_consumption and solid_fuel_consumption, the inputs policyengine-uk 2.149.0 reads (pe-uk#2572; Mar\u00eda's ruling of 2026-10-22), after the eighteen spend targets so that every earlier draw is the chain's own, uprated to calendar-2024 prices as every diary spend column is; the housing total nets their draws and adds them back unchanged, so it always holds them, and hot water, steam and ice stays in its remainder. The receipt records the published ONS 04.5.3 and 04.5.4 spend beside each fuel's donor total at diary prices and the frame's draw (published_fuels). Before the hold, each COICOP division's drawn spend per household (a recomposed total's remainder, any other division's whole draw) is set against the donor's mean of the same spend (for housing and transport, the donor's total less the same parts, since the levelled parts keep their published levels and are no over-draw); a division above the divisions' shared ratio, measured once before any levelling, comes down to it (Mar\u00eda's rulings of 2026-10-23 and 2026-10-24, microcosm#1278; Vahid's review of microcosm#1383, item 9); the receipt records each division's ratio and factor and the shared ratio (division_levelling) and each recomposed total's levelling_factor. Each total is then held to the donor's realised maximum of that total (maximum_total: donor_support, the support every drawn column is clipped to; microcosm#1164), never below its parts, the excess coming out of its remainder: a remainder near the top of the diary's range plus levelled parts larger than the drawn ones would otherwise leave it. The two totals keep their committed support bounds, which the terminal support gate applies to the emitted frame; the recomposed_totals gate checks the declaration and the receipt, whose rows held at the maximum and weighted mass taken enter its identities. Every household spend column is at calendar-2024 prices as households paid them, the H5's year that policyengine-uk projects from and the calibration uprates to the calendar-2025 window (microcosm#1113): the diary columns by the CPI uprating to 2024, road fuel at ONS 07.2.2 for 2024, energy at DESNZ volume and QEP prices for 2024, and bus fares at each area's fiscal-year yield re-priced to 2024 by its fares index (the DfT local bus fares index by quarter for London and England outside London, Scotland's calendar-year index; Northern Ireland, which publishes no fares index, from its own yields of the two fiscal years 2024 overlaps, weighted three months and nine (microcosm#1207), in place of England's index, which carries the January 2025 rise in the English fare cap Northern Ireland did not have); the consumption_basis gate holds every level-setting step to that year. policyengine-uk applies the fiscal 2024-25 rules to model year 2024 (it samples each parameter at 30 April), so every levelled column sits about a quarter before the midpoint of the policy year it is taxed in; the calibration binds calendar-year facts as published and fiscal-year facts at the calendar window (Mar\u00eda's rule of 2026-09-22). The stage receipt also reports, for each of the twelve COICOP divisions, the prior-weighted frame total against ONS Consumer Trends for the same calendar year less the classes a household diary does not record (02.3 narcotics, 04.2 owner-occupiers' imputed rent and 12.6.1 FISIM), on ONS's domestic concept, and the twelve together against the national concept as well; it is report-only (microcosm#1113). The report-only litres audit compares each fuel's frame litres with HMRC's clearances of that fuel scaled by the cars share of its road use, from the vendored DESNZ sub-national road transport fuel consumption by vehicle type and fuel (PolicyEngine/chronicle#322); the OBR cars share of fuel duty receipts, uniform across fuels, stays beside the total. The liquid fuels hold bottled gas (b018, c45222), which COICOP puts under 04.5.2 (gas) and ONS's 04.5.3 leaves out, so the receipt also gives the donor's liquid fuels without it; neither heating-fuel column is levelled to ONS: the donor's diary totals are about twice ONS's, and the frame's draws reach neither those nor ONS's, so a costing on either needs levelling to ONS first (Vahid's review of microcosm#1383, item 8). After its spend targets and the two fuels the chain draws five shares the derive step computes on the donor from the diary lines (microcosm#1359): tobacco's share of the off-trade alcohol and tobacco that make up P602 (c22111, c22121 and c22131 over those three and the seven lines of alcohol brought home, c21111 to c21311; P602 also sums narcotics, c23111, which the end-user tab does not carry), on-trade alcohol's share of restaurants and hotels (the eight lines of drinks away from home, cb111c to cb111j, over P611, clipped at one because the tab stores P611 to one decimal place), gambling stakes' share of recreation (the seven games-of-chance stake lines P609 sums, c94311 to c94316 and c94319: pools, bingo, lotteries, bookmaker and tote betting with gaming machines, and the National Lottery; the winnings lines beside them sit in no total), the National Lottery's share of those stakes (scratchcards and draws, c94316 and c94319, over the seven) and the betting and gaming share of the rest (football pools, bingo, and bookmaker and tote betting with gaming machines, c94311, c94312 and c94314, over the other five; society lotteries, c94313, and the Irish Lottery, c94315, pay no UK gambling duty). A household's tobacco, off-trade alcohol, on-trade alcohol and gambling stakes are its shares of the totals it carries, and its National Lottery and betting and gaming stakes its shares of its stakes, so the parts sum to the totals and no total, the VAT base included, moves; appended after the twenty targets, the shares move none of their draws. The shares and the spending they give are scratch, on no table; the report-only excise_shares receipt records each share on the frame beside the donor. The declared level_excise_quantities step turns that spending into policyengine-uk's excise inputs (microcosm#1359), so alcohol, tobacco and gambling duty stop scoring zero. Each national quantity is a published FY2024-25 figure from the vendored excise_facts.json, and the step gives each household its part in proportion to the spending that buys it, at prior weights (one factor per input, the level_road_fuel scaling), so the frame's weighted total of each input is the published one; a household that buys one product of a kind buys all of that kind in the national mix. Alcohol: each product's litres are HMRC's clearances of beer, cider, wine, spirits and other fermented products (the Alcohol Bulletin, in litres of pure alcohol) over the engine's own strength for the product, which policyengine-uk multiplies back, shared by off- and on-trade alcohol spending together; beer and cider take their draught shares from the clearances under draught relief, alone or with small producer relief, over all of their clearances, and the other products, whose draught clearances HMRC does not publish, keep the engine's zero, as does sparkling cider, which the bulletin counts within cider. A pound buys the same volume in a pub as in a shop under this rule, which leans the volume, and so the duty, towards on-trade drinkers: against a published on-trade volume share of about 27 percent, a pound spent in a pub is given about 1.6 times the volume it buys and a pound spent in a shop about 0.78 times, and about 11 percent of the volume sits with other households on the 2024-25 diary. No on-trade volume share can be archived (MESAS is a NielsenIQ and Circana dashboard with no fixed file), so the spending rule stands, its lean documented (Mar\u00eda's ruling of 2026-10-23). Tobacco: cigarettes a week and grams a week of hand-rolling tobacco, cigars and other tobacco are HMRC's clearances (the Tobacco Bulletin) over the engine's 52 weeks, shared by tobacco spending; heated tobacco sits within other tobacco in the bulletin, so it is charged at the other-tobacco rate and its own input keeps the engine's zero. Gambling: each input is its duty's dutiable base, HMRC's cash receipts for the duty (the Betting and Gaming bulletin) or Machine Games Duty's declared liabilities for the band, over the engine's FY2024-25 rate (Gaming Duty over the engine's effective-rate proxy for it), so the engine charges back the published receipts. General Betting Duty's base, its receipts over the fixed-odds rate, is split over the land-based fixed-odds, remote horse-racing, remote other, exchange and horse-and-dog pool inputs by the Gambling Commission's gross gambling yield for Great Britain, remote fixed-odds betting by the horse-racing share of all remote betting yield, since the Commission publishes no betting activity by event; its horse racing is not only UK racing, so the remote UK horse-racing input is overstated and, from April 2027, when the engine charges other remote betting at 25 percent, too much of the base stays at 15 percent and the rise is understated; and its pool betting can hold pools on other events, such as football pools, which pay Pool Betting Duty. Spread betting, which the Commission does not regulate, has no published base and keeps the engine's zero. Lottery Duty's base is shared by the National Lottery stakes and every other gambling base by the betting and gaming stakes, since the diary cannot tell remote from land-based play or one betting product from another; the society and Irish lotteries carry none. Both keys are first brought to published participation by the declared top_up_gambling_participation step (microcosm#1359; Mar\u00eda's ruling of 2026-10-25). The diary records a stake for about a fifth of the households the Gambling Commission's Gambling Survey for Great Britain 2025 implies (PolicyEngine/chronicle#391), and under any steady rate of play a two-week diary sees at least half of the four-week players, so the gap is play the diary misses, not its window. Each adult's chance of playing in four weeks and in twelve months is GSGB's published rate for its sex and age band (tables B.1 and B.3), as the union of a key's activities (table B.9: the National Lottery's draws, scratchcards and online instant-win games; betting, bingo, casino games, fruit and slots, football pools, other online instant-win games and other gambling), taken as independent within the population that plays any of them (all gamblers, or those who play more than lottery draws). A household plays when any adult does, combined at theta: 1 - (1 - p_max) x prod(1 - p_other)^theta, where 0 is one player per household and 1 adults who play independently. Theta is fitted on the donor so that GSGB's rates, applied to the donors' own adults, give the diary's ratio of the two-adult to the one-adult household rate, in which under-recording cancels if it is the same for both: 0.9 for the National Lottery, whose couples mostly buy their own tickets, and 0.08 for betting and gaming, mostly one adult's. Within nine strata (one, two, or three or more adults, by the youngest adult's age band: 18 to 34, 35 to 54, 55 and over), households without a stake are added by the gas connection walk's weight-fitting rule, in an identity-keyed order drawn in proportion to a regularised donor propensity (on the chain's predictors and spend draws, with recreation net of its gambling stakes, so that a recorded stake does not predict itself) times the household's published chance, first to the stratum's four-week share (regular players) and then on to its twelve-month share (occasional players); households the diary saw keep their stakes and count as regular. An added household's stake is a draw from the donor's positive stakes at a quantile keyed on its id, scaled so the added regular players' mean is the mean of the households the diary saw, and an occasional player's is a tenth of that. Both are assumptions: a two-week diary is more likely to catch frequent players, so the households it saw are probably the heavier players and equal means spread the base more evenly than play probably is; the tenth stands until GSGB publishes how often people play. The keys only re-share the bases: the stored spending stays the drawn one, so an added household's stakes are not in its recorded recreation spending. The gambling_participation gate recomputes the rates from the vendored rows, checks every stratum's shares, and holds each key's stake scale within 0.5 to 2, so a broken stake draw that the scaling would hide fails it. Known biases: the quantities are levelled to the published figures while spending and the diary's incidence stay at survey level (Mar\u00eda's ruling of 2026-10-23), so a household's alcohol or tobacco duty is one multiple of its own spending, the same for every household that carries it: at prior weights alcohol duty is about 0.41 times alcohol spending and tobacco duty about 2.2 times tobacco spending, since the diary records a fraction of what is bought; VAT on the same goods stays on the survey base. Tobacco duty also sits on fewer households than smoke: 8.2 percent of households carry it, against 11.9 percent of UK adults who smoked cigarettes in 2023 (ONS), while the share of households with a smoker is above the adult rate; the duty per carrying household is higher by the same factor. Part of the gap is the frame's: the chain's share draws come out zero more often than the donors' (10.3 percent of donors carry tobacco), mostly within households that carry the parent total. The gambling duties sit on the households the top-up brings to participation: 62.7 percent of households carry Lottery Duty and 29.8 percent the other gambling duties, against 10.7 and 2.0 percent on the diary's draws alone, and 47 percent of adults in Great Britain who gambled in the past four weeks of 2025 (27 percent once lottery-draw-only players are left out). The top-up's own biases: GSGB is taken as the level, though the Gambling Commission's guidance on its statistics reports that an invitation that mentions gambling raised participation estimates, and that its experiment could not conclude which estimates are the more accurate; under-recording is taken as even across households, so the donor propensity carries the diary's gradient by income, tenure, region and spending; the activity unions take activities as independent within their population, which GSGB's table B.13 rules out among players (45 percent of four-week gamblers took part in one activity, against 26 percent under independence), but a model in which each adult's activities share an intensity, which comes within 2.5 points of that share in every age band, moves neither key's union by more than 9 percent in any age band, nor the share of households carrying either key by more than 0.1 points; theta is one per key, fits households of three or more adults less well, and takes the share carrying betting and gaming from 28.5 percent at 0 to 41.2 percent at 1; the stake assumptions above; and GSGB covers adults in Great Britain in calendar 2025, so Northern Ireland's adults take its rates, against the FY2024-25 bases. On the real spine at prior weights, the share of households carrying the National Lottery rises from 51.5 percent in the bottom equivalised-income decile to 67.3 percent in the top, and betting and gaming from 26.8 to 34.8 percent, whose top decile holds 25.3 percent of the base; on the diary's draws alone betting and gaming is almost flat (1.9 to 2.1 percent, 18.9 percent of the base in the top decile). Ordered by the published chance alone, betting and gaming would run from 29.2 to 29.8 percent and the Lottery from 57.0 to 67.9 percent with GSGB's age mix, but neither key's regional pattern would follow GSGB's. With the propensity, the Lottery's does (a correlation of 0.67 across Great Britain's eleven regions, London lowest, as in GSGB), and betting and gaming's barely (0.11). Other tobacco (c22131) includes e-cigarette refills, so the tobacco inputs also follow vaping spending and a household that only vapes carries tobacco duty; Vaping Products Duty, from 1 October 2026, needs a key of its own. The draught shares are national constants, so a household that buys alcohol only in shops takes the same draught relief as one that drinks in pubs. The quantities are FY2024-25's, the excise year policyengine-uk charges in model year 2024 (its excise year runs from 6 April), and the engine holds them flat after it (PolicyEngine/policyengine-uk#2596). The step moves no spending column; the excise_quantities gate recomputes every level from the vendored rows.", + "notes": "Ports the incumbent LCFS consumption QRF, including NEED energy raking, with adjudicated weighted fits and an identity-keyed seed-0 fuel flag. The vehicle count is a numeric QRF predictor on both sides (LCFS a124 on the donor, the was_wealth draw of WAS vcarnr8 on the recipient, both clipped to 0-5), which retires the incumbent's WAS-to-LCFS has-fuel bridge (microcosm#890 A). The recipient fuel flag draws each of a household's vehicles as zero-emission at the battery-electric and fuel-cell share of the vendored DfT VEH1103 licensed-car stock (2024, Great Britain; plug-in hybrids count as fuel buyers), replacing the hand-copied NTS share (microcosm#890 E2): a household with vehicles buys fuel unless every one of them is zero-emission, so it is flagged at one minus that share raised to its vehicle count, and a one-vehicle household keeps the draw it had when the whole household was drawn at once (microcosm#1278; before, a household with several vehicles was all one or the other). The frame holds no fuel type, so the draw, keyed on the household identity, is what makes a vehicle-owning household a fuel buyer. Since microcosm#1095 B3 (J2) the per-car zero-emission share follows the household's income fifth: the national share times the fifth's relative risk among the cars NTS households keep (UK Data Service SN 5340, survey years 2022-2024, at the interview weight W3; zero-emission in the DVLA-linked 0 g/km CO2 band, the about three in ten cars without a linked band left out, as missing at random within their fifth), normalised over the frame's cars so the national share is the licensed-car one. The NTS ranks England's households by total gross income, McClements-equivalised, so the frame ranks household_gross_income over the engine's before-housing-costs equivalence scale, in household-weighted fifths; a fifth on fewer than 10 zero-emission NTS cars would pool with its neighbour (a statistical floor, not the disclosure floor of 3). The uniforms are the same, so only the threshold moves. With the redraw of microcosm#1113 every flagged household buys fuel, so this flag alone sets fuel incidence; within an income fifth, who holds the zero-emission cars stays random. The household input uses_energy_prepayment_meter, which policyengine-uk reads for the July 2023 to March 2024 Energy Price Guarantee prepayment discount (PolicyEngine/policyengine-uk#2098, from 2.123.3), is drawn by the declared impute_prepayment_meter step (microcosm#1110): the donor prepays when it last put money on an electricity, gas or combined key or meter (b1751, b1701, b233, which the LCF asks only of prepayment-meter households) or its diary records a slot-meter payment (c45114, c45214), so electricity-only prepayment counts and a household with no meter payment, including one that did not answer, does not; a weighted regime-gated QRF on the chain's predictors fits that flag and each recipient draws it at uniforms keyed on its household id, which moves no other draw. The release exports it: policyengine-uk reads it from 2.123.3 and an older engine, Microcosm's locked one among them, ignores a column it does not know; the incumbent does not carry it until uk-data#539, so it is a reviewed extra column of the export surface. The frame flags about 3.0 million Great Britain households (10.5 %) at prior weights, against the around three million prepayment households the government counted when the discount began in July 2023 (a different reference period, households in both). Energy support clipping is exempt because NEED raking governs those columns. Bus fares are clipped to donor support before the pricing step (Mar\u00eda's rulings 2026-09-15 and 2026-09-17), which bounds the region no area prices (Wales keeps the chain's raw draw) while the priced regions move beyond donor support afterwards; for that reason the column carries no committed support bound for the terminal gate. Domestic energy is raked in kWh to the NEED 2024 shape at the DESNZ level and priced at the average prices paid (microcosm#890 F, chronicle#270), where both NEED rakes take their mean-kWh margins from the vendored NEED 2024 tables (England and Wales by income band, tenure, property type and region; Scotland by income band, tenure and property type with the all-dwellings mean as its region margin; Northern Ireland untouched), the declared price_domestic_energy step converts spend to kWh and back at each household's QEP price region through the committed crosswalk using the calendar-2024 average variable unit cost and fixed cost across payment methods, standard metering, including VAT (Northern Ireland gas at the UK average because QEP publishes no Northern Ireland gas row), a gas fixed cost only for connected households, the gas connection imposed on the recipient frame at the published share of each region (DESNZ subnational gas meters over electricity meters, 2024) by disconnecting gas-positive households in an identity-keyed uniform order, skipping a household whose weight would overshoot the published share (Northern Ireland has no subnational row and keeps the positive-gas rule), and, where the draw leaves a region below its share, by the declared connect_rule (microcosm#1164): two weighted fits on the chain's predictors give each zero-gas household the probability that a donor like it pays for gas (a gradient-boosted classifier of the donor's gas payers) and the gas such a donor pays (a regime-gated QRF of the payers' gas spend, at quantiles keyed on the household id), and the region's zero-gas households are connected in an identity-keyed order drawn in proportion to that probability, by the same weight-fitting walk, until the share is met. The labelled energy split leaves about 80 % of donors paying for gas against the about 85 % of homes DESNZ counts gas meters for (the derivation it replaced gave gas to 98 %), so without the connect leg nine of the eleven Great Britain regions fell short of their share, and after the four-margin NEED rake one factor per fuel scales the kWh so the prior-weighted frame total equals the fuel's declared level for calendar 2024: for gas the DESNZ Energy Trends domestic consumption at actual temperature summed over the four quarters, and for electricity, the one fuel in spend_level_fuels (microcosm#1418), the kWh the ONS Consumer Trends 04.5.1 household spending buys at QEP's United Kingdom average prices once the standing charges of every UK domestic meter DESNZ counts come off (gas stays on Energy Trends while ONS 04.5.2 counts bottled gas, microcosm#1095); NEED gas means are per gas-metered household, so the gas kWh margins are raked over connected households only while electricity is raked over every household, and the energy_rake gate recomputes every NEED mean, the DESNZ level and the connection shares from the vendored rows. After the level, no household is left above the domestic meter definitions behind the DESNZ total (NEED Annex B: gas meters under 73,200 kWh a year, electricity meters under 50,000 kWh on profile classes 1 and 2; Mar\u00eda's ruling of 2026-10-12 on microcosm#1207's extreme energy values): the declared household_kwh_ceiling caps a household there, the households below it in the capped households' own NEED cells are re-raked to those cells' levelled means, and a proportional step restores the DESNZ total (microcosm#1164); the receipt counts the households capped and the share of the total they gave up, and the energy_rake gate checks both. Mobile homes have no NEED property-type row, so the rake takes them to the all-dwellings mean, the incumbent's translation; where every mobile home of a NEED geography draws a spend at or below the standing charge, that cell has no kWh for the rake to scale, and the declared zero_kwh_cells_at_need_mean starts it at its NEED mean before the first sweep (microcosm#1240). The receipt lists the cells it started, and the energy_rake gate fails on a started cell the stage does not declare and on any other cell with a zero mean. Both rakes band households on gross income, NEED's concept: the donor on LCFS p344p, cash income before tax, National Insurance, council tax and pension contributions, and the recipient on the same concept, its HBAI net income with the deductions policyengine-uk takes to reach it added back (council tax and domestic rates, income tax, National Insurance, student loan repayments, employee and personal pension contributions, maintenance and child payments, LVT), which the stage materializes for that band alone (microcosm#1164). Before it the recipient fell back to its HBAI net income, which put households in too low a band; the engine's household_gross_income would put them in too high a one, since it adds capital gains and the in-kind NHS, education and transport spending to cash income. The disconnection walk's seed-0 uniform order makes every group of households (dwelling type, income band, support channel) lose the same expected share of its drawn connected mass, so only the level of the drawn connection moves; the smallest-drawn-gas-first order it replaces piled the disconnections onto low-draw flats once the SPI support households drew gas from their own incomes, and NEED's Scottish property-type means then implied a level 2.6 % above the Scottish all-dwellings mean, a margin conflict the rake could not close. Bus fares are priced from journeys (microcosm#930), where the nts_bus_travel stage imputes each person's annual bus-in-London and other-local-bus trips and their concessionary eligibility, and the declared price_bus_journeys step sets bus_fare_spending as the sum over the household's non-eligible persons of trips times boardings per resident trip (the published BUS01 journeys over the published NTS0705a trips per resident times the ONS population) times the yield per fare-paying boarding (BUS05ai receipts over journeys less concessionary journeys; in England outside London only the older and disabled ones of BUS01c, as policyengine-uk prices it from 2.158.3), per area; bus-in-London trips take the London area's price for every resident, other-local-bus trips the price of the residence area (England outside London; Scotland and Northern Ireland from their own receipts and journeys with England's trip rate as the declared proxy); Wales is unpriced and keeps the raw draw. The chain still draws bus_fare_spending so later targets condition on the same raw draw; the emitted column is the priced value. The receipt records every factor, the frame-implied boardings beside the published ones and the frame's eligible trip share beside the publisher's concessionary boarding share, so the prior-weight fit of the bound receipts targets is read as a composition check, never a level the stage set; the #890 incidence draw and fare rake are retired. The 2024-25 diary (UKDS SN 9603, 2nd edition, whose household tab carries the annual weight as cal_weight_annual, the name weighta had; microcosm#1164) is moved to the base year by the declared uprate_donor_columns step (microcosm#890). Consumption columns and bus fares take the engine's CPI index from the April-to-March diary year, placed on the calendar-year index at three quarters of 2024 and one of 2025, back a quarter to calendar 2024 (microcosm#1113; the diary sits a quarter past it, so the factor is below one; the fare factor survives only where no fare cell levels the column, i.e. Wales). Income predictors take a factor of one: the diary year is the FRS 2024-25 year they are matched against. Petrol and diesel take the DESNZ pump-price times HMRC litres per head outturn from the vendored road_fuel_anchors.json, which sets only their donor distribution because the level step follows; the energy columns are exempt because the NEED 2024 shape at the DESNZ level and the QEP average prices paid set their level. The household adult and child counts (LCFS G018 and G019, the survey's age-18 split) predict on both sides; the recipient counts its members by age, not through the engine's is_adult and is_child flags, which policyengine-uk#1896 deprecates (uk-data#486, microcosm#1095). Road fuel incidence and level are set by two declared steps (microcosm#1113). The two-week diary leaves about a third of car-owning donors with no fuel purchase, which the chain reproduces among the households the fuel flag marks as fuel buyers, so the redraw_zero_road_fuel step redraws a flagged household that drew zero from the donor's distribution among households with positive road fuel, on the chain's predictors: a weighted regime-gated QRF draws the total, positive by construction, then the petrol share of it, at quantiles keyed on the household id; positive draws are kept. Then the level_road_fuel step, after the fuel flag has zeroed the households without a fuel car, scales petrol and diesel so their prior-weighted total equals ONS Consumer Trends household spending on COICOP 07.2.2 for calendar 2024 (the year of the DESNZ pump prices the donor uprating uses) less the donor's own other-fuels share of 07.2.2 (c72213). Since microcosm#1095 B3 (K) each fuel is levelled to that total times its share of household-paid spend, so the total stays and each household's spend within a fuel keeps its relative size, but the diary's petrol/diesel mix gives way to the household one: HMRC's FY2024-25 litres of the fuel times DESNZ's cars share of its road use (the litres audit's benchmark), times the NTS household-paid share of car miles, at the 2024 pump prices. A kept car's private and commuting miles are household-paid, its business miles and every company-car mile are not, and England stands for the UK. The diary's 07.2.2 has three lines (c72211 petrol, c72212 diesel and c72213, the other motor fuels and lubricants) and none for vehicle electricity. The LCFS diary records about a quarter less road fuel than ONS, and binding the OBR cars receipts had closed that gap by moving weight onto fuel-buying households; petrol and diesel therefore carry no committed support bound, like the other levelled columns. The totals that contain levelled columns are written back around them by the declared recompose_from_remainder step (microcosm#1113): each keeps its own chain draw less the chain's draws of the parts the stage re-levels, kept before any step touches them and floored at zero where the parts outgrow the total, and adds the levelled parts back, so housing_water_and_electricity_consumption is its draw less the drawn electricity and gas plus the levelled electricity and gas, and transport_consumption its draw less the drawn petrol, diesel and bus fares plus the levelled petrol and diesel and the priced bus fares. The chain draws each part after, and conditional on, its total, so the remainder is the chain's own split; a remainder drawn as a chain target of its own over-drew the vehicle-purchase tail of transport, 10 to 13 percent above the donor in-sample. The chain's domestic-energy target is the electricity and gas the stage derives from the diary's fuel, light and power (p537) by its labelled parts, from the LCF User Guide's derived-variable labels and P537 definition (microcosm#1164): each fuel's last account payment less its rebate (b489 electricity, b490 gas, read as the tab carries them; the stage refuses a donor where b489 equals b175 less b178, or b490 equals b170 less b173, to the penny for under 95 percent of that fuel's account payers, which pins the labels and the rebate's sign), its prepayment key or meter payment (b1751, b1701), its component of a combined utilities bill (b227 electricity, b226 gas) and of a combined key or meter payment (b2332, b2331), and the diary's second-dwelling account and slot-meter lines (c45112 and c45114, c45212 and c45214); what a combined payment leaves unsplit (the combined bill b231 less its rebate b174, and the combined key or meter payment b233, each less its parts) goes by the household's own electricity share where it pays for both fuels, and otherwise by the donor's mean share of the households that do, since a combined payment means the household pays for both; a donor with no such household fails. The diary's other fuels (central-heating oil b017 and c45312, bottled gas b018 and c45222, coal and coke c45411, wood and peat c45412, hot water, steam and ice c45511) are neither, and the donor_energy_split receipt records the split against p537: what reading refunds as zero adds, what the unclipped parts differ from p537 by, the weighted share of donors whose unclipped parts differ from their p537, and the account identity shares. The derivation it replaces read b226 as electricity by direct debit and b489 and b490 as prepayment payments, where the labels make them the gas component of a combined bill and the electricity and gas account payments less rebates. The liquid fuels (central-heating oil and paraffin with bottled gas, LPG with liquid) and the solid fuels (coal, coke, wood and peat) are drawn as liquid_fuel_consumption and solid_fuel_consumption, the inputs policyengine-uk 2.149.0 reads (pe-uk#2572; Mar\u00eda's ruling of 2026-10-22), after the eighteen spend targets so that every earlier draw is the chain's own, uprated to calendar-2024 prices as every diary spend column is; the housing total nets their draws and adds them back unchanged, so it always holds them, and hot water, steam and ice stays in its remainder. The receipt records the published ONS 04.5.3 and 04.5.4 spend beside each fuel's donor total at diary prices and the frame's draw (published_fuels). Before the hold, each COICOP division's drawn spend per household (a recomposed total's remainder, any other division's whole draw) is set against the donor's mean of the same spend (for housing and transport, the donor's total less the same parts, since the levelled parts keep their published levels and are no over-draw); a division above the divisions' shared ratio, measured once before any levelling, comes down to it (Mar\u00eda's rulings of 2026-10-23 and 2026-10-24, microcosm#1278; Vahid's review of microcosm#1383, item 9); the receipt records each division's ratio and factor and the shared ratio (division_levelling) and each recomposed total's levelling_factor. Each total is then held to the donor's realised maximum of that total (maximum_total: donor_support, the support every drawn column is clipped to; microcosm#1164), never below its parts, the excess coming out of its remainder: a remainder near the top of the diary's range plus levelled parts larger than the drawn ones would otherwise leave it. The two totals keep their committed support bounds, which the terminal support gate applies to the emitted frame; the recomposed_totals gate checks the declaration and the receipt, whose rows held at the maximum and weighted mass taken enter its identities. Every household spend column is at calendar-2024 prices as households paid them, the H5's year that policyengine-uk projects from and the calibration uprates to the calendar-2025 window (microcosm#1113): the diary columns by the CPI uprating to 2024, road fuel at ONS 07.2.2 for 2024, energy at DESNZ volume and QEP prices for 2024, and bus fares at each area's fiscal-year yield re-priced to 2024 by its fares index (the DfT local bus fares index by quarter for London and England outside London, Scotland's calendar-year index; Northern Ireland, which publishes no fares index, from its own yields of the two fiscal years 2024 overlaps, weighted three months and nine (microcosm#1207), in place of England's index, which carries the January 2025 rise in the English fare cap Northern Ireland did not have); the consumption_basis gate holds every level-setting step to that year. policyengine-uk applies the fiscal 2024-25 rules to model year 2024 (it samples each parameter at 30 April), so every levelled column sits about a quarter before the midpoint of the policy year it is taxed in; the calibration binds calendar-year facts as published and fiscal-year facts at the calendar window (Mar\u00eda's rule of 2026-09-22). The stage receipt also reports, for each of the twelve COICOP divisions, the prior-weighted frame total against ONS Consumer Trends for the same calendar year less the classes a household diary does not record (02.3 narcotics, 04.2 owner-occupiers' imputed rent and 12.6.1 FISIM), on ONS's domestic concept, and the twelve together against the national concept as well; it is report-only (microcosm#1113). The report-only litres audit compares each fuel's frame litres with HMRC's clearances of that fuel scaled by the cars share of its road use, from the vendored DESNZ sub-national road transport fuel consumption by vehicle type and fuel (PolicyEngine/chronicle#322); the OBR cars share of fuel duty receipts, uniform across fuels, stays beside the total. The liquid fuels hold bottled gas (b018, c45222), which COICOP puts under 04.5.2 (gas) and ONS's 04.5.3 leaves out, so the receipt also gives the donor's liquid fuels without it; neither heating-fuel column is levelled to ONS: the donor's diary totals are about twice ONS's, and the frame's draws reach neither those nor ONS's, so a costing on either needs levelling to ONS first (Vahid's review of microcosm#1383, item 8). After its spend targets and the two fuels the chain draws five shares the derive step computes on the donor from the diary lines (microcosm#1359): tobacco's share of the off-trade alcohol and tobacco that make up P602 (c22111, c22121 and c22131 over those three and the seven lines of alcohol brought home, c21111 to c21311; P602 also sums narcotics, c23111, which the end-user tab does not carry), on-trade alcohol's share of restaurants and hotels (the eight lines of drinks away from home, cb111c to cb111j, over P611, clipped at one because the tab stores P611 to one decimal place), gambling stakes' share of recreation (the seven games-of-chance stake lines P609 sums, c94311 to c94316 and c94319: pools, bingo, lotteries, bookmaker and tote betting with gaming machines, and the National Lottery; the winnings lines beside them sit in no total), the National Lottery's share of those stakes (scratchcards and draws, c94316 and c94319, over the seven) and the betting and gaming share of the rest (football pools, bingo, and bookmaker and tote betting with gaming machines, c94311, c94312 and c94314, over the other five; society lotteries, c94313, and the Irish Lottery, c94315, pay no UK gambling duty). A household's tobacco, off-trade alcohol, on-trade alcohol and gambling stakes are its shares of the totals it carries, and its National Lottery and betting and gaming stakes its shares of its stakes, so the parts sum to the totals and no total, the VAT base included, moves; appended after the twenty targets, the shares move none of their draws. The shares and the spending they give are scratch, on no table; the report-only excise_shares receipt records each share on the frame beside the donor. The declared level_excise_quantities step turns that spending into policyengine-uk's excise inputs (microcosm#1359), so alcohol, tobacco and gambling duty stop scoring zero. Each national quantity is a published FY2024-25 figure from the vendored excise_facts.json, and the step gives each household its part in proportion to the spending that buys it, at prior weights (one factor per input, the level_road_fuel scaling), so the frame's weighted total of each input is the published one; a household that buys one product of a kind buys all of that kind in the national mix. Alcohol: each product's litres are HMRC's clearances of beer, cider, wine, spirits and other fermented products (the Alcohol Bulletin, in litres of pure alcohol) over the engine's own strength for the product, which policyengine-uk multiplies back, shared by off- and on-trade alcohol spending together; beer and cider take their draught shares from the clearances under draught relief, alone or with small producer relief, over all of their clearances, and the other products, whose draught clearances HMRC does not publish, keep the engine's zero, as does sparkling cider, which the bulletin counts within cider. A pound buys the same volume in a pub as in a shop under this rule, which leans the volume, and so the duty, towards on-trade drinkers: against a published on-trade volume share of about 27 percent, a pound spent in a pub is given about 1.6 times the volume it buys and a pound spent in a shop about 0.78 times, and about 11 percent of the volume sits with other households on the 2024-25 diary. No on-trade volume share can be archived (MESAS is a NielsenIQ and Circana dashboard with no fixed file), so the spending rule stands, its lean documented (Mar\u00eda's ruling of 2026-10-23). Tobacco: cigarettes a week and grams a week of hand-rolling tobacco, cigars and other tobacco are HMRC's clearances (the Tobacco Bulletin) over the engine's 52 weeks, shared by tobacco spending; heated tobacco sits within other tobacco in the bulletin, so it is charged at the other-tobacco rate and its own input keeps the engine's zero. Gambling: each input is its duty's dutiable base, HMRC's cash receipts for the duty (the Betting and Gaming bulletin) or Machine Games Duty's declared liabilities for the band, over the engine's FY2024-25 rate (Gaming Duty over the engine's effective-rate proxy for it), so the engine charges back the published receipts. General Betting Duty's base, its receipts over the fixed-odds rate, is split over the land-based fixed-odds, remote horse-racing, remote other, exchange and horse-and-dog pool inputs by the Gambling Commission's gross gambling yield for Great Britain, remote fixed-odds betting by the horse-racing share of all remote betting yield, since the Commission publishes no betting activity by event; its horse racing is not only UK racing, so the remote UK horse-racing input is overstated and, from April 2027, when the engine charges other remote betting at 25 percent, too much of the base stays at 15 percent and the rise is understated; and its pool betting can hold pools on other events, such as football pools, which pay Pool Betting Duty. Spread betting, which the Commission does not regulate, has no published base and keeps the engine's zero. Lottery Duty's base is shared by the National Lottery stakes and every other gambling base by the betting and gaming stakes, since the diary cannot tell remote from land-based play or one betting product from another; the society and Irish lotteries carry none. Both keys are first brought to published participation by the declared top_up_gambling_participation step (microcosm#1359; Mar\u00eda's ruling of 2026-10-25). The diary records a stake for about a fifth of the households the Gambling Commission's Gambling Survey for Great Britain 2025 implies (PolicyEngine/chronicle#391), and under any steady rate of play a two-week diary sees at least half of the four-week players, so the gap is play the diary misses, not its window. Each adult's chance of playing in four weeks and in twelve months is GSGB's published rate for its sex and age band (tables B.1 and B.3), as the union of a key's activities (table B.9: the National Lottery's draws, scratchcards and online instant-win games; betting, bingo, casino games, fruit and slots, football pools, other online instant-win games and other gambling), taken as independent within the population that plays any of them (all gamblers, or those who play more than lottery draws). A household plays when any adult does, combined at theta: 1 - (1 - p_max) x prod(1 - p_other)^theta, where 0 is one player per household and 1 adults who play independently. Theta is fitted on the donor so that GSGB's rates, applied to the donors' own adults, give the diary's ratio of the two-adult to the one-adult household rate, in which under-recording cancels if it is the same for both: 0.9 for the National Lottery, whose couples mostly buy their own tickets, and 0.08 for betting and gaming, mostly one adult's. Within nine strata (one, two, or three or more adults, by the youngest adult's age band: 18 to 34, 35 to 54, 55 and over), households without a stake are added by the gas connection walk's weight-fitting rule, in an identity-keyed order drawn in proportion to a regularised donor propensity (on the chain's predictors and spend draws, with recreation net of its gambling stakes, so that a recorded stake does not predict itself) times the household's published chance, first to the stratum's four-week share (regular players) and then on to its twelve-month share (occasional players); households the diary saw keep their stakes and count as regular. An added household's stake is a draw from the donor's positive stakes at a quantile keyed on its id, scaled so the added regular players' mean is the mean of the households the diary saw, and an occasional player's is a tenth of that. Both are assumptions: a two-week diary is more likely to catch frequent players, so the households it saw are probably the heavier players and equal means spread the base more evenly than play probably is; the tenth stands until GSGB publishes how often people play. The keys only re-share the bases: the stored spending stays the drawn one, so an added household's stakes are not in its recorded recreation spending. The gambling_participation gate recomputes the rates from the vendored rows, checks every stratum's shares, and holds each key's stake scale within 0.5 to 2, so a broken stake draw that the scaling would hide fails it. Known biases: the quantities are levelled to the published figures while spending and the diary's incidence stay at survey level (Mar\u00eda's ruling of 2026-10-23), so a household's alcohol or tobacco duty is one multiple of its own spending, the same for every household that carries it: at prior weights alcohol duty is about 0.41 times alcohol spending and tobacco duty about 2.2 times tobacco spending, since the diary records a fraction of what is bought; VAT on the same goods stays on the survey base. Tobacco duty also sits on fewer households than smoke: 8.2 percent of households carry it, against 11.9 percent of UK adults who smoked cigarettes in 2023 (ONS), while the share of households with a smoker is above the adult rate; the duty per carrying household is higher by the same factor. Part of the gap is the frame's: the chain's share draws come out zero more often than the donors' (10.3 percent of donors carry tobacco), mostly within households that carry the parent total. The gambling duties sit on the households the top-up brings to participation: 62.7 percent of households carry Lottery Duty and 29.8 percent the other gambling duties, against 10.7 and 2.0 percent on the diary's draws alone, and 47 percent of adults in Great Britain who gambled in the past four weeks of 2025 (27 percent once lottery-draw-only players are left out). The top-up's own biases: GSGB is taken as the level, though the Gambling Commission's guidance on its statistics reports that an invitation that mentions gambling raised participation estimates, and that its experiment could not conclude which estimates are the more accurate; under-recording is taken as even across households, so the donor propensity carries the diary's gradient by income, tenure, region and spending; the activity unions take activities as independent within their population, which GSGB's table B.13 rules out among players (45 percent of four-week gamblers took part in one activity, against 26 percent under independence), but a model in which each adult's activities share an intensity, which comes within 2.5 points of that share in every age band, moves neither key's union by more than 9 percent in any age band, nor the share of households carrying either key by more than 0.1 points; theta is one per key, fits households of three or more adults less well, and takes the share carrying betting and gaming from 28.5 percent at 0 to 41.2 percent at 1; the stake assumptions above; and GSGB covers adults in Great Britain in calendar 2025, so Northern Ireland's adults take its rates, against the FY2024-25 bases. On the real spine at prior weights, the share of households carrying the National Lottery rises from 51.5 percent in the bottom equivalised-income decile to 67.3 percent in the top, and betting and gaming from 26.8 to 34.8 percent, whose top decile holds 25.3 percent of the base; on the diary's draws alone betting and gaming is almost flat (1.9 to 2.1 percent, 18.9 percent of the base in the top decile). Ordered by the published chance alone, betting and gaming would run from 29.2 to 29.8 percent and the Lottery from 57.0 to 67.9 percent with GSGB's age mix, but neither key's regional pattern would follow GSGB's. With the propensity, the Lottery's does (a correlation of 0.67 across Great Britain's eleven regions, London lowest, as in GSGB), and betting and gaming's barely (0.11). Other tobacco (c22131) includes e-cigarette refills, so the tobacco inputs also follow vaping spending and a household that only vapes carries tobacco duty; Vaping Products Duty, from 1 October 2026, needs a key of its own. The draught shares are national constants, so a household that buys alcohol only in shops takes the same draught relief as one that drinks in pubs. The quantities are FY2024-25's, the excise year policyengine-uk charges in model year 2024 (its excise year runs from 6 April), and the engine holds them flat after it (PolicyEngine/policyengine-uk#2596). The step moves no spending column; the excise_quantities gate recomputes every level from the vendored rows. Since microcosm#1095 B3 the declared assign_car_attributes_from_nts step writes policyengine-uk's vehicle excise duty inputs, which no stage wrote, so every household's duty was zero: a household's vehicles less its members' company cars (an employer pays their duty) go one to each other adult, oldest first, a car beyond the adults left out (policyengine-uk holds one car a person); a household the fuel flag leaves without road fuel keeps zero-emission cars only, and one that buys fuel holds a petrol, diesel or other car first and further cars at its own per-car zero-emission share; each car is a kept NTS car of its class in the household's income fifth, drawn at its interview weight scaled to its fifth and age band's kept cars (fewer of the newest and oldest cars carry the registration record its CO2 bands come from), giving car_fuel_type (a diesel registered from 2021 meets RDE2), car_co2_emissions (its band's midpoint on the scale its duty regime reads), car_engine_size (none for a zero-emission car), car_first_registration_date (the reference date of 1 October 2025 less its age, drawn uniformly within its NTS band, so each car keeps its age; the open band of over 18 years closes at 25) and car_is_ved_exempt (DLA's higher-rate or PIP's enhanced mobility component exempts the member's own car, or the oldest car-holder's in their benefit unit). The list price keeps the engine's default, so no car pays the expensive-car supplement. Vehicle excise duty is measured, never bound: no target carries it.", "operations": [ { "annualization_weeks": 52.17857142857143, @@ -4666,11 +4722,40 @@ }, { "condition": "num_vehicles > 0", + "frame_equivalisation": "household_equivalisation_bhc", + "frame_income": "household_gross_income", "geography_id": "K03000001", "kind": "assign_binary_from_rate", + "minimum_zero_emission_cars": 10, + "nts_cars": { + "company_keeper": [ + 2 + ], + "income_quintile": "hhincqisengts_b01id", + "private_keeper": [ + 1 + ], + "propulsion": { + "diesel_spending": 2, + "petrol_spending": 1 + }, + "survey_years": [ + 2022, + 2023, + 2024 + ], + "vehicle_types": [ + 1, + 3 + ], + "weight": "w3", + "zero_emission_co2_bands": [ + 1 + ] + }, "period_value": 2024, "rate_resource": "licensed_cars_fuel_type.json", - "rate_rule": "per_car_zero_emission_share", + "rate_rule": "per_car_zero_emission_share_by_income_quintile", "seed": 0, "target": "has_fuel_consumption", "zero_emission_fuel_types": [ @@ -5067,6 +5152,33 @@ ], "concept": "ons.household_expenditure.personal_transport_fuels_lubricants", "kind": "level_road_fuel", + "mix_rule": "household_paid_litres", + "nts_cars": { + "company_keeper": [ + 2 + ], + "income_quintile": "hhincqisengts_b01id", + "private_keeper": [ + 1 + ], + "propulsion": { + "diesel_spending": 2, + "petrol_spending": 1 + }, + "survey_years": [ + 2022, + 2023, + 2024 + ], + "vehicle_types": [ + 1, + 3 + ], + "weight": "w3", + "zero_emission_co2_bands": [ + 1 + ] + }, "other_fuels_codes": [ "c72213" ], @@ -5486,6 +5598,40 @@ "resource": "excise_facts.json", "weeks_per_year": 52 }, + { + "default_engine_size_cc": 1600, + "kind": "assign_car_attributes_from_nts", + "nts_cars": { + "company_keeper": [ + 2 + ], + "income_quintile": "hhincqisengts_b01id", + "private_keeper": [ + 1 + ], + "propulsion": { + "diesel_spending": 2, + "petrol_spending": 1 + }, + "survey_years": [ + 2022, + 2023, + 2024 + ], + "vehicle_types": [ + 1, + 3 + ], + "weight": "w3", + "zero_emission_co2_bands": [ + 1 + ] + }, + "oldest_age_years": 25, + "reference_date": "2025-10-01", + "salt": "lcfs_car_attributes", + "seed": 0 + }, { "declared_factor": 1, "entity": "household", @@ -5540,10 +5686,15 @@ "remote_uk_horseracing_betting_net_losses", "remote_other_betting_net_losses", "betting_exchange_commission", - "horse_and_dog_pool_betting_net_losses" + "horse_and_dog_pool_betting_net_losses", + "car_fuel_type", + "car_co2_emissions", + "car_engine_size", + "car_first_registration_date", + "car_is_ved_exempt" ], "rewrites": [], - "source": "UK Data Service SN 9603 Living Costs and Food Survey 2024-25 (2nd edition) household/person tabs and the vendored Chronicle facts for NEED 2024 mean kWh, DESNZ Energy Trends and QEP average prices paid for calendar 2024, road-fuel outturn (DESNZ, HMRC, ONS Consumer Trends) and road fuel by vehicle type (DESNZ), ONS Consumer Trends household spending by COICOP division, the DfT VEH1103 licensed-car stock, NTS bus use, and the DfT and devolved bus finance tables and fares indices.", + "source": "UK Data Service SN 9603 Living Costs and Food Survey 2024-25 (2nd edition) household/person tabs and the vendored Chronicle facts for NEED 2024 mean kWh, DESNZ Energy Trends and QEP average prices paid for calendar 2024, road-fuel outturn (DESNZ, HMRC, ONS Consumer Trends) and road fuel by vehicle type (DESNZ), ONS Consumer Trends household spending by COICOP division, the DfT VEH1103 licensed-car stock, NTS bus use, the NTS private cars (UK Data Service SN 5340, End User Licence; the vehicle and household tabs, survey years 2022-2024) for the zero-emission share by income fifth and the household-paid road-fuel mix, and the DfT and devolved bus finance tables and fares indices.", "stage": "lcfs_consumption", "survey": "Living Costs and Food Survey 2024-25" }, @@ -6247,7 +6398,7 @@ "source_vintage": "2024-25" }, { - "additional_residential_targets": "Table 6b HRAD transactions and value, 2024-25, times individuals' shares of Table 8a residential transactions and value; Table 6b bands with the five above GBP 2m combined", + "additional_residential_targets": "Table 6b HRAD transactions and value, 2024-25: at or below GBP 250,000, the band less other buyers' HRAD, their Table 8a receipts over Table 6b's gross HRAD receipts per transaction and per pound; above it, times individuals' shares of Table 8a residential transactions and value; Table 6b bands with the five above GBP 2m combined, at the households' counts and values", "eligibility": "stock at least minimum_price, the chargeable consideration HMRC's Stamp Tax tables cover, and positive weight; at most one purchase of each kind a year", "event_score": "-log1p(-u) / hazard", "fit_regions": [ @@ -6550,11 +6701,10 @@ "artifacts": [], "grain": "person+benunit", "nonnegative_outputs": [], - "notes": "Runs on SPI-channel rows after uc_reporter_redraw, the last writer of Universal Credit reports, and before uc_capital_coherence and the Pension Credit, Child Benefit and Carer's Allowance take-up stages (microcosm#1095, uk-data#514). The stage-2 forests of hmrc_spi_income_spine re-impute each SPI adult's benefit reports from age, gender, region and the new incomes, with nothing of the benefit unit's entitlement or claim history. This stage zeroes the SPI rows' contributory and income-based JSA, income-related ESA, Income Support, Working and Child Tax Credit, Severe Disablement Allowance and Sure Start Maternity Grant reports, whose award needs an existing legacy claim, an out-of-work test, or a claim the copied household's new incomes cannot carry (policyengine-uk pays income-related ESA as reported behind a capital test alone); restores Industrial Injuries Disablement Benefit, the Armed Forces Compensation Scheme and bereavement support from the FRS twin (person_source_id), since they follow an injury, service or a death; re-derives the disability flags (the categories, which read only AA, DLA and PIP, are asserted unchanged) and receives_benefits_in_own_right from the final reports; and redraws would_claim_uc for SPI benefit units as frs_take_up draws it for FRS units: a unit with a Universal Credit reporter claims, and the other units in frs_take_up's Universal Credit population (a UC claimant or partner aged 18 to under Pension Credit qualifying age) claim as the residual of the contract's universal_credit rate on draws keyed on the SPI unit's own identity. That draw stands for a unit with no award; uc_take_up redraws every entitled unit of both channels by award band and family type once uc_capital_coherence has set the capital the engine assesses (microcosm#1334). Contributory ESA, PIP, DLA, AA, Carer's Allowance, State Pension and Winter Fuel Payment keep their draws (carers_allowance_take_up later opens the Carer's Allowance claim flag to carers over the earnings limit, microcosm#1319), and FRS rows are never modified; contributory ESA is open to new claims and not income-tested, and the incapacity it needs follows the person, whose health and disability reports the SPI copy keeps.", + "notes": "Runs on SPI-channel rows after uc_reporter_redraw, the last writer of Universal Credit reports, and before uc_capital_coherence and the Pension Credit, Child Benefit and Carer's Allowance take-up stages (microcosm#1095, uk-data#514). The stage-2 forests of hmrc_spi_income_spine re-impute each SPI adult's benefit reports from age, gender, region and the new incomes, with nothing of the benefit unit's entitlement or claim history. This stage zeroes the SPI rows' income-based JSA, income-related ESA, Income Support, Working and Child Tax Credit, Severe Disablement Allowance and Sure Start Maternity Grant reports, whose award needs an existing legacy claim, an out-of-work test, or a claim the copied household's new incomes cannot carry (policyengine-uk pays income-related ESA as reported behind a capital test alone); restores Industrial Injuries Disablement Benefit, the Armed Forces Compensation Scheme and bereavement support from the FRS twin (person_source_id), since they follow an injury, service or a death; gives contributory JSA and ESA the FRS twin's award where the copy's own work stays within each benefit's limits, and none outside them, since a contributory award follows the person's National Insurance record and, for ESA, incapacity, which the copy keeps, but not the copy's work (Mar\u00eda's ruling of 29 October 2026, microcosm#1095 B10): ESA's permitted work, under 16 hours a week and earnings up to policyengine-uk's esa_exempt_work_higher_earnings_limit, and JSA's own limits (Vahid's review of microcosm#1426), under 16 hours a week and earnings below the age-related amount plus the earnings disregard, with the award cut to that amount less the earnings above the disregard, all at the frame's year, on the copy's employment income plus any self-employment profit over 52 weeks and its twin's usual hours; re-derives the disability flags (the categories, which read only AA, DLA and PIP, are asserted unchanged) and receives_benefits_in_own_right from the final reports; and redraws would_claim_uc for SPI benefit units as frs_take_up draws it for FRS units: a unit with a Universal Credit reporter claims, and the other units in frs_take_up's Universal Credit population (a UC claimant or partner aged 18 to under Pension Credit qualifying age) claim as the residual of the contract's universal_credit rate on draws keyed on the SPI unit's own identity. That draw stands for a unit with no award; uc_take_up redraws every entitled unit of both channels by award band and family type once uc_capital_coherence has set the capital the engine assesses (microcosm#1334). PIP, DLA, AA, Carer's Allowance, State Pension and Winter Fuel Payment keep their draws (carers_allowance_take_up later opens the Carer's Allowance claim flag to carers over the earnings limit, microcosm#1319), and FRS rows are never modified.", "operations": [ { "columns": [ - "jsa_contrib_reported", "jsa_income_reported", "esa_income_reported", "income_support_reported", @@ -6580,6 +6730,21 @@ "reason": "follows an injury, service or a death, not income", "rows": "spi_synthetic_support_channel" }, + { + "award": "esa_contrib_reported: the twin's; jsa_contrib_reported: the lower of the twin's and 52 times the age-related amount less the earnings above the disregard (Jobseekers Act 1995 s. 4(1)(b), JSA Regs 1996 reg 80); nil outside the limits", + "columns": [ + "jsa_contrib_reported", + "esa_contrib_reported" + ], + "earnings": "(employment_income + max(self_employment_income, 0)) / 52, the SPI row's own", + "hours": "hours_worked / 52, the twin's usual hours, which the SPI row keeps", + "kind": "restore_spi_channel_reports_from_source_within_earnings_limit", + "linkage": "person_source_id -> FRS-channel person_id", + "reason": "a contributory award follows the person's National Insurance record and, for ESA, incapacity, which the copy keeps, but not work outside each benefit's own earnings and hours limits", + "rows": "spi_synthetic_support_channel", + "weekly_hours_limit": "esa_contrib_reported: below gov.dwp.ESA.exempt_work.hours_limit (ESA Regs 2008 reg 45(4)); jsa_contrib_reported: below gov.dwp.JSA.remunerative_work.claimant_hours (JSA Regs 1996 reg 51(1)(a)); weekly, at the frame's year", + "weekly_limit": "esa_contrib_reported: up to policyengine-uk esa_exempt_work_higher_earnings_limit (ESA Regs 2008 reg 45(4)); jsa_contrib_reported: below the age-related amount (gov.dwp.JSA.contrib.amount_18_24 under 25, amount_over_25 from 25) plus gov.dwp.JSA.contrib.earn_disregard, the prescribed amount being that sum less 1p (JSA Regs 1996 reg 56); weekly, at the frame's year" + }, { "kind": "derive", "scope": "disability categories and flags re-derived on SPI-channel rows from the final reports with the frs_disability rule at its declared year; the categories, which read only AA, DLA and PIP, asserted unchanged" @@ -6619,7 +6784,6 @@ ], "outputs": [], "rewrites": [ - "jsa_contrib_reported", "jsa_income_reported", "esa_income_reported", "income_support_reported", @@ -6632,6 +6796,8 @@ "bsp_reported", "war_widows_pension_reported", "widowed_parents_allowance_reported", + "jsa_contrib_reported", + "esa_contrib_reported", "is_disabled_for_benefits", "is_enhanced_disabled_for_benefits", "is_severely_disabled_for_benefits", @@ -6923,7 +7089,7 @@ ], "grain": "person", "nonnegative_outputs": [], - "notes": "Reported borrowers are PAYE repayers, classified without a country gate, and, in England and Wales, adults who report an outstanding loan (FRS SLOS) and are not in full-time education, the borrowers below the repayment threshold (microcosm#868). A course starts three years before its borrower left full-time education (FRS EDUCLEFT), or at 18 without an answer, and its start year sets the plan, except that before 2026 a repayer never takes PLAN_5: nobody repays a Plan 5 loan before April 2026, so SLC counts no Plan 5 borrower above the threshold in academic year 2024/25. England tertiary cohorts are then topped up PLAN_5 first and PLAN_2 second to the pinned liable stocks at the FRS release calibration year. The PLAN_2 walk takes nobody in full-time education, since a student is not yet liable to repay; the PLAN_5 walk keeps the age rule, since its starters have mostly not left education. The stocks are SLC academic year 2024/25, whose reference date falls in calendar 2025, the year the borrower targets bind (ruling of 2026-10-16). PLAN_4 is never imputed, and a Scottish or Northern Irish answer of an outstanding loan assigns no plan.", + "notes": "Reported borrowers are PAYE repayers, classified without a country gate, and, in England and Wales, adults who report an outstanding loan (FRS SLOS) and are not in full-time education, the borrowers below the repayment threshold (microcosm#868). A course starts three years before its borrower left full-time education (FRS EDUCLEFT), or at 18 without an answer, and its start year sets the plan, except that before 2026 a repayer never takes PLAN_5: nobody repays a Plan 5 loan before April 2026, so SLC counts no Plan 5 borrower above the threshold in academic year 2024/25. England tertiary cohorts are then topped up PLAN_5 first and PLAN_2 second to the pinned liable stocks at the FRS release calibration year. The PLAN_2 walk takes nobody in full-time education, since a student is not yet liable to repay; the PLAN_5 walk keeps the age rule, since its starters have mostly not left education. The stocks are SLC academic year 2024/25, whose reference date falls in calendar 2025, the year the borrower targets bind (ruling of 2026-10-16). PLAN_4 is never imputed, and a Scottish or Northern Irish answer of an outstanding loan assigns no plan. Once the plans are set, each household's student-loan balance, which was_wealth draws from the WAS and splits before any plan exists, moves to the members who hold a plan, by their repayments where any of them repays and equally otherwise; a household with no borrower keeps was_wealth's split and no household's total moves. policyengine-uk caps a borrower's repayment at a positive balance, so the split decides which repayments the balance can cap (microcosm#1095 B9).", "operations": [ { "enum_domain": [ @@ -6987,19 +7153,25 @@ "priority": 2, "realization": "identity_uniform_order_walk", "realization_bound": "the realised top-up sits within the weight of the lightest person the walk skipped of the shortfall, so the plan's final England count sits within that weight of the stock; a pool lighter than the shortfall is taken whole and receipted as exhausted, and a plan already at or above its stock is left as reported", - "reason": "Student-loan plan assignment writes an enum column only; household rows and typed household weights pass through and total household mass is conserved.", + "reason": "Student-loan plan assignment writes the plan and re-splits each household's student-loan balance among its members; household rows and typed household weights pass through and total household mass is conserved.", "resource": "slc_liable_stocks.json", "salt": "student_loan_plan_2", "seed": 42, "stock_series": "plan_2.liable", "year_rule": "calibration_year" + }, + { + "formula": "each household's student_loan_balance re-split to its members with student_loan_plan != NONE, by student_loan_repayments where any of them repays, else equally; a household with no such member keeps was_wealth's split, and every household's total is unchanged", + "kind": "derive", + "output": "student_loan_balance" } ], "outputs": [ "student_loan_plan" ], "rewrites": [ - "student_loan_plan" + "student_loan_plan", + "student_loan_balance" ], "source": "Explore Education Statistics Table 6a, Higher education total", "stage": "student_loans", diff --git a/packages/microcosm-graph/tests/fixtures/parity/uk_spine/sources/nts_household.csv b/packages/microcosm-graph/tests/fixtures/parity/uk_spine/sources/nts_household.csv index 79cd24f335..36b9f64bed 100644 --- a/packages/microcosm-graph/tests/fixtures/parity/uk_spine/sources/nts_household.csv +++ b/packages/microcosm-graph/tests/fixtures/parity/uk_spine/sources/nts_household.csv @@ -1,65 +1,65 @@ -HouseholdID,SurveyYear,HHoldGOR_B02ID,HHIncome2002_B02ID,NumCarVan,HHoldNumPeople,W2 -1000,2022,1,1,0,1,1 -1001,2022,2,2,1,2,1.1000000000000001 -1002,2022,3,3,2,3,1.2 -1003,2022,4,1,3,4,1.3 -1004,2022,5,2,0,1,1.3999999999999999 -1005,2022,6,3,1,2,1.5 -1006,2022,7,1,2,3,1.6000000000000001 -1007,2022,8,2,3,4,1 -1008,2022,9,3,0,1,1.1000000000000001 -1009,2023,1,1,1,2,1.2 -1010,2023,2,2,2,3,1.3 -1011,2023,3,3,3,4,1.3999999999999999 -1012,2023,4,1,0,1,1.5 -1013,2023,5,2,1,2,1.6000000000000001 -1014,2023,6,3,2,3,1 -1015,2023,7,1,3,4,1.1000000000000001 -1016,2023,8,2,0,1,1.2 -1017,2023,9,3,1,2,1.3 -1018,2024,1,1,2,3,1.3999999999999999 -1019,2024,2,2,3,4,1.5 -1020,2024,3,3,0,1,1.6000000000000001 -1021,2024,4,1,1,2,1 -1022,2024,5,2,2,3,1.1000000000000001 -1023,2024,6,3,3,4,1.2 -1024,2024,7,1,0,1,1.3 -1025,2024,8,2,1,2,1.3999999999999999 -1026,2024,9,3,2,3,1.5 -1027,2022,1,1,3,4,1.6000000000000001 -1028,2022,2,2,0,1,1 -1029,2022,3,3,1,2,1.1000000000000001 -1030,2022,4,1,2,3,1.2 -1031,2022,5,2,3,4,1.3 -1032,2022,6,3,0,1,1.3999999999999999 -1033,2022,7,1,1,2,1.5 -1034,2022,8,2,2,3,1.6000000000000001 -1035,2022,9,3,3,4,1 -1036,2023,1,1,0,1,1.1000000000000001 -1037,2023,2,2,1,2,1.2 -1038,2023,3,3,2,3,1.3 -1039,2023,4,1,3,4,1.3999999999999999 -1040,2023,5,2,0,1,1.5 -1041,2023,6,3,1,2,1.6000000000000001 -1042,2023,7,1,2,3,1 -1043,2023,8,2,3,4,1.1000000000000001 -1044,2023,9,3,0,1,1.2 -1045,2024,1,1,1,2,1.3 -1046,2024,2,2,2,3,1.3999999999999999 -1047,2024,3,3,3,4,1.5 -1048,2024,4,1,0,1,1.6000000000000001 -1049,2024,5,2,1,2,1 -1050,2024,6,3,2,3,1.1000000000000001 -1051,2024,7,1,3,4,1.2 -1052,2024,8,2,0,1,1.3 -1053,2024,9,3,1,2,1.3999999999999999 -1054,2022,1,1,2,3,1.5 -1055,2022,2,2,3,4,1.6000000000000001 -1056,2022,3,3,0,1,1 -1057,2022,4,1,1,2,1.1000000000000001 -1058,2022,5,2,2,3,1.2 -1059,2022,6,3,3,4,1.3 -1060,2022,7,1,0,1,1.3999999999999999 -1061,2022,8,2,1,2,1.5 -1062,2022,9,3,2,3,1.6000000000000001 -1063,2023,1,1,3,4,1 +HouseholdID,SurveyYear,HHoldGOR_B02ID,HHIncome2002_B02ID,NumCarVan,HHoldNumPeople,W2,W3,HHIncQISEngTS_B01ID +1000,2022,1,1,0,1,1,1,1 +1001,2022,2,2,1,2,1.1000000000000001,1.1000000000000001,2 +1002,2022,3,3,2,3,1.2,1.2,3 +1003,2022,4,1,3,4,1.3,1.3,4 +1004,2022,5,2,0,1,1.3999999999999999,1.3999999999999999,5 +1005,2022,6,3,1,2,1.5,1,1 +1006,2022,7,1,2,3,1.6000000000000001,1.1000000000000001,2 +1007,2022,8,2,3,4,1,1.2,3 +1008,2022,9,3,0,1,1.1000000000000001,1.3,4 +1009,2023,1,1,1,2,1.2,1.3999999999999999,5 +1010,2023,2,2,2,3,1.3,1,1 +1011,2023,3,3,3,4,1.3999999999999999,1.1000000000000001,2 +1012,2023,4,1,0,1,1.5,1.2,3 +1013,2023,5,2,1,2,1.6000000000000001,1.3,4 +1014,2023,6,3,2,3,1,1.3999999999999999,5 +1015,2023,7,1,3,4,1.1000000000000001,1,1 +1016,2023,8,2,0,1,1.2,1.1000000000000001,2 +1017,2023,9,3,1,2,1.3,1.2,3 +1018,2024,1,1,2,3,1.3999999999999999,1.3,4 +1019,2024,2,2,3,4,1.5,1.3999999999999999,5 +1020,2024,3,3,0,1,1.6000000000000001,1,1 +1021,2024,4,1,1,2,1,1.1000000000000001,2 +1022,2024,5,2,2,3,1.1000000000000001,1.2,3 +1023,2024,6,3,3,4,1.2,1.3,4 +1024,2024,7,1,0,1,1.3,1.3999999999999999,5 +1025,2024,8,2,1,2,1.3999999999999999,1,1 +1026,2024,9,3,2,3,1.5,1.1000000000000001,2 +1027,2022,1,1,3,4,1.6000000000000001,1.2,3 +1028,2022,2,2,0,1,1,1.3,4 +1029,2022,3,3,1,2,1.1000000000000001,1.3999999999999999,5 +1030,2022,4,1,2,3,1.2,1,1 +1031,2022,5,2,3,4,1.3,1.1000000000000001,2 +1032,2022,6,3,0,1,1.3999999999999999,1.2,3 +1033,2022,7,1,1,2,1.5,1.3,4 +1034,2022,8,2,2,3,1.6000000000000001,1.3999999999999999,5 +1035,2022,9,3,3,4,1,1,1 +1036,2023,1,1,0,1,1.1000000000000001,1.1000000000000001,2 +1037,2023,2,2,1,2,1.2,1.2,3 +1038,2023,3,3,2,3,1.3,1.3,4 +1039,2023,4,1,3,4,1.3999999999999999,1.3999999999999999,5 +1040,2023,5,2,0,1,1.5,1,1 +1041,2023,6,3,1,2,1.6000000000000001,1.1000000000000001,2 +1042,2023,7,1,2,3,1,1.2,3 +1043,2023,8,2,3,4,1.1000000000000001,1.3,4 +1044,2023,9,3,0,1,1.2,1.3999999999999999,5 +1045,2024,1,1,1,2,1.3,1,1 +1046,2024,2,2,2,3,1.3999999999999999,1.1000000000000001,2 +1047,2024,3,3,3,4,1.5,1.2,3 +1048,2024,4,1,0,1,1.6000000000000001,1.3,4 +1049,2024,5,2,1,2,1,1.3999999999999999,5 +1050,2024,6,3,2,3,1.1000000000000001,1,1 +1051,2024,7,1,3,4,1.2,1.1000000000000001,2 +1052,2024,8,2,0,1,1.3,1.2,3 +1053,2024,9,3,1,2,1.3999999999999999,1.3,4 +1054,2022,1,1,2,3,1.5,1.3999999999999999,5 +1055,2022,2,2,3,4,1.6000000000000001,1,1 +1056,2022,3,3,0,1,1,1.1000000000000001,2 +1057,2022,4,1,1,2,1.1000000000000001,1.2,3 +1058,2022,5,2,2,3,1.2,1.3,4 +1059,2022,6,3,3,4,1.3,1.3999999999999999,5 +1060,2022,7,1,0,1,1.3999999999999999,1,1 +1061,2022,8,2,1,2,1.5,1.1000000000000001,2 +1062,2022,9,3,2,3,1.6000000000000001,1.2,3 +1063,2023,1,1,3,4,1,1.3,4 diff --git a/packages/microcosm-graph/tests/fixtures/parity/uk_spine/sources/nts_vehicle.csv b/packages/microcosm-graph/tests/fixtures/parity/uk_spine/sources/nts_vehicle.csv new file mode 100644 index 0000000000..bb1797a134 --- /dev/null +++ b/packages/microcosm-graph/tests/fixtures/parity/uk_spine/sources/nts_vehicle.csv @@ -0,0 +1,201 @@ +VehicleID,HouseholdID,VehType_B03ID,CarOwn_B01ID,VehPropTypeTS_B01ID,VehCO2Bands_B01ID,VehAnMileage,VehComMile,VehBusMile,VehPriMile,SurveyYear,VehCO2Tax2008_B01ID,EngineCap,VehAge_B01ID +10000,1000,1,1,1,-8,4000,-9,-9,4000,2022,-8,1200,1 +10001,1000,1,2,2,3,4500,-9,-9,4500,2022,2,1200,3 +10002,1000,1,1,3,1,5000,-9,-9,5000,2022,1,0,5 +10003,1000,2,1,3,5,5500,-9,-9,5500,2022,4,1200,7 +10010,1001,1,1,1,3,5000,1000,200,3800,2022,2,1300,2 +10011,1001,1,1,2,4,5500,1000,400,4100,2022,3,1300,4 +10012,1001,1,1,3,1,6000,1000,600,4400,2022,1,0,6 +10020,1002,1,1,1,4,6000,2000,200,3800,2022,3,1400,3 +10021,1002,1,1,2,5,6500,2000,400,4100,2022,4,1400,5 +10022,1002,1,1,3,1,7000,2000,600,4400,2022,1,0,7 +10030,1003,3,1,1,5,7000,0,200,6800,2022,4,1500,4 +10031,1003,3,1,2,1,7500,0,400,7100,2022,1,0,6 +10032,1003,3,1,3,1,8000,0,600,7400,2022,1,0,8 +10040,1004,1,1,1,6,8000,1000,200,6800,2022,5,1600,5 +10041,1004,1,2,2,1,8500,1000,400,7100,2022,1,0,7 +10042,1004,1,1,3,1,9000,1000,600,7400,2022,1,0,9 +10050,1005,1,1,1,7,9000,-9,-9,9000,2022,6,1700,6 +10051,1005,1,1,2,8,9500,-9,-9,9500,2022,7,1700,8 +10052,1005,1,1,3,1,10000,-9,-9,10000,2022,1,0,10 +10060,1006,1,1,1,8,10000,0,200,9800,2022,7,1800,7 +10061,1006,1,1,2,9,10500,0,400,10100,2022,8,1800,9 +10062,1006,1,1,3,1,11000,0,600,10400,2022,1,0,11 +10070,1007,1,1,1,-8,11000,1000,200,9800,2022,-8,1900,8 +10071,1007,1,1,2,10,11500,1000,400,10100,2022,9,1900,10 +10072,1007,1,1,3,1,12000,1000,600,10400,2022,1,0,12 +10080,1008,1,1,1,10,12000,2000,200,9800,2022,9,2000,9 +10081,1008,1,2,2,1,12500,2000,400,10100,2022,1,0,11 +10082,1008,1,1,3,1,13000,2000,600,10400,2022,1,0,13 +10083,1008,2,1,3,13,13500,2000,800,10700,2022,12,2000,1 +10090,1009,1,1,1,11,4000,0,200,3800,2023,10,2100,10 +10091,1009,1,1,2,1,4500,0,400,4100,2023,1,0,12 +10092,1009,1,1,3,1,5000,0,600,4400,2023,1,0,14 +10100,1010,1,1,1,12,5000,-9,-9,5000,2023,11,1200,11 +10101,1010,1,1,2,13,5500,-9,-9,5500,2023,12,1200,13 +10102,1010,1,1,3,1,6000,-9,-9,6000,2023,1,0,1 +10110,1011,1,1,1,13,6000,2000,200,3800,2023,12,1300,12 +10111,1011,1,1,2,2,6500,2000,400,4100,2023,13,1300,14 +10112,1011,1,1,3,1,7000,2000,600,4400,2023,1,0,2 +10120,1012,1,1,1,2,7000,0,200,6800,2023,13,1400,13 +10121,1012,1,2,2,3,7500,0,400,7100,2023,1,1400,1 +10122,1012,1,1,3,1,8000,0,600,7400,2023,1,0,3 +10130,1013,3,1,1,3,8000,1000,200,6800,2023,1,1500,14 +10131,1013,3,1,2,1,8500,1000,400,7100,2023,1,0,2 +10132,1013,3,1,3,1,9000,1000,600,7400,2023,1,0,4 +10140,1014,1,1,1,-8,9000,2000,200,6800,2023,-8,1600,1 +10141,1014,1,1,2,1,9500,2000,400,7100,2023,1,0,3 +10142,1014,1,1,3,1,10000,2000,600,7400,2023,1,0,5 +10150,1015,1,1,1,5,10000,-9,-9,10000,2023,3,1700,2 +10151,1015,1,1,2,6,10500,-9,-9,10500,2023,4,1700,4 +10152,1015,1,1,3,1,11000,-9,-9,11000,2023,1,0,6 +10160,1016,1,1,1,6,11000,1000,200,9800,2023,4,1800,3 +10161,1016,1,2,2,7,11500,1000,400,10100,2023,5,1800,5 +10162,1016,1,1,3,1,12000,1000,600,10400,2023,1,0,7 +10163,1016,2,1,3,9,12500,1000,800,10700,2023,7,1800,9 +10170,1017,1,1,1,7,12000,2000,200,9800,2023,5,1900,4 +10171,1017,1,1,2,8,12500,2000,400,10100,2023,6,1900,6 +10172,1017,1,1,3,1,13000,2000,600,10400,2023,1,0,8 +10180,1018,1,1,1,8,4000,0,200,3800,2024,6,2000,5 +10181,1018,1,1,2,1,4500,0,400,4100,2024,1,0,7 +10182,1018,1,1,3,1,5000,0,600,4400,2024,1,0,9 +10190,1019,1,1,1,9,5000,1000,200,3800,2024,7,2100,6 +10191,1019,1,1,2,1,5500,1000,400,4100,2024,1,0,8 +10192,1019,1,1,3,1,6000,1000,600,4400,2024,1,0,10 +10200,1020,1,1,1,10,6000,-9,-9,6000,2024,8,1200,7 +10201,1020,1,2,2,11,6500,-9,-9,6500,2024,9,1200,9 +10202,1020,1,1,3,1,7000,-9,-9,7000,2024,1,0,11 +10210,1021,1,1,1,-8,7000,0,200,6800,2024,-8,1300,8 +10211,1021,1,1,2,12,7500,0,400,7100,2024,10,1300,10 +10212,1021,1,1,3,1,8000,0,600,7400,2024,1,0,12 +10220,1022,1,1,1,12,8000,1000,200,6800,2024,10,1400,9 +10221,1022,1,1,2,13,8500,1000,400,7100,2024,11,1400,11 +10222,1022,1,1,3,1,9000,1000,600,7400,2024,1,0,13 +10230,1023,3,1,1,13,9000,2000,200,6800,2024,11,1500,10 +10231,1023,3,1,2,1,9500,2000,400,7100,2024,1,0,12 +10232,1023,3,1,3,1,10000,2000,600,7400,2024,1,0,14 +10240,1024,1,1,1,2,10000,0,200,9800,2024,12,1600,11 +10241,1024,1,2,2,1,10500,0,400,10100,2024,1,0,13 +10242,1024,1,1,3,1,11000,0,600,10400,2024,1,0,1 +10243,1024,2,1,3,5,11500,0,800,10700,2024,2,1600,3 +10250,1025,1,1,1,3,11000,-9,-9,11000,2024,13,1700,12 +10251,1025,1,1,2,4,11500,-9,-9,11500,2024,1,1700,14 +10252,1025,1,1,3,1,12000,-9,-9,12000,2024,1,0,2 +10260,1026,1,1,1,4,12000,2000,200,9800,2024,1,1800,13 +10261,1026,1,1,2,5,12500,2000,400,10100,2024,2,1800,1 +10262,1026,1,1,3,1,13000,2000,600,10400,2024,1,0,3 +10270,1027,1,1,1,5,4000,0,200,3800,2022,2,1900,14 +10271,1027,1,1,2,6,4500,0,400,4100,2022,3,1900,2 +10272,1027,1,1,3,1,5000,0,600,4400,2022,1,0,4 +10280,1028,1,1,1,-8,5000,1000,200,3800,2022,-8,2000,1 +10281,1028,1,2,2,1,5500,1000,400,4100,2022,1,0,3 +10282,1028,1,1,3,1,6000,1000,600,4400,2022,1,0,5 +10290,1029,1,1,1,7,6000,2000,200,3800,2022,4,2100,2 +10291,1029,1,1,2,1,6500,2000,400,4100,2022,1,0,4 +10292,1029,1,1,3,1,7000,2000,600,4400,2022,1,0,6 +10300,1030,1,1,1,8,7000,-9,-9,7000,2022,5,1200,3 +10301,1030,1,1,2,9,7500,-9,-9,7500,2022,6,1200,5 +10302,1030,1,1,3,1,8000,-9,-9,8000,2022,1,0,7 +10310,1031,1,1,1,9,8000,1000,200,6800,2022,6,1300,4 +10311,1031,1,1,2,10,8500,1000,400,7100,2022,7,1300,6 +10312,1031,1,1,3,1,9000,1000,600,7400,2022,1,0,8 +10320,1032,1,1,1,10,9000,2000,200,6800,2022,7,1400,5 +10321,1032,1,2,2,11,9500,2000,400,7100,2022,8,1400,7 +10322,1032,1,1,3,1,10000,2000,600,7400,2022,1,0,9 +10323,1032,2,1,3,13,10500,2000,800,7700,2022,10,1400,11 +10330,1033,3,1,1,11,10000,0,200,9800,2022,8,1500,6 +10331,1033,3,1,2,1,10500,0,400,10100,2022,1,0,8 +10332,1033,3,1,3,1,11000,0,600,10400,2022,1,0,10 +10340,1034,1,1,1,12,11000,1000,200,9800,2022,9,1600,7 +10341,1034,1,1,2,1,11500,1000,400,10100,2022,1,0,9 +10342,1034,1,1,3,1,12000,1000,600,10400,2022,1,0,11 +10350,1035,1,1,1,-8,12000,-9,-9,12000,2022,-8,1700,8 +10351,1035,1,1,2,2,12500,-9,-9,12500,2022,11,1700,10 +10352,1035,1,1,3,1,13000,-9,-9,13000,2022,1,0,12 +10360,1036,1,1,1,2,4000,0,200,3800,2023,11,1800,9 +10361,1036,1,2,2,3,4500,0,400,4100,2023,12,1800,11 +10362,1036,1,1,3,1,5000,0,600,4400,2023,1,0,13 +10370,1037,1,1,1,3,5000,1000,200,3800,2023,12,1900,10 +10371,1037,1,1,2,4,5500,1000,400,4100,2023,13,1900,12 +10372,1037,1,1,3,1,6000,1000,600,4400,2023,1,0,14 +10380,1038,1,1,1,4,6000,2000,200,3800,2023,13,2000,11 +10381,1038,1,1,2,1,6500,2000,400,4100,2023,1,0,13 +10382,1038,1,1,3,1,7000,2000,600,4400,2023,1,0,1 +10390,1039,1,1,1,5,7000,0,200,6800,2023,1,2100,12 +10391,1039,1,1,2,1,7500,0,400,7100,2023,1,0,14 +10392,1039,1,1,3,1,8000,0,600,7400,2023,1,0,2 +10400,1040,1,1,1,6,8000,-9,-9,8000,2023,2,1200,13 +10401,1040,1,2,2,7,8500,-9,-9,8500,2023,3,1200,1 +10402,1040,1,1,3,1,9000,-9,-9,9000,2023,1,0,3 +10403,1040,2,1,3,9,9500,-9,-9,9500,2023,5,1200,5 +10410,1041,1,1,1,7,9000,2000,200,6800,2023,3,1300,14 +10411,1041,1,1,2,8,9500,2000,400,7100,2023,4,1300,2 +10412,1041,1,1,3,1,10000,2000,600,7400,2023,1,0,4 +10420,1042,1,1,1,-8,10000,0,200,9800,2023,-8,1400,1 +10421,1042,1,1,2,9,10500,0,400,10100,2023,5,1400,3 +10422,1042,1,1,3,1,11000,0,600,10400,2023,1,0,5 +10430,1043,3,1,1,9,11000,1000,200,9800,2023,5,1500,2 +10431,1043,3,1,2,1,11500,1000,400,10100,2023,1,0,4 +10432,1043,3,1,3,1,12000,1000,600,10400,2023,1,0,6 +10440,1044,1,1,1,10,12000,2000,200,9800,2023,6,1600,3 +10441,1044,1,2,2,1,12500,2000,400,10100,2023,1,0,5 +10442,1044,1,1,3,1,13000,2000,600,10400,2023,1,0,7 +10450,1045,1,1,1,11,4000,-9,-9,4000,2024,7,1700,4 +10451,1045,1,1,2,12,4500,-9,-9,4500,2024,8,1700,6 +10452,1045,1,1,3,1,5000,-9,-9,5000,2024,1,0,8 +10460,1046,1,1,1,12,5000,1000,200,3800,2024,8,1800,5 +10461,1046,1,1,2,13,5500,1000,400,4100,2024,9,1800,7 +10462,1046,1,1,3,1,6000,1000,600,4400,2024,1,0,9 +10470,1047,1,1,1,13,6000,2000,200,3800,2024,9,1900,6 +10471,1047,1,1,2,2,6500,2000,400,4100,2024,10,1900,8 +10472,1047,1,1,3,1,7000,2000,600,4400,2024,1,0,10 +10480,1048,1,1,1,2,7000,0,200,6800,2024,10,2000,7 +10481,1048,1,2,2,1,7500,0,400,7100,2024,1,0,9 +10482,1048,1,1,3,1,8000,0,600,7400,2024,1,0,11 +10483,1048,2,1,3,5,8500,0,800,7700,2024,13,2000,13 +10490,1049,1,1,1,-8,8000,1000,200,6800,2024,-8,2100,8 +10491,1049,1,1,2,1,8500,1000,400,7100,2024,1,0,10 +10492,1049,1,1,3,1,9000,1000,600,7400,2024,1,0,12 +10500,1050,1,1,1,4,9000,-9,-9,9000,2024,12,1200,9 +10501,1050,1,1,2,5,9500,-9,-9,9500,2024,13,1200,11 +10502,1050,1,1,3,1,10000,-9,-9,10000,2024,1,0,13 +10510,1051,1,1,1,5,10000,0,200,9800,2024,13,1300,10 +10511,1051,1,1,2,6,10500,0,400,10100,2024,1,1300,12 +10512,1051,1,1,3,1,11000,0,600,10400,2024,1,0,14 +10520,1052,1,1,1,6,11000,1000,200,9800,2024,1,1400,11 +10521,1052,1,2,2,7,11500,1000,400,10100,2024,2,1400,13 +10522,1052,1,1,3,1,12000,1000,600,10400,2024,1,0,1 +10530,1053,3,1,1,7,12000,2000,200,9800,2024,2,1500,12 +10531,1053,3,1,2,1,12500,2000,400,10100,2024,1,0,14 +10532,1053,3,1,3,1,13000,2000,600,10400,2024,1,0,2 +10540,1054,1,1,1,8,4000,0,200,3800,2022,3,1600,13 +10541,1054,1,1,2,1,4500,0,400,4100,2022,1,0,1 +10542,1054,1,1,3,1,5000,0,600,4400,2022,1,0,3 +10550,1055,1,1,1,9,5000,-9,-9,5000,2022,4,1700,14 +10551,1055,1,1,2,10,5500,-9,-9,5500,2022,5,1700,2 +10552,1055,1,1,3,1,6000,-9,-9,6000,2022,1,0,4 +10560,1056,1,1,1,-8,6000,2000,200,3800,2022,-8,1800,1 +10561,1056,1,2,2,11,6500,2000,400,4100,2022,6,1800,3 +10562,1056,1,1,3,1,7000,2000,600,4400,2022,1,0,5 +10563,1056,2,1,3,13,7500,2000,800,4700,2022,8,1800,7 +10570,1057,1,1,1,11,7000,0,200,6800,2022,6,1900,2 +10571,1057,1,1,2,12,7500,0,400,7100,2022,7,1900,4 +10572,1057,1,1,3,1,8000,0,600,7400,2022,1,0,6 +10580,1058,1,1,1,12,8000,1000,200,6800,2022,7,2000,3 +10581,1058,1,1,2,1,8500,1000,400,7100,2022,1,0,5 +10582,1058,1,1,3,1,9000,1000,600,7400,2022,1,0,7 +10590,1059,1,1,1,13,9000,2000,200,6800,2022,8,2100,4 +10591,1059,1,1,2,1,9500,2000,400,7100,2022,1,0,6 +10592,1059,1,1,3,1,10000,2000,600,7400,2022,1,0,8 +10600,1060,1,1,1,2,10000,-9,-9,10000,2022,9,1200,5 +10601,1060,1,2,2,3,10500,-9,-9,10500,2022,10,1200,7 +10602,1060,1,1,3,1,11000,-9,-9,11000,2022,1,0,9 +10610,1061,1,1,1,3,11000,1000,200,9800,2022,10,1300,6 +10611,1061,1,1,2,4,11500,1000,400,10100,2022,11,1300,8 +10612,1061,1,1,3,1,12000,1000,600,10400,2022,1,0,10 +10620,1062,1,1,1,4,12000,2000,200,9800,2022,11,1400,7 +10621,1062,1,1,2,5,12500,2000,400,10100,2022,12,1400,9 +10622,1062,1,1,3,1,13000,2000,600,10400,2022,1,0,11 +10630,1063,3,1,1,-8,4000,0,200,3800,2023,-8,1500,8 +10631,1063,3,1,2,1,4500,0,400,4100,2023,1,0,10 +10632,1063,3,1,3,1,5000,0,600,4400,2023,1,0,12 diff --git a/packages/microcosm-graph/tests/fixtures/parity/uk_spine/sources/property_purchase_targets.json b/packages/microcosm-graph/tests/fixtures/parity/uk_spine/sources/property_purchase_targets.json index 626cc85c32..80a98038fd 100644 --- a/packages/microcosm-graph/tests/fixtures/parity/uk_spine/sources/property_purchase_targets.json +++ b/packages/microcosm-graph/tests/fixtures/parity/uk_spine/sources/property_purchase_targets.json @@ -27,7 +27,7 @@ "minimum_price": 1000.0, "property_type": "additional_residential", "transactions": 27.097631578947365, - "value": 179110.4255908138 + "value": 183301.81586439192 }, "derivation": {}, "non_residential": { @@ -57,7 +57,7 @@ ], "minimum_price": 1000.0, "property_type": "non_residential", - "transactions": 9.064159936519806, - "value": 111830.66958141114 + "transactions": 9.176436238560177, + "value": 112796.95808421359 } } diff --git a/packages/microcosm-graph/tests/fixtures/parity/uk_spine/sources/property_rental_facts.json b/packages/microcosm-graph/tests/fixtures/parity/uk_spine/sources/property_rental_facts.json index 34ab284d89..44b3e68081 100644 --- a/packages/microcosm-graph/tests/fixtures/parity/uk_spine/sources/property_rental_facts.json +++ b/packages/microcosm-graph/tests/fixtures/parity/uk_spine/sources/property_rental_facts.json @@ -1,90 +1,90 @@ { "expense_landlords_by_type": { - "legal_management_and_professional_fees": 68.27759643273899, - "non_residential_finance_costs": 68.27759643273899, - "other_allowable_expenses": 68.27759643273899, - "rent_rates_and_insurance": 68.27759643273899, - "repairs_and_maintenance": 68.27759643273899, - "residential_finance_costs": 68.27759643273899, - "services_including_wages": 68.27759643273899 + "legal_management_and_professional_fees": 68.73493528177121, + "non_residential_finance_costs": 68.73493528177121, + "other_allowable_expenses": 68.73493528177121, + "rent_rates_and_insurance": 68.73493528177121, + "repairs_and_maintenance": 68.73493528177121, + "residential_finance_costs": 68.73493528177121, + "services_including_wages": 68.73493528177121 }, "expenses": { - "all": 32716.81002019269, - "individual": 32389.64191999076, - "partnership": 327.1681002019286 + "all": 32249.572175972167, + "individual": 31927.076454212445, + "partnership": 322.4957217597221 }, "expenses_by_type": { - "legal_management_and_professional_fees": 3916.602293064794, - "non_residential_finance_costs": 1252.1829446577347, - "other_allowable_expenses": 4312.028486114605, - "rent_rates_and_insurance": 3587.080465523285, - "repairs_and_maintenance": 6034.956898688782, - "residential_finance_costs": 12069.913797377563, - "services_including_wages": 1544.0451347659284 + "legal_management_and_professional_fees": 3860.66820869192, + "non_residential_finance_costs": 1234.3001724904457, + "other_allowable_expenses": 4250.447210531009, + "rent_rates_and_insurance": 3535.8523738260133, + "repairs_and_maintenance": 5948.770004258463, + "residential_finance_costs": 11897.540008516926, + "services_including_wages": 1521.9941976573916 }, "landlords": { - "all": 136.55519286547798, - "individual": 135.1896409368232, - "partnership": 1.3655519286547815 + "all": 137.46987056354243, + "individual": 136.095171857907, + "partnership": 1.3746987056354385 }, "receipts": { - "all": 52346.8960323083, - "individual": 51823.42707198522, - "partnership": 523.46896032308 + "all": 51599.31548155547, + "individual": 51083.322326739915, + "partnership": 515.9931548155582 }, "receipts_bands": [ { - "landlords": 61.63949677955603, + "landlords": 62.052372129376785, "lower_bound": 0, "upper_bound": 10000 }, { - "landlords": 40.77689786955245, + "landlords": 41.05003079328003, "lower_bound": 10000, "upper_bound": 20000 }, { - "landlords": 15.646949182502686, + "landlords": 15.75175600207257, "lower_bound": 20000, "upper_bound": 30000 }, { - "landlords": 7.112249628410311, + "landlords": 7.159889091851168, "lower_bound": 30000, "upper_bound": 40000 }, { - "landlords": 3.793199801818832, + "landlords": 3.818607515653956, "lower_bound": 40000, "upper_bound": 50000 }, { - "landlords": 2.3707498761367707, + "landlords": 2.386629697283723, "lower_bound": 50000, "upper_bound": 60000 }, { - "landlords": 1.4224499256820622, + "landlords": 1.4319778183702336, "lower_bound": 60000, "upper_bound": 70000 }, { - "landlords": 0.948299950454708, + "landlords": 0.954651878913489, "lower_bound": 70000, "upper_bound": 80000 }, { - "landlords": 0.474149975227354, + "landlords": 0.4773259394567445, "lower_bound": 80000, "upper_bound": 90000 }, { - "landlords": 0.474149975227354, + "landlords": 0.4773259394567445, "lower_bound": 90000, "upper_bound": 100000 }, { - "landlords": 1.896599900909416, + "landlords": 1.909303757826978, "lower_bound": 100000, "upper_bound": null } diff --git a/packages/microcosm-graph/tests/fixtures/parity/uk_spine/uk_spine.json b/packages/microcosm-graph/tests/fixtures/parity/uk_spine/uk_spine.json index aa8f8946fa..1ca04ea414 100644 --- a/packages/microcosm-graph/tests/fixtures/parity/uk_spine/uk_spine.json +++ b/packages/microcosm-graph/tests/fixtures/parity/uk_spine/uk_spine.json @@ -1 +1 @@ -{"country":"uk","nodes":[{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Load the source-bound UK FRS root population.","id":"create_uk_frs","inputs":[],"kernel":"uk.create@1","mass":"conserve","outputs":[{"column":"age","dtype":"int64","entity":"person","ownership":"produced","rows":"all"},{"column":"gender","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"months_since_last_birthday","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"marital_status","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"hours_worked","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"care_hours","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"frs_care_hours_in_household","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"is_household_head","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"is_benunit_head","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"is_parent","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"is_blind","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"is_uc_claimant","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"is_claimant_or_partner","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"is_hbai_dependent_child","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"uc_is_in_startup_period","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"uc_is_in_gainful_self_employment","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"rent_paid_as_boarder","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"rent_paid_as_lodger","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"employment_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"self_employment_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"trading_loss","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"loss_relief","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"ni_class_4_losses_brought_forward","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"private_pension_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"annuity_and_trust_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"individual_savings_account_interest_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"savings_interest_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"dividend_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"other_investment_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"stands_as_sole_owner_or_partner_of_company","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"is_engaged_in_owned_company_trade","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"owned_company_is_main_employment","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"owned_company_carries_on_trade","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"owned_company_carries_on_property_business","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"owned_company_income_share","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"property_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"reports_rent_from_other_property","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"maintenance_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"spousal_maintenance_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"miscellaneous_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"private_transfer_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"lump_sum_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"student_loan_repayments","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"statutory_sick_pay","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"statutory_maternity_pay","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"statutory_paternity_pay","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"student_loans","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"access_fund","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"education_grants","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"healthy_start_vouchers","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"free_school_breakfasts","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"free_school_fruit_veg","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"free_school_meals","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"council_tax_benefit_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"maintenance_expenses","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"childcare_expenses","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"personal_pension_contributions","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"employee_pension_contributions","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"pension_contributions_via_salary_sacrifice","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"salary_sacrifice_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"salary_sacrifice_asked","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"frs_bonus_amount","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"frs_company_car_price_band","dtype":"int64","entity":"person","ownership":"produced","rows":"all"},{"column":"frs_company_car_fuel_code","dtype":"int64","entity":"person","ownership":"produced","rows":"all"},{"column":"frs_company_car_private_fuel","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"frs_company_car_contribution","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"child_benefit_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"income_support_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"housing_benefit_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"attendance_allowance_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"dla_sc_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"dla_m_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"iidb_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"carers_allowance_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"would_claim_carers_allowance","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"sda_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"afcs_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"ssmg_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"pension_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"child_tax_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"working_tax_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"state_pension_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"winter_fuel_allowance_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"incapacity_benefit_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"universal_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"pip_m_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"pip_dl_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"jsa_contrib_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"jsa_income_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"esa_contrib_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"esa_income_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"esa_includes_support_component","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"bsp_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"war_widows_pension_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"widowed_parents_allowance_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"frs_benunit_capital","dtype":"float64","entity":"benunit","ownership":"produced","rows":"all"},{"column":"is_married","dtype":"bool","entity":"benunit","ownership":"produced","rows":"all"},{"column":"dependent_children","dtype":"int64","entity":"benunit","ownership":"produced","rows":"all"},{"column":"liable_for_share_of_household_rent","dtype":"bool","entity":"benunit","ownership":"produced","rows":"all"},{"column":"region","dtype":"string","entity":"household","ownership":"produced","rows":"all"},{"column":"tenure_type","dtype":"string","entity":"household","ownership":"produced","rows":"all"},{"column":"accommodation_type","dtype":"string","entity":"household","ownership":"produced","rows":"all"},{"column":"num_bedrooms","dtype":"int64","entity":"household","ownership":"produced","rows":"all"},{"column":"council_tax_reported","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"council_tax_band","dtype":"string","entity":"household","ownership":"produced","rows":"all"},{"column":"council_tax_rebate","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"council_tax_single_adult_raw","dtype":"int64","entity":"household","ownership":"produced","rows":"all"},{"column":"water_and_sewerage_charges","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"domestic_rates","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"rent","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"subrent","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"mortgage_interest_repayment","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"mortgage_capital_repayment","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"structural_insurance_payments","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"housing_service_charges","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"external_child_payments","dtype":"float64","entity":"household","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"sample_fraction":1.0,"sample_seed":578,"stage_contract_sha256":"879fdd6e1e5832b94af4259b1028f852470bbe2c3ab19b61ce5f92a2e9c12ec4","time_period":"2024"},"population":null,"sources":["frs"],"structural":"create","weights":null},{"base":"create_uk_frs","citation":"","description":"Ownership boundary for the source-assembling root stage.","id":"frs_spine.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"base":null,"citation":"","description":"Claim the cells assembled by the UK FRS root transform.","id":"frs_spine","inputs":[],"kernel":"uk.claim@1","mass":"conserve","outputs":[{"column":"age","dtype":"int64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"gender","dtype":"string","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"months_since_last_birthday","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"marital_status","dtype":"string","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"hours_worked","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"care_hours","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"frs_care_hours_in_household","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_household_head","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_benunit_head","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_parent","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_blind","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_uc_claimant","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_claimant_or_partner","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_hbai_dependent_child","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"uc_is_in_startup_period","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"uc_is_in_gainful_self_employment","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"rent_paid_as_boarder","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"rent_paid_as_lodger","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"employment_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"self_employment_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"trading_loss","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"loss_relief","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"ni_class_4_losses_brought_forward","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"private_pension_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"annuity_and_trust_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"individual_savings_account_interest_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"savings_interest_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"dividend_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"other_investment_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"stands_as_sole_owner_or_partner_of_company","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_engaged_in_owned_company_trade","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"owned_company_is_main_employment","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"owned_company_carries_on_trade","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"owned_company_carries_on_property_business","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"owned_company_income_share","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"property_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"reports_rent_from_other_property","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"maintenance_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"spousal_maintenance_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"miscellaneous_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"private_transfer_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"lump_sum_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"student_loan_repayments","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"statutory_sick_pay","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"statutory_maternity_pay","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"statutory_paternity_pay","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"student_loans","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"access_fund","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"education_grants","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"healthy_start_vouchers","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"free_school_breakfasts","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"free_school_fruit_veg","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"free_school_meals","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"council_tax_benefit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"maintenance_expenses","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"childcare_expenses","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"personal_pension_contributions","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"employee_pension_contributions","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"pension_contributions_via_salary_sacrifice","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"salary_sacrifice_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"salary_sacrifice_asked","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"frs_bonus_amount","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"frs_company_car_price_band","dtype":"int64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"frs_company_car_fuel_code","dtype":"int64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"frs_company_car_private_fuel","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"frs_company_car_contribution","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"child_benefit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"income_support_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"housing_benefit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"attendance_allowance_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"dla_sc_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"dla_m_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"iidb_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"carers_allowance_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"would_claim_carers_allowance","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"sda_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"afcs_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"ssmg_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"pension_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"child_tax_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"working_tax_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"state_pension_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"winter_fuel_allowance_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"incapacity_benefit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"universal_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"pip_m_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"pip_dl_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"jsa_contrib_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"jsa_income_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"esa_contrib_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"esa_income_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"esa_includes_support_component","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"bsp_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"war_widows_pension_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"widowed_parents_allowance_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"frs_benunit_capital","dtype":"float64","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_married","dtype":"bool","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"dependent_children","dtype":"int64","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"liable_for_share_of_household_rent","dtype":"bool","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"region","dtype":"string","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"tenure_type","dtype":"string","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"accommodation_type","dtype":"string","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"num_bedrooms","dtype":"int64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"council_tax_reported","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"council_tax_band","dtype":"string","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"council_tax_rebate","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"council_tax_single_adult_raw","dtype":"int64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"water_and_sewerage_charges","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"domestic_rates","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"rent","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"subrent","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"mortgage_interest_repayment","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"mortgage_capital_repayment","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"structural_insurance_payments","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"housing_service_charges","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"external_child_payments","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"}],"params":{},"population":"frs_spine.boundary","sources":[],"structural":"none","weights":null},{"base":"frs_spine.boundary","citation":"","description":"Ownership boundary before age_tail rewrites.","id":"age_tail.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage age_tail.","id":"age_tail","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["external_child_payments","region"],"entity":"household","rows":"all"},{"columns":["gender"],"entity":"person","rows":"all"}],"kernel":"uk.stage.age_tail@1","mass":"conserve","outputs":[{"column":"age","dtype":"int64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"age_tail","stage_contract_sha256":"963a34f38caede2525e3b8735f904bb70a1bbef5a272f0eefd4346343444484f","time_period":"2024"},"population":"age_tail.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage frs_relationships.","id":"frs_relationships","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["region"],"entity":"household","rows":"all"},{"columns":["age","is_household_head"],"entity":"person","rows":"all"}],"kernel":"uk.stage.frs_relationships@1","mass":"conserve","outputs":[{"column":"relationship_to_head","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"ons_family_role","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"ons_family_index","dtype":"int64","entity":"person","ownership":"produced","rows":"all"},{"column":"is_looked_after_by_local_authority","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"ons_household_type","dtype":"string","entity":"household","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"frs_relationships","stage_contract_sha256":"85aca92dcc0590c2147cfc7e0886664f26cd8e1bc0b1de728d11fa567e9fd8b4","time_period":"2024"},"population":"age_tail.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage frs_employment.","id":"frs_employment","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["ons_household_type","region"],"entity":"household","rows":"all"},{"columns":["age"],"entity":"person","rows":"all"}],"kernel":"uk.stage.frs_employment@1","mass":"conserve","outputs":[{"column":"employment_status","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"employment_sector","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"sic_industry_division","dtype":"int64","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"frs_employment","stage_contract_sha256":"ddbefaf05b44788d794a6e4b0e8926c14318d66e50d2f11f50ca549538bbf60c","time_period":"2024"},"population":"age_tail.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage frs_council_tax.","id":"frs_council_tax","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["region"],"entity":"household","rows":"all"},{"columns":["age","sic_industry_division"],"entity":"person","rows":"all"}],"kernel":"uk.stage.frs_council_tax@1","mass":"conserve","outputs":[{"column":"council_tax","dtype":"float64","entity":"household","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"frs_council_tax","stage_contract_sha256":"06804f54c12d25f2afcb31eec27789802f663cb42689a932dc32f3ba5fc05fff","time_period":"2024"},"population":"age_tail.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage frs_disability.","id":"frs_disability","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["council_tax","region"],"entity":"household","rows":"all"},{"columns":["afcs_reported","age","attendance_allowance_reported","dla_m_reported","dla_sc_reported","esa_contrib_reported","esa_income_reported","iidb_reported","incapacity_benefit_reported","pip_dl_reported","pip_m_reported","sda_reported"],"entity":"person","rows":"all"}],"kernel":"uk.stage.frs_disability@1","mass":"conserve","outputs":[{"column":"aa_category","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"dla_sc_category","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"dla_m_category","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"pip_m_category","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"pip_dl_category","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"is_disabled_for_benefits","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"is_enhanced_disabled_for_benefits","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"is_severely_disabled_for_benefits","dtype":"bool","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"frs_disability","stage_contract_sha256":"ac500b4cb1bc04d4fb72d198592dd376d61da8c150921a6ac53914ac18be0508","time_period":"2024"},"population":"age_tail.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage frs_education.","id":"frs_education","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["region"],"entity":"household","rows":"all"},{"columns":["age","esa_contrib_reported","esa_income_reported","is_severely_disabled_for_benefits","jsa_contrib_reported","jsa_income_reported","universal_credit_reported"],"entity":"person","rows":"all"}],"kernel":"uk.stage.frs_education@1","mass":"conserve","outputs":[{"column":"current_education","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"highest_education","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"is_in_non_advanced_education","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"is_in_approved_training","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"age_started_or_accepted_current_education_or_training","dtype":"int64","entity":"person","ownership":"produced","rows":"all"},{"column":"is_before_universal_credit_qualifying_young_person_terminal_date","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"adult_ema","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"child_ema","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"receives_benefits_in_own_right","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"reports_outstanding_student_loan","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"age_left_full_time_education","dtype":"int64","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"frs_education","stage_contract_sha256":"592ddc77703f19bb3e1d48b6aecffc98b4e2abd3379db84a06e011bde4fa5549","time_period":"2024"},"population":"age_tail.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage frs_legacy_proxies.","id":"frs_legacy_proxies","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education"],"entity":"person","rows":"all"}],"kernel":"uk.stage.frs_legacy_proxies@1","mass":"conserve","outputs":[{"column":"legacy_jobseeker_proxy","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"esa_health_condition_proxy","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"esa_support_group_proxy","dtype":"bool","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"frs_legacy_proxies","stage_contract_sha256":"1ecf761cf3fa7180da15659e138e67a8654e58272b4fde28344aa27a874ad0aa","time_period":"2024"},"population":"age_tail.boundary","sources":["frs"],"structural":"none","weights":null},{"base":"age_tail.boundary","citation":"","description":"Ownership boundary before frs_education_grant_split rewrites.","id":"frs_education_grant_split.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage frs_education_grant_split.","id":"frs_education_grant_split","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy"],"entity":"person","rows":"all"}],"kernel":"uk.stage.frs_education_grant_split@1","mass":"conserve","outputs":[{"column":"disabled_students_allowance_eligible_expenses","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"education_grants","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"frs_education_grant_split","stage_contract_sha256":"8718f014b90498c2cc7c754289775ca4a41452d9b978d8cbc5f34b64cbdc7df2","time_period":"2024"},"population":"frs_education_grant_split.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage frs_take_up.","id":"frs_take_up","inputs":[{"columns":["frs_benunit_capital","is_married"],"entity":"benunit","rows":"all"},{"columns":["region"],"entity":"household","rows":"all"},{"columns":["age","child_benefit_reported","education_grants","is_uc_claimant","months_since_last_birthday","pension_credit_reported","universal_credit_reported"],"entity":"person","rows":"all"}],"kernel":"uk.stage.frs_take_up@1","mass":"conserve","outputs":[{"column":"would_claim_child_benefit","dtype":"bool","entity":"benunit","ownership":"produced","rows":"all"},{"column":"child_benefit_opts_out","dtype":"bool","entity":"benunit","ownership":"produced","rows":"all"},{"column":"would_claim_pc","dtype":"bool","entity":"benunit","ownership":"produced","rows":"all"},{"column":"would_claim_uc","dtype":"bool","entity":"benunit","ownership":"produced","rows":"all"},{"column":"would_claim_tfc","dtype":"bool","entity":"benunit","ownership":"produced","rows":"all"},{"column":"would_claim_extended_childcare","dtype":"bool","entity":"benunit","ownership":"produced","rows":"all"},{"column":"would_claim_universal_childcare","dtype":"bool","entity":"benunit","ownership":"produced","rows":"all"},{"column":"would_claim_targeted_childcare","dtype":"bool","entity":"benunit","ownership":"produced","rows":"all"},{"column":"would_claim_uc_childcare","dtype":"bool","entity":"benunit","ownership":"produced","rows":"all"},{"column":"maximum_extended_childcare_hours_usage","dtype":"float64","entity":"benunit","ownership":"produced","rows":"all"},{"column":"max_free_entitlement_hours_used","dtype":"float64","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"frs_take_up","stage_contract_sha256":"78aec80408c50455b37308e5a977fb70df3ecf915d6c1e8f80715ad9b58e62cf","time_period":"2024"},"population":"frs_education_grant_split.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage frs_person_draws.","id":"frs_person_draws","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["region"],"entity":"household","rows":"all"},{"columns":["age","employment_income","employment_status","max_free_entitlement_hours_used"],"entity":"person","rows":"all"}],"kernel":"uk.stage.frs_person_draws@1","mass":"conserve","outputs":[{"column":"would_claim_marriage_allowance","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"would_claim_scp","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"attends_private_school_random_draw","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"tax_free_childcare_spend_routed_share","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"is_apprentice","dtype":"bool","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"frs_person_draws","stage_contract_sha256":"112c502d702c640dedbc2dca7d1cfe5ae43e0f0e3ba6acfe49c738dbbfb7e693","time_period":"2024"},"population":"frs_education_grant_split.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage frs_household_draws.","id":"frs_household_draws","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["region"],"entity":"household","rows":"all"},{"columns":["age","is_apprentice"],"entity":"person","rows":"all"}],"kernel":"uk.stage.frs_household_draws@1","mass":"conserve","outputs":[{"column":"household_owns_tv","dtype":"bool","entity":"household","ownership":"produced","rows":"all"},{"column":"would_evade_tv_licence_fee","dtype":"bool","entity":"household","ownership":"produced","rows":"all"},{"column":"main_residential_property_purchased_is_first_home","dtype":"bool","entity":"household","ownership":"produced","rows":"all"},{"column":"property_purchased","dtype":"bool","entity":"household","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"frs_household_draws","stage_contract_sha256":"c74c63b09264319c4bf0049dabba00ecd0ce660beb7b53d6dae71518434bc949","time_period":"2024"},"population":"frs_education_grant_split.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage frs_brma.","id":"frs_brma","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice"],"entity":"person","rows":"all"}],"kernel":"uk.stage.frs_brma@1","mass":"conserve","outputs":[{"column":"brma","dtype":"string","entity":"household","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"frs_brma","stage_contract_sha256":"4285376b37299d375ed583b7f6b1747bd8b7cb1c8c0d19a36481156b5314a854","time_period":"2024"},"population":"frs_education_grant_split.boundary","sources":["frs"],"structural":"none","weights":null},{"base":"frs_education_grant_split.boundary","citation":"","description":"Freeze the assembled-spine gate population.","id":"frs_brma.checkpoint","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage frs_hmrc_spine_leaves.","id":"frs_hmrc_spine_leaves","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["brma","region"],"entity":"household","rows":"all"},{"columns":["age","employment_income"],"entity":"person","rows":"all"}],"kernel":"uk.stage.frs_hmrc_spine_leaves@1","mass":"conserve","outputs":[{"column":"hmrc_spi_pay","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"hmrc_spi_unemployment_benefit_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"hmrc_spi_incapacity_benefit_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"ossben_identifiable_subset","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"srp_regular_code5","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"employer_pension_contributions","dtype":"float64","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"frs_hmrc_spine_leaves","stage_contract_sha256":"6b2e0264fbac47dae5e1fc4fa9e980c5c2caf7f12f165129649a559f3ad7a154","time_period":"2024"},"population":"frs_brma.checkpoint","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage frs_annual_income_spells.","id":"frs_annual_income_spells","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["region"],"entity":"household","rows":"all"},{"columns":["age","employer_pension_contributions","employment_income","gender","self_employment_income"],"entity":"person","rows":"all"}],"kernel":"uk.stage.frs_annual_income_spells@1","mass":"conserve","outputs":[{"column":"employment_income_annual_share","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"employment_income_other_spells","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"self_employment_income_annual_share","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"self_employment_income_other_spells","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"private_pension_income_annual_share","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"contributory_benefits_annual_share","dtype":"float64","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"frs_annual_income_spells","stage_contract_sha256":"2475738aee1e2bba3d93a759ee77b7b1a62e6a87feb07ac7b86c9150d2769009","time_period":"2024"},"population":"frs_brma.checkpoint","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":"frs_brma.checkpoint","citation":"","description":"Run structural UK stage spi_support_channel.","id":"spi_support_channel","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share"],"entity":"person","rows":"all"}],"kernel":"uk.stage.expand.spi_support_channel@1","mass":"declared","outputs":[],"params":{"expand_cells":[["person","person_source_id","int64"],["person","person_support_channel","string"],["person","person_support_clone_index","int64"],["benunit","benunit_source_id","int64"],["benunit","benunit_support_channel","string"],["benunit","benunit_support_clone_index","int64"],["household","source_household_id","int64"],["household","source_year","int64"],["household","source_household_key","string"],["household","household_source_id","int64"],["household","household_support_channel","string"],["household","household_support_clone_index","int64"],["household","household_is_spi_synthetic","bool"]],"expand_weight_entity":"household","expand_weight_kind":"importance","numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"spi_support_channel","stage_contract_sha256":"2c682605139c0a8f96e8ba45a2c03f506d3f758ef437841066a8fdb8b74269b6","time_period":"2024"},"population":null,"sources":["frs"],"structural":"expand","weights":null},{"base":null,"citation":"","description":"Own the cells materialized by spi_support_channel.","id":"spi_support_channel.owned","inputs":[],"kernel":"uk.claim@1","mass":"conserve","outputs":[{"column":"person_source_id","dtype":"int64","entity":"person","ownership":"produced","rows":"all"},{"column":"person_support_channel","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"person_support_clone_index","dtype":"int64","entity":"person","ownership":"produced","rows":"all"},{"column":"benunit_source_id","dtype":"int64","entity":"benunit","ownership":"produced","rows":"all"},{"column":"benunit_support_channel","dtype":"string","entity":"benunit","ownership":"produced","rows":"all"},{"column":"benunit_support_clone_index","dtype":"int64","entity":"benunit","ownership":"produced","rows":"all"},{"column":"source_household_id","dtype":"int64","entity":"household","ownership":"produced","rows":"all"},{"column":"source_year","dtype":"int64","entity":"household","ownership":"produced","rows":"all"},{"column":"source_household_key","dtype":"string","entity":"household","ownership":"produced","rows":"all"},{"column":"household_source_id","dtype":"int64","entity":"household","ownership":"produced","rows":"all"},{"column":"household_support_channel","dtype":"string","entity":"household","ownership":"produced","rows":"all"},{"column":"household_support_clone_index","dtype":"int64","entity":"household","ownership":"produced","rows":"all"},{"column":"household_is_spi_synthetic","dtype":"bool","entity":"household","ownership":"produced","rows":"all"}],"params":{"materialized_expand_outputs":["person.person_source_id","person.person_support_channel","person.person_support_clone_index","benunit.benunit_source_id","benunit.benunit_support_channel","benunit.benunit_support_clone_index","household.source_household_id","household.source_year","household.source_household_key","household.household_source_id","household.household_support_channel","household.household_support_clone_index","household.household_is_spi_synthetic"]},"population":"spi_support_channel","sources":[],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":"spi_support_channel","citation":"","description":"Run structural UK stage spi_income_band_donors.","id":"spi_income_band_donors","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index"],"entity":"person","rows":"all"}],"kernel":"uk.stage.expand.spi_income_band_donors@1","mass":"declared","outputs":[],"params":{"expand_cells":[["person","person_source_id","int64"],["person","person_support_channel","string"],["person","person_support_clone_index","int64"],["benunit","benunit_source_id","int64"],["benunit","benunit_support_channel","string"],["benunit","benunit_support_clone_index","int64"],["household","household_source_id","int64"],["household","household_support_channel","string"],["household","household_support_clone_index","int64"],["household","household_is_spi_synthetic","bool"],["household","household_is_spi_income_band_donor","bool"],["household","spi_income_band_donor_lower_bound","float64"],["person","person_is_spi_income_band_carrier","bool"]],"expand_weight_entity":"household","expand_weight_kind":"importance","numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"spi_income_band_donors","stage_contract_sha256":"4754ace499836c44b00c1c53a9ef5fd686d3a29108d0d546d7a11dcc37ee8807","time_period":"2024"},"population":null,"sources":["frs"],"structural":"expand","weights":null},{"base":null,"citation":"","description":"Own the cells materialized by spi_income_band_donors.","id":"spi_income_band_donors.owned","inputs":[],"kernel":"uk.claim@1","mass":"conserve","outputs":[{"column":"person_source_id","dtype":"int64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"person_support_channel","dtype":"string","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"person_support_clone_index","dtype":"int64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"benunit_source_id","dtype":"int64","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"benunit_support_channel","dtype":"string","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"benunit_support_clone_index","dtype":"int64","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"household_source_id","dtype":"int64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"household_support_channel","dtype":"string","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"household_support_clone_index","dtype":"int64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"household_is_spi_synthetic","dtype":"bool","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"household_is_spi_income_band_donor","dtype":"bool","entity":"household","ownership":"produced","rows":"all"},{"column":"spi_income_band_donor_lower_bound","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"person_is_spi_income_band_carrier","dtype":"bool","entity":"person","ownership":"produced","rows":"all"}],"params":{"materialized_expand_outputs":["household.household_is_spi_income_band_donor","household.spi_income_band_donor_lower_bound","person.person_is_spi_income_band_carrier"]},"population":"spi_income_band_donors","sources":[],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage hmrc_spi_income_spine.","id":"hmrc_spi_income_spine","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","rent_paid_as_boarder","rent_paid_as_lodger","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","maintenance_expenses","childcare_expenses","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","ssmg_reported","incapacity_benefit_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","ossben_identifiable_subset","srp_regular_code5","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier"],"entity":"person","rows":"all"}],"kernel":"uk.stage.hmrc_spi_income_spine@1","mass":"conserve","outputs":[{"column":"charitable_investment_gifts","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"gift_aid","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"other_investment_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"hmrc_spi_employment_benefits","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"hmrc_spi_employment_expenses","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"hmrc_spi_other_social_security_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"hmrc_spi_taxable_termination_pay","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"hmrc_spi_miscellaneous_employment_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"hmrc_spi_other_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"hmrc_spi_state_pension_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"property_finance_costs","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"hmrc_spi_employed_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"hmrc_spi_total_earned_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"hmrc_spi_total_investment_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"hmrc_spi_assessable_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"employment_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"self_employment_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"savings_interest_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"dividend_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"private_pension_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"property_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"employee_pension_contributions","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"employer_pension_contributions","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"personal_pension_contributions","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"pension_contributions_via_salary_sacrifice","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"individual_savings_account_interest_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"universal_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"pension_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"child_benefit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"housing_benefit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"income_support_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"working_tax_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"child_tax_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"attendance_allowance_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"state_pension_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"dla_sc_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"dla_m_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"pip_m_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"pip_dl_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"sda_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"carers_allowance_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"iidb_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"afcs_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"bsp_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"war_widows_pension_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"widowed_parents_allowance_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"winter_fuel_allowance_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"council_tax_benefit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"jsa_contrib_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"jsa_income_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"esa_contrib_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"esa_income_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"trading_loss","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"loss_relief","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"ni_class_4_losses_brought_forward","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"owned_company_income_share","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"hmrc_spi_pay","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"hmrc_spi_unemployment_benefit_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"hmrc_spi_incapacity_benefit_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"employment_income_annual_share","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"employment_income_other_spells","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"self_employment_income_annual_share","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"self_employment_income_other_spells","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"private_pension_income_annual_share","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"contributory_benefits_annual_share","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"annuity_and_trust_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"aa_category","dtype":"string","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"dla_sc_category","dtype":"string","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"dla_m_category","dtype":"string","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"pip_m_category","dtype":"string","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"pip_dl_category","dtype":"string","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_disabled_for_benefits","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_enhanced_disabled_for_benefits","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_severely_disabled_for_benefits","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"would_claim_carers_allowance","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"uc_is_in_startup_period","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"uc_is_in_gainful_self_employment","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"esa_includes_support_component","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"reports_rent_from_other_property","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"stands_as_sole_owner_or_partner_of_company","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_engaged_in_owned_company_trade","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"owned_company_is_main_employment","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"owned_company_carries_on_trade","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"owned_company_carries_on_property_business","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"person_is_spi_income_recipient","dtype":"bool","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"hmrc_spi_income_spine","stage_contract_sha256":"6e31b31f246f166e5812d581ea7b98906c6b5efaa1b76ba2d06adf2e437da18f","time_period":"2024"},"population":"spi_income_band_donors","sources":["frs"],"structural":"none","weights":null},{"base":"spi_income_band_donors","citation":"","description":"Ownership boundary before company_cars rewrites.","id":"company_cars.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage company_cars.","id":"company_cars","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","rent_paid_as_boarder","rent_paid_as_lodger","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient"],"entity":"person","rows":"all"}],"kernel":"uk.stage.company_cars@1","mass":"conserve","outputs":[{"column":"company_car_list_price","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"company_car_co2_emissions","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"company_car_fuel_type","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"company_car_electric_range","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"company_car_capital_contributions","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"company_car_private_fuel_provided","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"employment_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"uc_is_in_gainful_self_employment","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"company_cars","stage_contract_sha256":"a4e0348ecb76f8550486df0682d4f2d6b7d2dee3038f5bbcf6bd0a347b7dfa6a","time_period":"2024"},"population":"company_cars.boundary","sources":["frs"],"structural":"none","weights":null},{"base":"company_cars.boundary","citation":"","description":"Ownership boundary before spi_housing_shell rewrites.","id":"spi_housing_shell.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage spi_housing_shell.","id":"spi_housing_shell","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["council_tax_single_adult_raw","household_support_channel","ons_household_type","region"],"entity":"household","rows":"all"},{"columns":["age","dividend_income","employment_income","individual_savings_account_interest_income","is_household_head","other_investment_income","private_pension_income","property_income","savings_interest_income","self_employment_income","state_pension_reported","uc_is_in_gainful_self_employment"],"entity":"person","rows":"all"}],"kernel":"uk.stage.spi_housing_shell@1","mass":"conserve","outputs":[{"column":"tenure_type","dtype":"string","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"accommodation_type","dtype":"string","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"council_tax_band","dtype":"string","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"num_bedrooms","dtype":"int64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"council_tax","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"council_tax_reported","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"rent","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"mortgage_interest_repayment","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"mortgage_capital_repayment","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"structural_insurance_payments","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"housing_service_charges","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"water_and_sewerage_charges","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"domestic_rates","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"subrent","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"council_tax_rebate","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"housing_benefit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"council_tax_benefit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"spi_housing_shell","stage_contract_sha256":"524549b7dfbd0fceb505311eb0c3b923cfe3b11a8acd5ecfbfbcbb477e142eb1","time_period":"2024"},"population":"spi_housing_shell.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage was_wealth.","id":"was_wealth","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided"],"entity":"person","rows":"all"}],"kernel":"uk.stage.was_wealth@1","mass":"conserve","outputs":[{"column":"owned_land","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"property_wealth","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"corporate_wealth","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"private_pension_wealth","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"gross_financial_wealth","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"net_financial_wealth","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"main_residence_value","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"other_residential_property_value","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"non_residential_property_value","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"savings","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"num_vehicles","dtype":"int64","entity":"household","ownership":"produced","rows":"all"},{"column":"cash_isa","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"stocks_and_shares_isa","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"mortgage_debt","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"consumer_debt","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"student_loan_balance","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"directly_held_shares","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"unit_and_investment_trusts","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"other_residential_property_secured_debt","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"non_residential_property_secured_debt","dtype":"float64","entity":"household","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"was_wealth","stage_contract_sha256":"e648f94320deffd15d4e7c2f51e044e8b3572b24bb62d65f157edcb8f31753b5","time_period":"2024"},"population":"spi_housing_shell.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage was_lisa.","id":"was_lisa","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance"],"entity":"person","rows":"all"}],"kernel":"uk.stage.was_lisa@1","mass":"conserve","outputs":[{"column":"has_lifetime_isa","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"lifetime_isa_balance","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"household_lifetime_isa_balance","dtype":"float64","entity":"household","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"was_lisa","stage_contract_sha256":"bf0389b9b72cd952ff1290dc190f2860497f6c68bb08dc2fa6f523bb33f59ab1","time_period":"2024"},"population":"spi_housing_shell.boundary","sources":["frs"],"structural":"none","weights":null},{"base":"spi_housing_shell.boundary","citation":"","description":"Ownership boundary before regional_property_uprating rewrites.","id":"regional_property_uprating.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage regional_property_uprating.","id":"regional_property_uprating","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["household_lifetime_isa_balance","household_support_channel","region"],"entity":"household","rows":"all"},{"columns":["age"],"entity":"person","rows":"all"}],"kernel":"uk.stage.regional_property_uprating@1","mass":"conserve","outputs":[{"column":"main_residence_value","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"property_wealth","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"owned_land","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"other_residential_property_value","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"non_residential_property_value","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"regional_property_uprating","stage_contract_sha256":"f45db95fde3f93731c0925b9bf8c12021921df2e4908770acdec1e3c97889277","time_period":"2024"},"population":"regional_property_uprating.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":"regional_property_uprating.boundary","citation":"","description":"Run structural UK stage high_value_home_support.","id":"high_value_home_support","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance"],"entity":"person","rows":"all"}],"kernel":"uk.stage.expand.high_value_home_support@1","mass":"conserve","outputs":[],"params":{"expand_cells":[["household","household_is_high_value_support_copy","bool"],["household","high_value_support_copies","int64"],["household","high_value_support_copy_index","int64"]],"expand_weight_entity":"household","expand_weight_kind":"importance","numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"high_value_home_support","stage_contract_sha256":"174f4b38228d98107bee1639d1a297a2748bb618e87c7bd0a6c869c6ab06f8fa","time_period":"2024"},"population":null,"sources":["frs"],"structural":"expand","weights":null},{"base":null,"citation":"","description":"Own the cells materialized by high_value_home_support.","id":"high_value_home_support.owned","inputs":[],"kernel":"uk.claim@1","mass":"conserve","outputs":[{"column":"household_is_high_value_support_copy","dtype":"bool","entity":"household","ownership":"produced","rows":"all"},{"column":"high_value_support_copies","dtype":"int64","entity":"household","ownership":"produced","rows":"all"},{"column":"high_value_support_copy_index","dtype":"int64","entity":"household","ownership":"produced","rows":"all"}],"params":{"materialized_expand_outputs":["household.household_is_high_value_support_copy","household.high_value_support_copies","household.high_value_support_copy_index"]},"population":"high_value_home_support","sources":[],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage regional_home_values.","id":"regional_home_values","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["high_value_support_copy_index","household_is_high_value_support_copy","household_source_id","region","tenure_type"],"entity":"household","rows":"all"},{"columns":["age"],"entity":"person","rows":"all"}],"kernel":"uk.stage.regional_home_values@1","mass":"conserve","outputs":[{"column":"main_residence_value","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"property_wealth","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"main_residence_value_rank_basis","dtype":"float64","entity":"household","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"regional_home_values","stage_contract_sha256":"48e8a622c8830a54a4c48d9d8cb4f011751aa05d7cb5f6c7f0e06e1121b720b1","time_period":"2024"},"population":"high_value_home_support","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage property_components.","id":"property_components","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["main_residence_value_rank_basis","non_residential_property_value","other_residential_property_value","region","subrent"],"entity":"household","rows":"all"},{"columns":["age","is_household_head","person_is_spi_income_recipient","person_support_channel"],"entity":"person","rows":"all"}],"kernel":"uk.stage.property_components@1","mass":"conserve","outputs":[{"column":"property_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"property_finance_costs","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"property_rental_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"property_components","stage_contract_sha256":"5022c27a480f057f8b8a4f87d9305ad00b1b9c724b225e37b02403b79b99f82e","time_period":"2024"},"population":"high_value_home_support","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage property_purchases.","id":"property_purchases","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["household_source_id","non_residential_property_value","other_residential_property_value","region"],"entity":"household","rows":"all"},{"columns":["age","property_rental_income"],"entity":"person","rows":"all"}],"kernel":"uk.stage.property_purchases@1","mass":"conserve","outputs":[{"column":"additional_residential_property_purchased","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"non_residential_property_purchased","dtype":"float64","entity":"household","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"property_purchases","stage_contract_sha256":"7d0075d0020b21ceaf0e677d1a363737a2e29425e601269e9d5d9713dbc2fb45","time_period":"2024"},"population":"high_value_home_support","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage nts_bus_travel.","id":"nts_bus_travel","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income"],"entity":"person","rows":"all"}],"kernel":"uk.stage.nts_bus_travel@1","mass":"conserve","outputs":[{"column":"local_bus_use_band","dtype":"int64","entity":"person","ownership":"produced","rows":"all"},{"column":"bus_in_london_trips","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"other_local_bus_trips","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"local_bus_trips","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"bus_pass_eligible","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"local_bus_single_fare_share","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"household_local_bus_trips","dtype":"float64","entity":"household","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"nts_bus_travel","stage_contract_sha256":"f96c01de0180936596838a5cfb586e398ac33e521b4e2e58f6ed10c0dfd2fea8","time_period":"2024"},"population":"high_value_home_support","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage lcfs_consumption.","id":"lcfs_consumption","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share"],"entity":"person","rows":"all"}],"kernel":"uk.stage.lcfs_consumption@1","mass":"conserve","outputs":[{"column":"food_and_non_alcoholic_beverages_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"alcohol_and_tobacco_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"clothing_and_footwear_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"housing_water_and_electricity_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"household_furnishings_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"health_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"transport_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"communication_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"recreation_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"education_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"restaurants_and_hotels_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"miscellaneous_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"petrol_spending","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"diesel_spending","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"bus_fare_spending","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"domestic_energy_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"electricity_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"gas_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"liquid_fuel_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"solid_fuel_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"has_fuel_consumption","dtype":"bool","entity":"household","ownership":"produced","rows":"all"},{"column":"uses_energy_prepayment_meter","dtype":"bool","entity":"household","ownership":"produced","rows":"all"},{"column":"beer_litres","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"cider_litres","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"wine_litres","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"spirits_litres","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"other_fermented_litres","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"beer_draught_share","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"cider_draught_share","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"cigarettes_per_week","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"hand_rolling_tobacco_grams_per_week","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"cigars_grams_per_week","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"other_tobacco_grams_per_week","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"remote_gaming_net_losses","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"pool_betting_net_receipts","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"bingo_net_receipts","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"national_lottery_ticket_spending","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"land_based_casino_net_losses","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"machine_games_lower_rate_net_takings","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"machine_games_standard_rate_net_takings","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"machine_games_higher_rate_net_takings","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"land_based_fixed_odds_betting_net_losses","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"remote_uk_horseracing_betting_net_losses","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"remote_other_betting_net_losses","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"betting_exchange_commission","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"horse_and_dog_pool_betting_net_losses","dtype":"float64","entity":"household","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"lcfs_consumption","stage_contract_sha256":"5e250659703c5adff30913542045ec0a0a78993db0d097137cea9a69f912de99","time_period":"2024"},"population":"high_value_home_support","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage etb_vat.","id":"etb_vat","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share"],"entity":"person","rows":"all"}],"kernel":"uk.stage.etb_vat@1","mass":"conserve","outputs":[{"column":"full_rate_vat_expenditure_rate","dtype":"float64","entity":"household","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"etb_vat","stage_contract_sha256":"216b28835eba7a952243134dffbb45a1b3a0cdff2e3e7d0e94e2acbf754052b5","time_period":"2024"},"population":"high_value_home_support","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage etb_services.","id":"etb_services","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share"],"entity":"person","rows":"all"}],"kernel":"uk.stage.etb_services@1","mass":"conserve","outputs":[{"column":"dfe_education_spending","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"rail_subsidy_spending","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"bus_subsidy_spending","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"rail_usage","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"a_and_e_visits","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"admitted_patient_visits","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"outpatient_visits","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"nhs_a_and_e_spending","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"nhs_admitted_patient_spending","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"nhs_outpatient_spending","dtype":"float64","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"etb_services","stage_contract_sha256":"2c5f860468ce64c1b7216e15d1f0f832d6dca5039b034af3e71470f4f682d21a","time_period":"2024"},"population":"high_value_home_support","sources":["frs"],"structural":"none","weights":null},{"base":"high_value_home_support","citation":"","description":"Ownership boundary before uc_reporter_redraw rewrites.","id":"uc_reporter_redraw.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage uc_reporter_redraw.","id":"uc_reporter_redraw","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending"],"entity":"person","rows":"all"}],"kernel":"uk.stage.uc_reporter_redraw@1","mass":"conserve","outputs":[{"column":"universal_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"uc_reporter_redraw","stage_contract_sha256":"b03d4947d6cb0404ba410c548e1850d5abe0c7dae2dc097d419b63eea04920a9","time_period":"2024"},"population":"uc_reporter_redraw.boundary","sources":["frs"],"structural":"none","weights":null},{"base":"uc_reporter_redraw.boundary","citation":"","description":"Ownership boundary before spi_benefit_coherence rewrites.","id":"spi_benefit_coherence.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage spi_benefit_coherence.","id":"spi_benefit_coherence","inputs":[{"columns":["benunit_support_channel","frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["region"],"entity":"household","rows":"all"},{"columns":["aa_category","age","attendance_allowance_reported","dla_m_category","dla_m_reported","dla_sc_category","dla_sc_reported","esa_contrib_reported","incapacity_benefit_reported","is_uc_claimant","person_source_id","person_support_channel","pip_dl_category","pip_dl_reported","pip_m_category","pip_m_reported","universal_credit_reported"],"entity":"person","rows":"all"}],"kernel":"uk.stage.spi_benefit_coherence@1","mass":"conserve","outputs":[{"column":"jsa_contrib_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"jsa_income_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"esa_income_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"income_support_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"working_tax_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"child_tax_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"sda_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"ssmg_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"iidb_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"afcs_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"bsp_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"war_widows_pension_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"widowed_parents_allowance_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_disabled_for_benefits","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_enhanced_disabled_for_benefits","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_severely_disabled_for_benefits","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"receives_benefits_in_own_right","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"would_claim_uc","dtype":"bool","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"spi_benefit_coherence","stage_contract_sha256":"ad3bfd51b377963c1d976a82416283aeb7b80d9f89b44c0e5db79e3598e815d5","time_period":"2024"},"population":"spi_benefit_coherence.boundary","sources":["frs"],"structural":"none","weights":null},{"base":"spi_benefit_coherence.boundary","citation":"","description":"Ownership boundary before uc_capital_coherence rewrites.","id":"uc_capital_coherence.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage uc_capital_coherence.","id":"uc_capital_coherence","inputs":[{"columns":["benunit_support_channel","dependent_children","is_married"],"entity":"benunit","rows":"all"},{"columns":["non_residential_property_secured_debt","non_residential_property_value","other_residential_property_secured_debt","other_residential_property_value","owned_land","region"],"entity":"household","rows":"all"},{"columns":["age","dividend_income","individual_savings_account_interest_income","is_benunit_head","is_household_head","is_parent","other_investment_income","person_support_channel","savings_interest_income","universal_credit_reported"],"entity":"person","rows":"all"}],"kernel":"uk.stage.uc_capital_coherence@1","mass":"conserve","outputs":[{"column":"uc_reported_capital","dtype":"float64","entity":"benunit","ownership":"produced","rows":"all"},{"column":"pension_credit_reported_capital","dtype":"float64","entity":"benunit","ownership":"produced","rows":"all"},{"column":"frs_benunit_capital","dtype":"float64","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"would_claim_uc","dtype":"bool","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"uc_capital_coherence","stage_contract_sha256":"67478de55540a138448d9da387a64e5e2afbb17caf17b244bc3baaa34de56022","time_period":"2024"},"population":"uc_capital_coherence.boundary","sources":["frs"],"structural":"none","weights":null},{"base":"uc_capital_coherence.boundary","citation":"","description":"Ownership boundary before uc_take_up rewrites.","id":"uc_take_up.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage uc_take_up.","id":"uc_take_up","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending"],"entity":"person","rows":"all"}],"kernel":"uk.stage.uc_take_up@1","mass":"conserve","outputs":[{"column":"would_claim_uc","dtype":"bool","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"uc_take_up","stage_contract_sha256":"1f5bb5a59426d5a1f0a8ba40180b744725be29dea741a4e93924f4f55e9a7e11","time_period":"2024"},"population":"uc_take_up.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage uc_legacy_closure_take_up.","id":"uc_legacy_closure_take_up","inputs":[{"columns":["frs_benunit_capital","would_claim_uc"],"entity":"benunit","rows":"all"},{"columns":["household_source_id","region"],"entity":"household","rows":"all"},{"columns":["age","child_tax_credit_reported","esa_income_reported","housing_benefit_reported","income_support_reported","is_claimant_or_partner","jsa_income_reported","universal_credit_reported","working_tax_credit_reported"],"entity":"person","rows":"all"}],"kernel":"uk.stage.uc_legacy_closure_take_up@1","mass":"conserve","outputs":[{"column":"would_claim_uc_at_legacy_closure","dtype":"bool","entity":"benunit","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"uc_legacy_closure_take_up","stage_contract_sha256":"bd7d87d11fb5271cd5a3e26a0268f2eaacb155fa87a9f4a8f00a6418b6da6b5c","time_period":"2024"},"population":"uc_take_up.boundary","sources":["frs"],"structural":"none","weights":null},{"base":"uc_take_up.boundary","citation":"","description":"Ownership boundary before pension_credit_take_up rewrites.","id":"pension_credit_take_up.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital","would_claim_uc_at_legacy_closure"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage pension_credit_take_up.","id":"pension_credit_take_up","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital","would_claim_uc_at_legacy_closure"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending"],"entity":"person","rows":"all"}],"kernel":"uk.stage.pension_credit_take_up@1","mass":"conserve","outputs":[{"column":"would_claim_pc","dtype":"bool","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"has_mixed_age_couple_pension_credit_saving","dtype":"bool","entity":"benunit","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"pension_credit_take_up","stage_contract_sha256":"e887dbbb186cb79f6d3fc9a629269dbac4a43381b9574df65353b816f01a3a35","time_period":"2024"},"population":"pension_credit_take_up.boundary","sources":["frs"],"structural":"none","weights":null},{"base":"pension_credit_take_up.boundary","citation":"","description":"Ownership boundary before child_benefit_take_up rewrites.","id":"child_benefit_take_up.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital","would_claim_uc_at_legacy_closure","has_mixed_age_couple_pension_credit_saving"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage child_benefit_take_up.","id":"child_benefit_take_up","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital","would_claim_uc_at_legacy_closure","has_mixed_age_couple_pension_credit_saving"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending"],"entity":"person","rows":"all"}],"kernel":"uk.stage.child_benefit_take_up@1","mass":"conserve","outputs":[{"column":"would_claim_child_benefit","dtype":"bool","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"child_benefit_opts_out","dtype":"bool","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"child_benefit_take_up","stage_contract_sha256":"c99071c19d0184440163f7ab49ee33cc19ad0ad4e2f6462ed50c36917b0da364","time_period":"2024"},"population":"child_benefit_take_up.boundary","sources":["frs"],"structural":"none","weights":null},{"base":"child_benefit_take_up.boundary","citation":"","description":"Ownership boundary before carers_allowance_take_up rewrites.","id":"carers_allowance_take_up.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital","would_claim_uc_at_legacy_closure","has_mixed_age_couple_pension_credit_saving"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage carers_allowance_take_up.","id":"carers_allowance_take_up","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital","would_claim_uc_at_legacy_closure","has_mixed_age_couple_pension_credit_saving"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending"],"entity":"person","rows":"all"}],"kernel":"uk.stage.carers_allowance_take_up@1","mass":"conserve","outputs":[{"column":"would_claim_carers_allowance","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"carers_allowance_take_up","stage_contract_sha256":"dc1f00f90dd7e3f09d7da9601c85b45f3145e4c053d237e1892b280b24d0978f","time_period":"2024"},"population":"carers_allowance_take_up.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage uc_deduction_attributes.","id":"uc_deduction_attributes","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["region"],"entity":"household","rows":"all"},{"columns":["age","would_claim_carers_allowance"],"entity":"person","rows":"all"}],"kernel":"uk.stage.uc_deduction_attributes@1","mass":"conserve","outputs":[{"column":"uc_deduction_random_draw","dtype":"float64","entity":"benunit","ownership":"produced","rows":"all"},{"column":"uc_deduction_type_random_draw","dtype":"float64","entity":"benunit","ownership":"produced","rows":"all"},{"column":"uc_latent_deduction_rate","dtype":"float64","entity":"benunit","ownership":"produced","rows":"all"},{"column":"uc_deduction_combination","dtype":"string","entity":"benunit","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"uc_deduction_attributes","stage_contract_sha256":"6bc7e3ec1a5712e23ca1b7d2956e8b17f2526b94431ba3e5a9294b04658e4fe0","time_period":"2024"},"population":"carers_allowance_take_up.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":"carers_allowance_take_up.boundary","citation":"","description":"Run structural UK stage cgt_support_split.","id":"cgt_support_split","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital","would_claim_uc_at_legacy_closure","has_mixed_age_couple_pension_credit_saving","uc_deduction_random_draw","uc_deduction_type_random_draw","uc_latent_deduction_rate","uc_deduction_combination"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending"],"entity":"person","rows":"all"}],"kernel":"uk.stage.expand.cgt_support_split@1","mass":"conserve","outputs":[],"params":{"expand_cells":[["household","household_is_cgt_support_copy","bool"],["household","cgt_support_copies","int64"],["household","cgt_support_copy_index","int64"]],"expand_weight_entity":"household","expand_weight_kind":"importance","numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"cgt_support_split","stage_contract_sha256":"88a0f5974de73dc778a782c9ce6e5f811e9d17e9eb86a30207bc9276134e53af","time_period":"2024"},"population":null,"sources":["frs"],"structural":"expand","weights":null},{"base":null,"citation":"","description":"Own the cells materialized by cgt_support_split.","id":"cgt_support_split.owned","inputs":[],"kernel":"uk.claim@1","mass":"conserve","outputs":[{"column":"household_is_cgt_support_copy","dtype":"bool","entity":"household","ownership":"produced","rows":"all"},{"column":"cgt_support_copies","dtype":"int64","entity":"household","ownership":"produced","rows":"all"},{"column":"cgt_support_copy_index","dtype":"int64","entity":"household","ownership":"produced","rows":"all"}],"params":{"materialized_expand_outputs":["household.household_is_cgt_support_copy","household.cgt_support_copies","household.cgt_support_copy_index"]},"population":"cgt_support_split","sources":[],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":"cgt_support_split","citation":"","description":"Run structural UK stage cgt_incidence_clone.","id":"cgt_incidence_clone","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital","would_claim_uc_at_legacy_closure","has_mixed_age_couple_pension_credit_saving","uc_deduction_random_draw","uc_deduction_type_random_draw","uc_latent_deduction_rate","uc_deduction_combination"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage","household_is_cgt_support_copy","cgt_support_copies","cgt_support_copy_index"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending"],"entity":"person","rows":"all"}],"kernel":"uk.stage.expand.cgt_incidence_clone@1","mass":"conserve","outputs":[],"params":{"expand_cells":[["household","household_is_capital_gains_clone","bool"],["person","capital_gains","float64"]],"expand_weight_entity":"household","expand_weight_kind":"importance","numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"cgt_incidence_clone","stage_contract_sha256":"29198953c5522c9b996b981478909916870977a79e9f2feb2db7e9e72ef15de8","time_period":"2024"},"population":null,"sources":["frs"],"structural":"expand","weights":null},{"base":null,"citation":"","description":"Own the cells materialized by cgt_incidence_clone.","id":"cgt_incidence_clone.owned","inputs":[],"kernel":"uk.claim@1","mass":"conserve","outputs":[{"column":"household_is_capital_gains_clone","dtype":"bool","entity":"household","ownership":"produced","rows":"all"},{"column":"capital_gains","dtype":"float64","entity":"person","ownership":"produced","rows":"all"}],"params":{"materialized_expand_outputs":["household.household_is_capital_gains_clone","person.capital_gains"]},"population":"cgt_incidence_clone","sources":[],"structural":"none","weights":null},{"base":"cgt_incidence_clone","citation":"","description":"Ownership boundary before hmrc_cgt_gains_spine rewrites.","id":"hmrc_cgt_gains_spine.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital","would_claim_uc_at_legacy_closure","has_mixed_age_couple_pension_credit_saving","uc_deduction_random_draw","uc_deduction_type_random_draw","uc_latent_deduction_rate","uc_deduction_combination"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage","household_is_cgt_support_copy","cgt_support_copies","cgt_support_copy_index","household_is_capital_gains_clone"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending","capital_gains"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage hmrc_cgt_gains_spine.","id":"hmrc_cgt_gains_spine","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["cgt_support_copies","corporate_wealth","gross_financial_wealth","household_is_cgt_support_copy","non_residential_property_value","other_residential_property_value","region"],"entity":"household","rows":"all"},{"columns":["age","dividend_income","employment_income","individual_savings_account_interest_income","miscellaneous_income","private_pension_income","property_income","savings_interest_income","self_employment_income","state_pension_reported"],"entity":"person","rows":"all"}],"kernel":"uk.stage.hmrc_cgt_gains_spine@1","mass":"conserve","outputs":[{"column":"capital_gains","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"hmrc_cgt_gains_spine","stage_contract_sha256":"b5d27d6b6307acec73a9336a00ef3e4cd900164787362e1157a49ffaa8af50ef","time_period":"2024"},"population":"hmrc_cgt_gains_spine.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":"hmrc_cgt_gains_spine.boundary","citation":"","description":"Run structural UK stage cgt_incidence_anchor.","id":"cgt_incidence_anchor","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["household_is_capital_gains_clone","region"],"entity":"household","rows":"all"},{"columns":["age","capital_gains","dividend_income","employment_income","individual_savings_account_interest_income","miscellaneous_income","private_pension_income","property_income","savings_interest_income","self_employment_income","state_pension_reported"],"entity":"person","rows":"all"}],"kernel":"uk.stage.expand.cgt_incidence_anchor@1","mass":"conserve","outputs":[],"params":{"expand_cells":[],"expand_weight_entity":"household","expand_weight_kind":"importance","numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"cgt_incidence_anchor","stage_contract_sha256":"ed54c55428e56d7597c57c8459b014aa43b2ff9495b903f0b789bd5e4264ca9a","time_period":"2024"},"population":null,"sources":["frs"],"structural":"expand","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":"cgt_incidence_anchor","citation":"","description":"Run structural UK stage cgt_residential_split.","id":"cgt_residential_split","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital","would_claim_uc_at_legacy_closure","has_mixed_age_couple_pension_credit_saving","uc_deduction_random_draw","uc_deduction_type_random_draw","uc_latent_deduction_rate","uc_deduction_combination"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage","household_is_cgt_support_copy","cgt_support_copies","cgt_support_copy_index","household_is_capital_gains_clone"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending","capital_gains"],"entity":"person","rows":"all"}],"kernel":"uk.stage.expand.cgt_residential_split@1","mass":"conserve","outputs":[],"params":{"expand_cells":[["household","household_is_cgt_residential_clone","bool"],["household","cgt_residential_clone_index","int64"],["person","cgt_residential_probability","float64"],["person","capital_gains_residential_property","float64"]],"expand_weight_entity":"household","expand_weight_kind":"importance","numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"cgt_residential_split","stage_contract_sha256":"57d73fd1e8673d747fed04bb73b3eb1a8b215f73b7d24dd5b191b10ecf1e505f","time_period":"2024"},"population":null,"sources":["frs"],"structural":"expand","weights":null},{"base":null,"citation":"","description":"Own the cells materialized by cgt_residential_split.","id":"cgt_residential_split.owned","inputs":[],"kernel":"uk.claim@1","mass":"conserve","outputs":[{"column":"household_is_cgt_residential_clone","dtype":"bool","entity":"household","ownership":"produced","rows":"all"},{"column":"cgt_residential_clone_index","dtype":"int64","entity":"household","ownership":"produced","rows":"all"},{"column":"cgt_residential_probability","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"capital_gains_residential_property","dtype":"float64","entity":"person","ownership":"produced","rows":"all"}],"params":{"materialized_expand_outputs":["household.household_is_cgt_residential_clone","household.cgt_residential_clone_index","person.cgt_residential_probability","person.capital_gains_residential_property"]},"population":"cgt_residential_split","sources":[],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage hmrc_cgt_asset_type_spine.","id":"hmrc_cgt_asset_type_spine","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["corporate_wealth","gross_financial_wealth","other_residential_property_value","region","stocks_and_shares_isa"],"entity":"household","rows":"all"},{"columns":["age","capital_gains","capital_gains_residential_property","dividend_income","property_income","reports_rent_from_other_property","self_employment_income"],"entity":"person","rows":"all"}],"kernel":"uk.stage.hmrc_cgt_asset_type_spine@1","mass":"conserve","outputs":[{"column":"capital_gains_asset_type","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"capital_gains_badr","dtype":"float64","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"hmrc_cgt_asset_type_spine","stage_contract_sha256":"722e19b00e13d98ce9fde4069ef6ebf3e30ed9143871bec788992a36b94b5e85","time_period":"2024"},"population":"cgt_residential_split","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage salary_sacrifice.","id":"salary_sacrifice","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital","would_claim_uc_at_legacy_closure","has_mixed_age_couple_pension_credit_saving","uc_deduction_random_draw","uc_deduction_type_random_draw","uc_latent_deduction_rate","uc_deduction_combination"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage","household_is_cgt_support_copy","cgt_support_copies","cgt_support_copy_index","household_is_capital_gains_clone","household_is_cgt_residential_clone","cgt_residential_clone_index"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending","capital_gains","cgt_residential_probability","capital_gains_residential_property","capital_gains_asset_type","capital_gains_badr"],"entity":"person","rows":"all"}],"kernel":"uk.stage.salary_sacrifice@1","mass":"conserve","outputs":[{"column":"pension_contributions_via_salary_sacrifice","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"pension_contributions_via_bonus_sacrifice","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"employee_pension_contributions","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"employment_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"salary_sacrifice_pre_conversion_pay","dtype":"float64","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"salary_sacrifice","stage_contract_sha256":"d653f391e521528a66aae725488c307945ed870203e3070c89766ecaae392624","time_period":"2024"},"population":"cgt_residential_split","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage student_loans.","id":"student_loans","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["region"],"entity":"household","rows":"all"},{"columns":["age","age_left_full_time_education","current_education","highest_education","reports_outstanding_student_loan","salary_sacrifice_pre_conversion_pay","student_loan_repayments","student_loans"],"entity":"person","rows":"all"}],"kernel":"uk.stage.student_loans@1","mass":"conserve","outputs":[{"column":"student_loan_plan","dtype":"string","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"student_loans","stage_contract_sha256":"157d9ee607633e4246ed06eeee3aac3cdff98118e72400e18b84c11b3fd2b92b","time_period":"2024"},"population":"cgt_residential_split","sources":["frs"],"structural":"none","weights":null},{"base":"cgt_residential_split","citation":"","description":"Ownership boundary before childcare_copy_take_up rewrites.","id":"childcare_copy_take_up.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital","would_claim_uc_at_legacy_closure","has_mixed_age_couple_pension_credit_saving","uc_deduction_random_draw","uc_deduction_type_random_draw","uc_latent_deduction_rate","uc_deduction_combination"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage","household_is_cgt_support_copy","cgt_support_copies","cgt_support_copy_index","household_is_capital_gains_clone","household_is_cgt_residential_clone","cgt_residential_clone_index"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending","capital_gains","cgt_residential_probability","capital_gains_residential_property","capital_gains_asset_type","capital_gains_badr","pension_contributions_via_bonus_sacrifice","salary_sacrifice_pre_conversion_pay","student_loan_plan"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage childcare_copy_take_up.","id":"childcare_copy_take_up","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_uc_childcare","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital","would_claim_uc_at_legacy_closure","has_mixed_age_couple_pension_credit_saving","uc_deduction_random_draw","uc_deduction_type_random_draw","uc_latent_deduction_rate","uc_deduction_combination"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage","household_is_cgt_support_copy","cgt_support_copies","cgt_support_copy_index","household_is_capital_gains_clone","household_is_cgt_residential_clone","cgt_residential_clone_index"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending","capital_gains","cgt_residential_probability","capital_gains_residential_property","capital_gains_asset_type","capital_gains_badr","pension_contributions_via_bonus_sacrifice","salary_sacrifice_pre_conversion_pay","student_loan_plan"],"entity":"person","rows":"all"}],"kernel":"uk.stage.childcare_copy_take_up@1","mass":"conserve","outputs":[{"column":"would_claim_tfc","dtype":"bool","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"would_claim_extended_childcare","dtype":"bool","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"would_claim_universal_childcare","dtype":"bool","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"would_claim_targeted_childcare","dtype":"bool","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"maximum_extended_childcare_hours_usage","dtype":"float64","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"max_free_entitlement_hours_used","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"childcare_copy_take_up","stage_contract_sha256":"cdbb7e135b16fac7ca1bcd6c54222821e2976b4da99f10a60913efd0ba03c13c","time_period":"2024"},"population":"childcare_copy_take_up.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage private_school_attendance.","id":"private_school_attendance","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital","would_claim_uc_at_legacy_closure","has_mixed_age_couple_pension_credit_saving","uc_deduction_random_draw","uc_deduction_type_random_draw","uc_latent_deduction_rate","uc_deduction_combination"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage","household_is_cgt_support_copy","cgt_support_copies","cgt_support_copy_index","household_is_capital_gains_clone","household_is_cgt_residential_clone","cgt_residential_clone_index"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending","capital_gains","cgt_residential_probability","capital_gains_residential_property","capital_gains_asset_type","capital_gains_badr","pension_contributions_via_bonus_sacrifice","salary_sacrifice_pre_conversion_pay","student_loan_plan"],"entity":"person","rows":"all"}],"kernel":"uk.stage.private_school_attendance@1","mass":"conserve","outputs":[{"column":"attends_private_school","dtype":"bool","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"private_school_attendance","stage_contract_sha256":"7e44379c0331fe4c9de05cd76a075c1a6aa22cf0dec6cd2f91b277e70f14a038","time_period":"2024"},"population":"childcare_copy_take_up.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage isa_subscriptions.","id":"isa_subscriptions","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["cash_isa","region","stocks_and_shares_isa"],"entity":"household","rows":"all"},{"columns":["age","attends_private_school","dividend_income","employment_income","gender","has_lifetime_isa","individual_savings_account_interest_income","lifetime_isa_balance","loss_relief","miscellaneous_income","private_pension_income","property_income","savings_interest_income","self_employment_income","state_pension_reported"],"entity":"person","rows":"all"}],"kernel":"uk.stage.isa_subscriptions@1","mass":"conserve","outputs":[{"column":"cash_isa_balance","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"stocks_and_shares_isa_balance","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"cash_isa_subscriptions","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"stocks_and_shares_isa_subscriptions","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"lifetime_isa_payments","dtype":"float64","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"isa_subscriptions","stage_contract_sha256":"9fc3e3ecf333df38206c9627470ca0c1a9d8abbea7534f6367e01868fdc3081f","time_period":"2024"},"population":"childcare_copy_take_up.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage trading_allowance_receipts.","id":"trading_allowance_receipts","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["household_source_id","region"],"entity":"household","rows":"all"},{"columns":["age","lifetime_isa_payments","self_employment_income"],"entity":"person","rows":"all"}],"kernel":"uk.stage.trading_allowance_receipts@1","mass":"conserve","outputs":[{"column":"self_employment_gross_receipts","dtype":"float64","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"trading_allowance_receipts","stage_contract_sha256":"f91329806570bd874750845816de96b28160e766e8e26bf1174cb0809ad8ff43","time_period":"2024"},"population":"childcare_copy_take_up.boundary","sources":["frs"],"structural":"none","weights":null}],"sources":[{"codec":"csv-tables","description":"Content-bound UK FRS and donor fixture/source bundle.","name":"frs"}]} +{"country":"uk","nodes":[{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Load the source-bound UK FRS root population.","id":"create_uk_frs","inputs":[],"kernel":"uk.create@1","mass":"conserve","outputs":[{"column":"age","dtype":"int64","entity":"person","ownership":"produced","rows":"all"},{"column":"gender","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"months_since_last_birthday","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"marital_status","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"hours_worked","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"care_hours","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"frs_care_hours_in_household","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"is_household_head","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"is_benunit_head","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"is_parent","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"is_blind","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"is_uc_claimant","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"is_claimant_or_partner","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"is_hbai_dependent_child","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"uc_is_in_startup_period","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"uc_is_in_gainful_self_employment","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"rent_paid_as_boarder","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"rent_paid_as_lodger","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"employment_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"self_employment_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"trading_loss","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"loss_relief","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"ni_class_4_losses_brought_forward","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"private_pension_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"annuity_and_trust_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"individual_savings_account_interest_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"savings_interest_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"dividend_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"other_investment_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"stands_as_sole_owner_or_partner_of_company","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"is_engaged_in_owned_company_trade","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"owned_company_is_main_employment","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"owned_company_carries_on_trade","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"owned_company_carries_on_property_business","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"owned_company_income_share","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"property_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"reports_rent_from_other_property","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"maintenance_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"spousal_maintenance_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"miscellaneous_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"private_transfer_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"lump_sum_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"student_loan_repayments","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"statutory_sick_pay","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"statutory_maternity_pay","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"statutory_paternity_pay","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"student_loans","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"access_fund","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"education_grants","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"healthy_start_vouchers","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"free_school_breakfasts","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"free_school_fruit_veg","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"free_school_meals","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"council_tax_benefit_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"maintenance_expenses","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"childcare_expenses","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"personal_pension_contributions","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"employee_pension_contributions","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"pension_contributions_via_salary_sacrifice","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"salary_sacrifice_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"salary_sacrifice_asked","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"frs_bonus_amount","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"frs_company_car_price_band","dtype":"int64","entity":"person","ownership":"produced","rows":"all"},{"column":"frs_company_car_fuel_code","dtype":"int64","entity":"person","ownership":"produced","rows":"all"},{"column":"frs_company_car_private_fuel","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"frs_company_car_contribution","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"child_benefit_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"income_support_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"housing_benefit_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"attendance_allowance_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"dla_sc_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"dla_m_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"iidb_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"carers_allowance_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"would_claim_carers_allowance","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"sda_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"afcs_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"ssmg_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"pension_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"child_tax_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"working_tax_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"state_pension_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"winter_fuel_allowance_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"incapacity_benefit_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"universal_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"pip_m_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"pip_dl_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"jsa_contrib_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"jsa_income_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"esa_contrib_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"esa_income_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"esa_includes_support_component","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"bsp_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"war_widows_pension_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"widowed_parents_allowance_reported","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"frs_benunit_capital","dtype":"float64","entity":"benunit","ownership":"produced","rows":"all"},{"column":"is_married","dtype":"bool","entity":"benunit","ownership":"produced","rows":"all"},{"column":"dependent_children","dtype":"int64","entity":"benunit","ownership":"produced","rows":"all"},{"column":"liable_for_share_of_household_rent","dtype":"bool","entity":"benunit","ownership":"produced","rows":"all"},{"column":"region","dtype":"string","entity":"household","ownership":"produced","rows":"all"},{"column":"tenure_type","dtype":"string","entity":"household","ownership":"produced","rows":"all"},{"column":"accommodation_type","dtype":"string","entity":"household","ownership":"produced","rows":"all"},{"column":"num_bedrooms","dtype":"int64","entity":"household","ownership":"produced","rows":"all"},{"column":"council_tax_reported","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"council_tax_band","dtype":"string","entity":"household","ownership":"produced","rows":"all"},{"column":"council_tax_rebate","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"council_tax_single_adult_raw","dtype":"int64","entity":"household","ownership":"produced","rows":"all"},{"column":"water_and_sewerage_charges","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"domestic_rates","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"rent","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"subrent","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"mortgage_interest_repayment","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"mortgage_capital_repayment","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"structural_insurance_payments","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"housing_service_charges","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"external_child_payments","dtype":"float64","entity":"household","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"sample_fraction":1.0,"sample_seed":578,"stage_contract_sha256":"879fdd6e1e5832b94af4259b1028f852470bbe2c3ab19b61ce5f92a2e9c12ec4","time_period":"2024"},"population":null,"sources":["frs"],"structural":"create","weights":null},{"base":"create_uk_frs","citation":"","description":"Ownership boundary for the source-assembling root stage.","id":"frs_spine.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"base":null,"citation":"","description":"Claim the cells assembled by the UK FRS root transform.","id":"frs_spine","inputs":[],"kernel":"uk.claim@1","mass":"conserve","outputs":[{"column":"age","dtype":"int64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"gender","dtype":"string","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"months_since_last_birthday","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"marital_status","dtype":"string","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"hours_worked","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"care_hours","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"frs_care_hours_in_household","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_household_head","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_benunit_head","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_parent","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_blind","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_uc_claimant","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_claimant_or_partner","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_hbai_dependent_child","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"uc_is_in_startup_period","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"uc_is_in_gainful_self_employment","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"rent_paid_as_boarder","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"rent_paid_as_lodger","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"employment_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"self_employment_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"trading_loss","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"loss_relief","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"ni_class_4_losses_brought_forward","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"private_pension_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"annuity_and_trust_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"individual_savings_account_interest_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"savings_interest_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"dividend_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"other_investment_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"stands_as_sole_owner_or_partner_of_company","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_engaged_in_owned_company_trade","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"owned_company_is_main_employment","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"owned_company_carries_on_trade","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"owned_company_carries_on_property_business","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"owned_company_income_share","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"property_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"reports_rent_from_other_property","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"maintenance_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"spousal_maintenance_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"miscellaneous_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"private_transfer_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"lump_sum_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"student_loan_repayments","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"statutory_sick_pay","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"statutory_maternity_pay","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"statutory_paternity_pay","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"student_loans","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"access_fund","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"education_grants","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"healthy_start_vouchers","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"free_school_breakfasts","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"free_school_fruit_veg","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"free_school_meals","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"council_tax_benefit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"maintenance_expenses","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"childcare_expenses","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"personal_pension_contributions","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"employee_pension_contributions","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"pension_contributions_via_salary_sacrifice","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"salary_sacrifice_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"salary_sacrifice_asked","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"frs_bonus_amount","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"frs_company_car_price_band","dtype":"int64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"frs_company_car_fuel_code","dtype":"int64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"frs_company_car_private_fuel","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"frs_company_car_contribution","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"child_benefit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"income_support_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"housing_benefit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"attendance_allowance_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"dla_sc_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"dla_m_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"iidb_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"carers_allowance_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"would_claim_carers_allowance","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"sda_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"afcs_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"ssmg_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"pension_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"child_tax_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"working_tax_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"state_pension_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"winter_fuel_allowance_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"incapacity_benefit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"universal_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"pip_m_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"pip_dl_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"jsa_contrib_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"jsa_income_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"esa_contrib_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"esa_income_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"esa_includes_support_component","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"bsp_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"war_widows_pension_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"widowed_parents_allowance_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"frs_benunit_capital","dtype":"float64","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_married","dtype":"bool","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"dependent_children","dtype":"int64","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"liable_for_share_of_household_rent","dtype":"bool","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"region","dtype":"string","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"tenure_type","dtype":"string","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"accommodation_type","dtype":"string","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"num_bedrooms","dtype":"int64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"council_tax_reported","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"council_tax_band","dtype":"string","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"council_tax_rebate","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"council_tax_single_adult_raw","dtype":"int64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"water_and_sewerage_charges","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"domestic_rates","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"rent","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"subrent","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"mortgage_interest_repayment","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"mortgage_capital_repayment","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"structural_insurance_payments","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"housing_service_charges","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"external_child_payments","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"}],"params":{},"population":"frs_spine.boundary","sources":[],"structural":"none","weights":null},{"base":"frs_spine.boundary","citation":"","description":"Ownership boundary before age_tail rewrites.","id":"age_tail.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage age_tail.","id":"age_tail","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["external_child_payments","region"],"entity":"household","rows":"all"},{"columns":["gender"],"entity":"person","rows":"all"}],"kernel":"uk.stage.age_tail@1","mass":"conserve","outputs":[{"column":"age","dtype":"int64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"age_tail","stage_contract_sha256":"963a34f38caede2525e3b8735f904bb70a1bbef5a272f0eefd4346343444484f","time_period":"2024"},"population":"age_tail.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage frs_relationships.","id":"frs_relationships","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["region"],"entity":"household","rows":"all"},{"columns":["age","is_household_head"],"entity":"person","rows":"all"}],"kernel":"uk.stage.frs_relationships@1","mass":"conserve","outputs":[{"column":"relationship_to_head","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"ons_family_role","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"ons_family_index","dtype":"int64","entity":"person","ownership":"produced","rows":"all"},{"column":"is_looked_after_by_local_authority","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"child_limit_non_parental_caring_exception","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"ons_household_type","dtype":"string","entity":"household","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"frs_relationships","stage_contract_sha256":"ae32bf855753d3b7505e54a18532b1b53a04b6beda764cc09ad09462cf130085","time_period":"2024"},"population":"age_tail.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage frs_employment.","id":"frs_employment","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["ons_household_type","region"],"entity":"household","rows":"all"},{"columns":["age"],"entity":"person","rows":"all"}],"kernel":"uk.stage.frs_employment@1","mass":"conserve","outputs":[{"column":"employment_status","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"employment_sector","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"sic_industry_division","dtype":"int64","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"frs_employment","stage_contract_sha256":"ddbefaf05b44788d794a6e4b0e8926c14318d66e50d2f11f50ca549538bbf60c","time_period":"2024"},"population":"age_tail.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage frs_council_tax.","id":"frs_council_tax","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["region"],"entity":"household","rows":"all"},{"columns":["age","sic_industry_division"],"entity":"person","rows":"all"}],"kernel":"uk.stage.frs_council_tax@1","mass":"conserve","outputs":[{"column":"council_tax","dtype":"float64","entity":"household","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"frs_council_tax","stage_contract_sha256":"06804f54c12d25f2afcb31eec27789802f663cb42689a932dc32f3ba5fc05fff","time_period":"2024"},"population":"age_tail.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage frs_disability.","id":"frs_disability","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["council_tax","region"],"entity":"household","rows":"all"},{"columns":["afcs_reported","age","attendance_allowance_reported","dla_m_reported","dla_sc_reported","esa_contrib_reported","esa_income_reported","iidb_reported","incapacity_benefit_reported","pip_dl_reported","pip_m_reported","sda_reported"],"entity":"person","rows":"all"}],"kernel":"uk.stage.frs_disability@1","mass":"conserve","outputs":[{"column":"aa_category","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"dla_sc_category","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"dla_m_category","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"pip_m_category","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"pip_dl_category","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"is_disabled_for_benefits","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"is_enhanced_disabled_for_benefits","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"is_severely_disabled_for_benefits","dtype":"bool","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"frs_disability","stage_contract_sha256":"ac500b4cb1bc04d4fb72d198592dd376d61da8c150921a6ac53914ac18be0508","time_period":"2024"},"population":"age_tail.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage frs_education.","id":"frs_education","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["region"],"entity":"household","rows":"all"},{"columns":["age","esa_contrib_reported","esa_income_reported","is_severely_disabled_for_benefits","jsa_contrib_reported","jsa_income_reported","universal_credit_reported"],"entity":"person","rows":"all"}],"kernel":"uk.stage.frs_education@1","mass":"conserve","outputs":[{"column":"current_education","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"highest_education","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"is_in_non_advanced_education","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"is_in_approved_training","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"age_started_or_accepted_current_education_or_training","dtype":"int64","entity":"person","ownership":"produced","rows":"all"},{"column":"is_before_universal_credit_qualifying_young_person_terminal_date","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"adult_ema","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"child_ema","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"receives_benefits_in_own_right","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"reports_outstanding_student_loan","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"age_left_full_time_education","dtype":"int64","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"frs_education","stage_contract_sha256":"592ddc77703f19bb3e1d48b6aecffc98b4e2abd3379db84a06e011bde4fa5549","time_period":"2024"},"population":"age_tail.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage frs_legacy_proxies.","id":"frs_legacy_proxies","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education"],"entity":"person","rows":"all"}],"kernel":"uk.stage.frs_legacy_proxies@1","mass":"conserve","outputs":[{"column":"legacy_jobseeker_proxy","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"esa_health_condition_proxy","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"esa_support_group_proxy","dtype":"bool","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"frs_legacy_proxies","stage_contract_sha256":"1ecf761cf3fa7180da15659e138e67a8654e58272b4fde28344aa27a874ad0aa","time_period":"2024"},"population":"age_tail.boundary","sources":["frs"],"structural":"none","weights":null},{"base":"age_tail.boundary","citation":"","description":"Ownership boundary before frs_education_grant_split rewrites.","id":"frs_education_grant_split.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage frs_education_grant_split.","id":"frs_education_grant_split","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy"],"entity":"person","rows":"all"}],"kernel":"uk.stage.frs_education_grant_split@1","mass":"conserve","outputs":[{"column":"disabled_students_allowance_eligible_expenses","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"education_grants","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"frs_education_grant_split","stage_contract_sha256":"8718f014b90498c2cc7c754289775ca4a41452d9b978d8cbc5f34b64cbdc7df2","time_period":"2024"},"population":"frs_education_grant_split.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage frs_take_up.","id":"frs_take_up","inputs":[{"columns":["frs_benunit_capital","is_married"],"entity":"benunit","rows":"all"},{"columns":["region"],"entity":"household","rows":"all"},{"columns":["age","child_benefit_reported","education_grants","is_uc_claimant","months_since_last_birthday","pension_credit_reported","universal_credit_reported"],"entity":"person","rows":"all"}],"kernel":"uk.stage.frs_take_up@1","mass":"conserve","outputs":[{"column":"would_claim_child_benefit","dtype":"bool","entity":"benunit","ownership":"produced","rows":"all"},{"column":"child_benefit_opts_out","dtype":"bool","entity":"benunit","ownership":"produced","rows":"all"},{"column":"would_claim_pc","dtype":"bool","entity":"benunit","ownership":"produced","rows":"all"},{"column":"would_claim_uc","dtype":"bool","entity":"benunit","ownership":"produced","rows":"all"},{"column":"would_claim_tfc","dtype":"bool","entity":"benunit","ownership":"produced","rows":"all"},{"column":"would_claim_extended_childcare","dtype":"bool","entity":"benunit","ownership":"produced","rows":"all"},{"column":"would_claim_universal_childcare","dtype":"bool","entity":"benunit","ownership":"produced","rows":"all"},{"column":"would_claim_targeted_childcare","dtype":"bool","entity":"benunit","ownership":"produced","rows":"all"},{"column":"would_claim_uc_childcare","dtype":"bool","entity":"benunit","ownership":"produced","rows":"all"},{"column":"maximum_extended_childcare_hours_usage","dtype":"float64","entity":"benunit","ownership":"produced","rows":"all"},{"column":"max_free_entitlement_hours_used","dtype":"float64","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"frs_take_up","stage_contract_sha256":"78aec80408c50455b37308e5a977fb70df3ecf915d6c1e8f80715ad9b58e62cf","time_period":"2024"},"population":"frs_education_grant_split.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage frs_person_draws.","id":"frs_person_draws","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["region"],"entity":"household","rows":"all"},{"columns":["age","employment_income","employment_status","max_free_entitlement_hours_used"],"entity":"person","rows":"all"}],"kernel":"uk.stage.frs_person_draws@1","mass":"conserve","outputs":[{"column":"would_claim_marriage_allowance","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"would_claim_scp","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"attends_private_school_random_draw","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"tax_free_childcare_spend_routed_share","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"is_apprentice","dtype":"bool","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"frs_person_draws","stage_contract_sha256":"112c502d702c640dedbc2dca7d1cfe5ae43e0f0e3ba6acfe49c738dbbfb7e693","time_period":"2024"},"population":"frs_education_grant_split.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage frs_household_draws.","id":"frs_household_draws","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["region"],"entity":"household","rows":"all"},{"columns":["age","is_apprentice"],"entity":"person","rows":"all"}],"kernel":"uk.stage.frs_household_draws@1","mass":"conserve","outputs":[{"column":"household_owns_tv","dtype":"bool","entity":"household","ownership":"produced","rows":"all"},{"column":"would_evade_tv_licence_fee","dtype":"bool","entity":"household","ownership":"produced","rows":"all"},{"column":"main_residential_property_purchased_is_first_home","dtype":"bool","entity":"household","ownership":"produced","rows":"all"},{"column":"property_purchased","dtype":"bool","entity":"household","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"frs_household_draws","stage_contract_sha256":"c74c63b09264319c4bf0049dabba00ecd0ce660beb7b53d6dae71518434bc949","time_period":"2024"},"population":"frs_education_grant_split.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage frs_brma.","id":"frs_brma","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice"],"entity":"person","rows":"all"}],"kernel":"uk.stage.frs_brma@1","mass":"conserve","outputs":[{"column":"brma","dtype":"string","entity":"household","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"frs_brma","stage_contract_sha256":"4285376b37299d375ed583b7f6b1747bd8b7cb1c8c0d19a36481156b5314a854","time_period":"2024"},"population":"frs_education_grant_split.boundary","sources":["frs"],"structural":"none","weights":null},{"base":"frs_education_grant_split.boundary","citation":"","description":"Freeze the assembled-spine gate population.","id":"frs_brma.checkpoint","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage frs_hmrc_spine_leaves.","id":"frs_hmrc_spine_leaves","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["brma","region"],"entity":"household","rows":"all"},{"columns":["age","employment_income"],"entity":"person","rows":"all"}],"kernel":"uk.stage.frs_hmrc_spine_leaves@1","mass":"conserve","outputs":[{"column":"hmrc_spi_pay","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"hmrc_spi_unemployment_benefit_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"hmrc_spi_incapacity_benefit_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"ossben_identifiable_subset","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"srp_regular_code5","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"employer_pension_contributions","dtype":"float64","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"frs_hmrc_spine_leaves","stage_contract_sha256":"6b2e0264fbac47dae5e1fc4fa9e980c5c2caf7f12f165129649a559f3ad7a154","time_period":"2024"},"population":"frs_brma.checkpoint","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage frs_annual_income_spells.","id":"frs_annual_income_spells","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["region"],"entity":"household","rows":"all"},{"columns":["age","employer_pension_contributions","employment_income","gender","self_employment_income"],"entity":"person","rows":"all"}],"kernel":"uk.stage.frs_annual_income_spells@1","mass":"conserve","outputs":[{"column":"employment_income_annual_share","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"employment_income_other_spells","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"self_employment_income_annual_share","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"self_employment_income_other_spells","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"private_pension_income_annual_share","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"contributory_benefits_annual_share","dtype":"float64","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"frs_annual_income_spells","stage_contract_sha256":"2475738aee1e2bba3d93a759ee77b7b1a62e6a87feb07ac7b86c9150d2769009","time_period":"2024"},"population":"frs_brma.checkpoint","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":"frs_brma.checkpoint","citation":"","description":"Run structural UK stage spi_support_channel.","id":"spi_support_channel","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share"],"entity":"person","rows":"all"}],"kernel":"uk.stage.expand.spi_support_channel@1","mass":"declared","outputs":[],"params":{"expand_cells":[["person","person_source_id","int64"],["person","person_support_channel","string"],["person","person_support_clone_index","int64"],["benunit","benunit_source_id","int64"],["benunit","benunit_support_channel","string"],["benunit","benunit_support_clone_index","int64"],["household","source_household_id","int64"],["household","source_year","int64"],["household","source_household_key","string"],["household","household_source_id","int64"],["household","household_support_channel","string"],["household","household_support_clone_index","int64"],["household","household_is_spi_synthetic","bool"]],"expand_weight_entity":"household","expand_weight_kind":"importance","numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"spi_support_channel","stage_contract_sha256":"2c682605139c0a8f96e8ba45a2c03f506d3f758ef437841066a8fdb8b74269b6","time_period":"2024"},"population":null,"sources":["frs"],"structural":"expand","weights":null},{"base":null,"citation":"","description":"Own the cells materialized by spi_support_channel.","id":"spi_support_channel.owned","inputs":[],"kernel":"uk.claim@1","mass":"conserve","outputs":[{"column":"person_source_id","dtype":"int64","entity":"person","ownership":"produced","rows":"all"},{"column":"person_support_channel","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"person_support_clone_index","dtype":"int64","entity":"person","ownership":"produced","rows":"all"},{"column":"benunit_source_id","dtype":"int64","entity":"benunit","ownership":"produced","rows":"all"},{"column":"benunit_support_channel","dtype":"string","entity":"benunit","ownership":"produced","rows":"all"},{"column":"benunit_support_clone_index","dtype":"int64","entity":"benunit","ownership":"produced","rows":"all"},{"column":"source_household_id","dtype":"int64","entity":"household","ownership":"produced","rows":"all"},{"column":"source_year","dtype":"int64","entity":"household","ownership":"produced","rows":"all"},{"column":"source_household_key","dtype":"string","entity":"household","ownership":"produced","rows":"all"},{"column":"household_source_id","dtype":"int64","entity":"household","ownership":"produced","rows":"all"},{"column":"household_support_channel","dtype":"string","entity":"household","ownership":"produced","rows":"all"},{"column":"household_support_clone_index","dtype":"int64","entity":"household","ownership":"produced","rows":"all"},{"column":"household_is_spi_synthetic","dtype":"bool","entity":"household","ownership":"produced","rows":"all"}],"params":{"materialized_expand_outputs":["person.person_source_id","person.person_support_channel","person.person_support_clone_index","benunit.benunit_source_id","benunit.benunit_support_channel","benunit.benunit_support_clone_index","household.source_household_id","household.source_year","household.source_household_key","household.household_source_id","household.household_support_channel","household.household_support_clone_index","household.household_is_spi_synthetic"]},"population":"spi_support_channel","sources":[],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":"spi_support_channel","citation":"","description":"Run structural UK stage spi_income_band_donors.","id":"spi_income_band_donors","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index"],"entity":"person","rows":"all"}],"kernel":"uk.stage.expand.spi_income_band_donors@1","mass":"declared","outputs":[],"params":{"expand_cells":[["person","person_source_id","int64"],["person","person_support_channel","string"],["person","person_support_clone_index","int64"],["benunit","benunit_source_id","int64"],["benunit","benunit_support_channel","string"],["benunit","benunit_support_clone_index","int64"],["household","household_source_id","int64"],["household","household_support_channel","string"],["household","household_support_clone_index","int64"],["household","household_is_spi_synthetic","bool"],["household","household_is_spi_income_band_donor","bool"],["household","spi_income_band_donor_lower_bound","float64"],["person","person_is_spi_income_band_carrier","bool"]],"expand_weight_entity":"household","expand_weight_kind":"importance","numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"spi_income_band_donors","stage_contract_sha256":"4754ace499836c44b00c1c53a9ef5fd686d3a29108d0d546d7a11dcc37ee8807","time_period":"2024"},"population":null,"sources":["frs"],"structural":"expand","weights":null},{"base":null,"citation":"","description":"Own the cells materialized by spi_income_band_donors.","id":"spi_income_band_donors.owned","inputs":[],"kernel":"uk.claim@1","mass":"conserve","outputs":[{"column":"person_source_id","dtype":"int64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"person_support_channel","dtype":"string","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"person_support_clone_index","dtype":"int64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"benunit_source_id","dtype":"int64","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"benunit_support_channel","dtype":"string","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"benunit_support_clone_index","dtype":"int64","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"household_source_id","dtype":"int64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"household_support_channel","dtype":"string","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"household_support_clone_index","dtype":"int64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"household_is_spi_synthetic","dtype":"bool","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"household_is_spi_income_band_donor","dtype":"bool","entity":"household","ownership":"produced","rows":"all"},{"column":"spi_income_band_donor_lower_bound","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"person_is_spi_income_band_carrier","dtype":"bool","entity":"person","ownership":"produced","rows":"all"}],"params":{"materialized_expand_outputs":["household.household_is_spi_income_band_donor","household.spi_income_band_donor_lower_bound","person.person_is_spi_income_band_carrier"]},"population":"spi_income_band_donors","sources":[],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage hmrc_spi_income_spine.","id":"hmrc_spi_income_spine","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","rent_paid_as_boarder","rent_paid_as_lodger","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","maintenance_expenses","childcare_expenses","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","ssmg_reported","incapacity_benefit_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","ossben_identifiable_subset","srp_regular_code5","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier"],"entity":"person","rows":"all"}],"kernel":"uk.stage.hmrc_spi_income_spine@1","mass":"conserve","outputs":[{"column":"charitable_investment_gifts","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"gift_aid","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"other_investment_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"hmrc_spi_employment_benefits","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"hmrc_spi_employment_expenses","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"hmrc_spi_other_social_security_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"hmrc_spi_taxable_termination_pay","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"hmrc_spi_miscellaneous_employment_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"hmrc_spi_other_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"hmrc_spi_state_pension_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"property_finance_costs","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"hmrc_spi_employed_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"hmrc_spi_total_earned_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"hmrc_spi_total_investment_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"hmrc_spi_assessable_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"employment_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"self_employment_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"savings_interest_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"dividend_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"private_pension_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"property_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"employee_pension_contributions","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"employer_pension_contributions","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"personal_pension_contributions","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"pension_contributions_via_salary_sacrifice","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"individual_savings_account_interest_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"universal_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"pension_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"child_benefit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"housing_benefit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"income_support_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"working_tax_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"child_tax_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"attendance_allowance_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"state_pension_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"dla_sc_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"dla_m_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"pip_m_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"pip_dl_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"sda_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"carers_allowance_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"iidb_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"afcs_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"bsp_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"war_widows_pension_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"widowed_parents_allowance_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"winter_fuel_allowance_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"council_tax_benefit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"jsa_contrib_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"jsa_income_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"esa_contrib_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"esa_income_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"trading_loss","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"loss_relief","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"ni_class_4_losses_brought_forward","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"owned_company_income_share","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"hmrc_spi_pay","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"hmrc_spi_unemployment_benefit_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"hmrc_spi_incapacity_benefit_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"employment_income_annual_share","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"employment_income_other_spells","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"self_employment_income_annual_share","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"self_employment_income_other_spells","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"private_pension_income_annual_share","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"contributory_benefits_annual_share","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"annuity_and_trust_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"aa_category","dtype":"string","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"dla_sc_category","dtype":"string","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"dla_m_category","dtype":"string","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"pip_m_category","dtype":"string","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"pip_dl_category","dtype":"string","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_disabled_for_benefits","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_enhanced_disabled_for_benefits","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_severely_disabled_for_benefits","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"would_claim_carers_allowance","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"uc_is_in_startup_period","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"uc_is_in_gainful_self_employment","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"esa_includes_support_component","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"reports_rent_from_other_property","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"stands_as_sole_owner_or_partner_of_company","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_engaged_in_owned_company_trade","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"owned_company_is_main_employment","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"owned_company_carries_on_trade","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"owned_company_carries_on_property_business","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"person_is_spi_income_recipient","dtype":"bool","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"hmrc_spi_income_spine","stage_contract_sha256":"b12912d2eee7e34ade513aa02dd554cbb26a7dc014155a031c53d1defe53a077","time_period":"2024"},"population":"spi_income_band_donors","sources":["frs"],"structural":"none","weights":null},{"base":"spi_income_band_donors","citation":"","description":"Ownership boundary before company_cars rewrites.","id":"company_cars.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage company_cars.","id":"company_cars","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","rent_paid_as_boarder","rent_paid_as_lodger","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient"],"entity":"person","rows":"all"}],"kernel":"uk.stage.company_cars@1","mass":"conserve","outputs":[{"column":"company_car_list_price","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"company_car_co2_emissions","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"company_car_fuel_type","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"company_car_electric_range","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"company_car_capital_contributions","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"company_car_private_fuel_provided","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"employment_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"uc_is_in_gainful_self_employment","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"company_cars","stage_contract_sha256":"a4e0348ecb76f8550486df0682d4f2d6b7d2dee3038f5bbcf6bd0a347b7dfa6a","time_period":"2024"},"population":"company_cars.boundary","sources":["frs"],"structural":"none","weights":null},{"base":"company_cars.boundary","citation":"","description":"Ownership boundary before spi_housing_shell rewrites.","id":"spi_housing_shell.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage spi_housing_shell.","id":"spi_housing_shell","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["council_tax_single_adult_raw","household_support_channel","ons_household_type","region"],"entity":"household","rows":"all"},{"columns":["age","dividend_income","employment_income","individual_savings_account_interest_income","is_household_head","other_investment_income","private_pension_income","property_income","savings_interest_income","self_employment_income","state_pension_reported","uc_is_in_gainful_self_employment"],"entity":"person","rows":"all"}],"kernel":"uk.stage.spi_housing_shell@1","mass":"conserve","outputs":[{"column":"tenure_type","dtype":"string","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"accommodation_type","dtype":"string","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"council_tax_band","dtype":"string","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"num_bedrooms","dtype":"int64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"council_tax","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"council_tax_reported","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"rent","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"mortgage_interest_repayment","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"mortgage_capital_repayment","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"structural_insurance_payments","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"housing_service_charges","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"water_and_sewerage_charges","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"domestic_rates","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"subrent","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"council_tax_rebate","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"housing_benefit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"council_tax_benefit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"spi_housing_shell","stage_contract_sha256":"524549b7dfbd0fceb505311eb0c3b923cfe3b11a8acd5ecfbfbcbb477e142eb1","time_period":"2024"},"population":"spi_housing_shell.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage was_wealth.","id":"was_wealth","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided"],"entity":"person","rows":"all"}],"kernel":"uk.stage.was_wealth@1","mass":"conserve","outputs":[{"column":"owned_land","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"property_wealth","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"corporate_wealth","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"private_pension_wealth","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"gross_financial_wealth","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"net_financial_wealth","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"main_residence_value","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"other_residential_property_value","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"non_residential_property_value","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"savings","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"num_vehicles","dtype":"int64","entity":"household","ownership":"produced","rows":"all"},{"column":"cash_isa","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"stocks_and_shares_isa","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"mortgage_debt","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"consumer_debt","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"student_loan_balance","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"directly_held_shares","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"unit_and_investment_trusts","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"other_residential_property_secured_debt","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"non_residential_property_secured_debt","dtype":"float64","entity":"household","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"was_wealth","stage_contract_sha256":"e648f94320deffd15d4e7c2f51e044e8b3572b24bb62d65f157edcb8f31753b5","time_period":"2024"},"population":"spi_housing_shell.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage was_lisa.","id":"was_lisa","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance"],"entity":"person","rows":"all"}],"kernel":"uk.stage.was_lisa@1","mass":"conserve","outputs":[{"column":"has_lifetime_isa","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"lifetime_isa_balance","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"household_lifetime_isa_balance","dtype":"float64","entity":"household","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"was_lisa","stage_contract_sha256":"bf0389b9b72cd952ff1290dc190f2860497f6c68bb08dc2fa6f523bb33f59ab1","time_period":"2024"},"population":"spi_housing_shell.boundary","sources":["frs"],"structural":"none","weights":null},{"base":"spi_housing_shell.boundary","citation":"","description":"Ownership boundary before regional_property_uprating rewrites.","id":"regional_property_uprating.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage regional_property_uprating.","id":"regional_property_uprating","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["household_lifetime_isa_balance","household_support_channel","region"],"entity":"household","rows":"all"},{"columns":["age"],"entity":"person","rows":"all"}],"kernel":"uk.stage.regional_property_uprating@1","mass":"conserve","outputs":[{"column":"main_residence_value","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"property_wealth","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"owned_land","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"other_residential_property_value","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"non_residential_property_value","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"regional_property_uprating","stage_contract_sha256":"f45db95fde3f93731c0925b9bf8c12021921df2e4908770acdec1e3c97889277","time_period":"2024"},"population":"regional_property_uprating.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":"regional_property_uprating.boundary","citation":"","description":"Run structural UK stage high_value_home_support.","id":"high_value_home_support","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance"],"entity":"person","rows":"all"}],"kernel":"uk.stage.expand.high_value_home_support@1","mass":"conserve","outputs":[],"params":{"expand_cells":[["household","household_is_high_value_support_copy","bool"],["household","high_value_support_copies","int64"],["household","high_value_support_copy_index","int64"]],"expand_weight_entity":"household","expand_weight_kind":"importance","numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"high_value_home_support","stage_contract_sha256":"174f4b38228d98107bee1639d1a297a2748bb618e87c7bd0a6c869c6ab06f8fa","time_period":"2024"},"population":null,"sources":["frs"],"structural":"expand","weights":null},{"base":null,"citation":"","description":"Own the cells materialized by high_value_home_support.","id":"high_value_home_support.owned","inputs":[],"kernel":"uk.claim@1","mass":"conserve","outputs":[{"column":"household_is_high_value_support_copy","dtype":"bool","entity":"household","ownership":"produced","rows":"all"},{"column":"high_value_support_copies","dtype":"int64","entity":"household","ownership":"produced","rows":"all"},{"column":"high_value_support_copy_index","dtype":"int64","entity":"household","ownership":"produced","rows":"all"}],"params":{"materialized_expand_outputs":["household.household_is_high_value_support_copy","household.high_value_support_copies","household.high_value_support_copy_index"]},"population":"high_value_home_support","sources":[],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage regional_home_values.","id":"regional_home_values","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["high_value_support_copy_index","household_is_high_value_support_copy","household_source_id","region","tenure_type"],"entity":"household","rows":"all"},{"columns":["age"],"entity":"person","rows":"all"}],"kernel":"uk.stage.regional_home_values@1","mass":"conserve","outputs":[{"column":"main_residence_value","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"property_wealth","dtype":"float64","entity":"household","ownership":"produced","rewrite":true,"rows":"all"},{"column":"main_residence_value_rank_basis","dtype":"float64","entity":"household","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"regional_home_values","stage_contract_sha256":"48e8a622c8830a54a4c48d9d8cb4f011751aa05d7cb5f6c7f0e06e1121b720b1","time_period":"2024"},"population":"high_value_home_support","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage property_components.","id":"property_components","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["main_residence_value_rank_basis","non_residential_property_value","other_residential_property_value","region","subrent"],"entity":"household","rows":"all"},{"columns":["age","is_household_head","person_is_spi_income_recipient","person_support_channel"],"entity":"person","rows":"all"}],"kernel":"uk.stage.property_components@1","mass":"conserve","outputs":[{"column":"property_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"property_finance_costs","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"property_rental_income","dtype":"float64","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"property_components","stage_contract_sha256":"5022c27a480f057f8b8a4f87d9305ad00b1b9c724b225e37b02403b79b99f82e","time_period":"2024"},"population":"high_value_home_support","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage property_purchases.","id":"property_purchases","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["household_source_id","non_residential_property_value","other_residential_property_value","region"],"entity":"household","rows":"all"},{"columns":["age","property_rental_income"],"entity":"person","rows":"all"}],"kernel":"uk.stage.property_purchases@1","mass":"conserve","outputs":[{"column":"additional_residential_property_purchased","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"non_residential_property_purchased","dtype":"float64","entity":"household","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"property_purchases","stage_contract_sha256":"7af04815a11c84990306ea0293606448cdce83bb57359fe3bb4ffbf592a39fb2","time_period":"2024"},"population":"high_value_home_support","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage nts_bus_travel.","id":"nts_bus_travel","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income"],"entity":"person","rows":"all"}],"kernel":"uk.stage.nts_bus_travel@1","mass":"conserve","outputs":[{"column":"local_bus_use_band","dtype":"int64","entity":"person","ownership":"produced","rows":"all"},{"column":"bus_in_london_trips","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"other_local_bus_trips","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"local_bus_trips","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"bus_pass_eligible","dtype":"bool","entity":"person","ownership":"produced","rows":"all"},{"column":"local_bus_single_fare_share","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"household_local_bus_trips","dtype":"float64","entity":"household","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"nts_bus_travel","stage_contract_sha256":"f96c01de0180936596838a5cfb586e398ac33e521b4e2e58f6ed10c0dfd2fea8","time_period":"2024"},"population":"high_value_home_support","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage lcfs_consumption.","id":"lcfs_consumption","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share"],"entity":"person","rows":"all"}],"kernel":"uk.stage.lcfs_consumption@1","mass":"conserve","outputs":[{"column":"food_and_non_alcoholic_beverages_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"alcohol_and_tobacco_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"clothing_and_footwear_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"housing_water_and_electricity_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"household_furnishings_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"health_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"transport_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"communication_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"recreation_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"education_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"restaurants_and_hotels_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"miscellaneous_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"petrol_spending","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"diesel_spending","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"bus_fare_spending","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"domestic_energy_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"electricity_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"gas_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"liquid_fuel_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"solid_fuel_consumption","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"has_fuel_consumption","dtype":"bool","entity":"household","ownership":"produced","rows":"all"},{"column":"uses_energy_prepayment_meter","dtype":"bool","entity":"household","ownership":"produced","rows":"all"},{"column":"beer_litres","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"cider_litres","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"wine_litres","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"spirits_litres","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"other_fermented_litres","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"beer_draught_share","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"cider_draught_share","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"cigarettes_per_week","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"hand_rolling_tobacco_grams_per_week","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"cigars_grams_per_week","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"other_tobacco_grams_per_week","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"remote_gaming_net_losses","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"pool_betting_net_receipts","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"bingo_net_receipts","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"national_lottery_ticket_spending","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"land_based_casino_net_losses","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"machine_games_lower_rate_net_takings","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"machine_games_standard_rate_net_takings","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"machine_games_higher_rate_net_takings","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"land_based_fixed_odds_betting_net_losses","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"remote_uk_horseracing_betting_net_losses","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"remote_other_betting_net_losses","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"betting_exchange_commission","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"horse_and_dog_pool_betting_net_losses","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"car_fuel_type","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"car_co2_emissions","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"car_engine_size","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"car_first_registration_date","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"car_is_ved_exempt","dtype":"bool","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"lcfs_consumption","stage_contract_sha256":"9b4c691d4bda26cb5e45083ad1970378a1e1b632bee52759f498461f4ba90413","time_period":"2024"},"population":"high_value_home_support","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage etb_vat.","id":"etb_vat","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","car_fuel_type","car_co2_emissions","car_engine_size","car_first_registration_date","car_is_ved_exempt"],"entity":"person","rows":"all"}],"kernel":"uk.stage.etb_vat@1","mass":"conserve","outputs":[{"column":"full_rate_vat_expenditure_rate","dtype":"float64","entity":"household","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"etb_vat","stage_contract_sha256":"216b28835eba7a952243134dffbb45a1b3a0cdff2e3e7d0e94e2acbf754052b5","time_period":"2024"},"population":"high_value_home_support","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage etb_services.","id":"etb_services","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","car_fuel_type","car_co2_emissions","car_engine_size","car_first_registration_date","car_is_ved_exempt"],"entity":"person","rows":"all"}],"kernel":"uk.stage.etb_services@1","mass":"conserve","outputs":[{"column":"dfe_education_spending","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"rail_subsidy_spending","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"bus_subsidy_spending","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"rail_usage","dtype":"float64","entity":"household","ownership":"produced","rows":"all"},{"column":"a_and_e_visits","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"admitted_patient_visits","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"outpatient_visits","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"nhs_a_and_e_spending","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"nhs_admitted_patient_spending","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"nhs_outpatient_spending","dtype":"float64","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"etb_services","stage_contract_sha256":"2c5f860468ce64c1b7216e15d1f0f832d6dca5039b034af3e71470f4f682d21a","time_period":"2024"},"population":"high_value_home_support","sources":["frs"],"structural":"none","weights":null},{"base":"high_value_home_support","citation":"","description":"Ownership boundary before uc_reporter_redraw rewrites.","id":"uc_reporter_redraw.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","car_fuel_type","car_co2_emissions","car_engine_size","car_first_registration_date","car_is_ved_exempt","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage uc_reporter_redraw.","id":"uc_reporter_redraw","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","car_fuel_type","car_co2_emissions","car_engine_size","car_first_registration_date","car_is_ved_exempt","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending"],"entity":"person","rows":"all"}],"kernel":"uk.stage.uc_reporter_redraw@1","mass":"conserve","outputs":[{"column":"universal_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"uc_reporter_redraw","stage_contract_sha256":"b03d4947d6cb0404ba410c548e1850d5abe0c7dae2dc097d419b63eea04920a9","time_period":"2024"},"population":"uc_reporter_redraw.boundary","sources":["frs"],"structural":"none","weights":null},{"base":"uc_reporter_redraw.boundary","citation":"","description":"Ownership boundary before spi_benefit_coherence rewrites.","id":"spi_benefit_coherence.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","car_fuel_type","car_co2_emissions","car_engine_size","car_first_registration_date","car_is_ved_exempt","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage spi_benefit_coherence.","id":"spi_benefit_coherence","inputs":[{"columns":["benunit_support_channel","frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["household_source_id","region"],"entity":"household","rows":"all"},{"columns":["aa_category","age","attendance_allowance_reported","dla_m_category","dla_m_reported","dla_sc_category","dla_sc_reported","employment_income","hours_worked","incapacity_benefit_reported","is_uc_claimant","person_source_id","person_support_channel","pip_dl_category","pip_dl_reported","pip_m_category","pip_m_reported","self_employment_income","universal_credit_reported"],"entity":"person","rows":"all"}],"kernel":"uk.stage.spi_benefit_coherence@1","mass":"conserve","outputs":[{"column":"jsa_income_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"esa_income_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"income_support_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"working_tax_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"child_tax_credit_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"sda_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"ssmg_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"iidb_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"afcs_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"bsp_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"war_widows_pension_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"widowed_parents_allowance_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"jsa_contrib_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"esa_contrib_reported","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_disabled_for_benefits","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_enhanced_disabled_for_benefits","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"is_severely_disabled_for_benefits","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"receives_benefits_in_own_right","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"would_claim_uc","dtype":"bool","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"spi_benefit_coherence","stage_contract_sha256":"2c0162b22d5fcab2296f654177c9f87710184c20fb323cff25710ee0667fcdef","time_period":"2024"},"population":"spi_benefit_coherence.boundary","sources":["frs"],"structural":"none","weights":null},{"base":"spi_benefit_coherence.boundary","citation":"","description":"Ownership boundary before uc_capital_coherence rewrites.","id":"uc_capital_coherence.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","car_fuel_type","car_co2_emissions","car_engine_size","car_first_registration_date","car_is_ved_exempt","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage uc_capital_coherence.","id":"uc_capital_coherence","inputs":[{"columns":["benunit_support_channel","dependent_children","is_married"],"entity":"benunit","rows":"all"},{"columns":["non_residential_property_secured_debt","non_residential_property_value","other_residential_property_secured_debt","other_residential_property_value","owned_land","region"],"entity":"household","rows":"all"},{"columns":["age","dividend_income","individual_savings_account_interest_income","is_benunit_head","is_household_head","is_parent","other_investment_income","person_support_channel","savings_interest_income","universal_credit_reported"],"entity":"person","rows":"all"}],"kernel":"uk.stage.uc_capital_coherence@1","mass":"conserve","outputs":[{"column":"uc_reported_capital","dtype":"float64","entity":"benunit","ownership":"produced","rows":"all"},{"column":"pension_credit_reported_capital","dtype":"float64","entity":"benunit","ownership":"produced","rows":"all"},{"column":"frs_benunit_capital","dtype":"float64","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"would_claim_uc","dtype":"bool","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"uc_capital_coherence","stage_contract_sha256":"67478de55540a138448d9da387a64e5e2afbb17caf17b244bc3baaa34de56022","time_period":"2024"},"population":"uc_capital_coherence.boundary","sources":["frs"],"structural":"none","weights":null},{"base":"uc_capital_coherence.boundary","citation":"","description":"Ownership boundary before uc_take_up rewrites.","id":"uc_take_up.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","car_fuel_type","car_co2_emissions","car_engine_size","car_first_registration_date","car_is_ved_exempt","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage uc_take_up.","id":"uc_take_up","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","car_fuel_type","car_co2_emissions","car_engine_size","car_first_registration_date","car_is_ved_exempt","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending"],"entity":"person","rows":"all"}],"kernel":"uk.stage.uc_take_up@1","mass":"conserve","outputs":[{"column":"would_claim_uc","dtype":"bool","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"uc_take_up","stage_contract_sha256":"1f5bb5a59426d5a1f0a8ba40180b744725be29dea741a4e93924f4f55e9a7e11","time_period":"2024"},"population":"uc_take_up.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage uc_legacy_closure_take_up.","id":"uc_legacy_closure_take_up","inputs":[{"columns":["frs_benunit_capital","would_claim_uc"],"entity":"benunit","rows":"all"},{"columns":["household_source_id","region"],"entity":"household","rows":"all"},{"columns":["age","child_tax_credit_reported","esa_income_reported","housing_benefit_reported","income_support_reported","is_claimant_or_partner","jsa_income_reported","universal_credit_reported","working_tax_credit_reported"],"entity":"person","rows":"all"}],"kernel":"uk.stage.uc_legacy_closure_take_up@1","mass":"conserve","outputs":[{"column":"would_claim_uc_at_legacy_closure","dtype":"bool","entity":"benunit","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"uc_legacy_closure_take_up","stage_contract_sha256":"bd7d87d11fb5271cd5a3e26a0268f2eaacb155fa87a9f4a8f00a6418b6da6b5c","time_period":"2024"},"population":"uc_take_up.boundary","sources":["frs"],"structural":"none","weights":null},{"base":"uc_take_up.boundary","citation":"","description":"Ownership boundary before pension_credit_take_up rewrites.","id":"pension_credit_take_up.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital","would_claim_uc_at_legacy_closure"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","car_fuel_type","car_co2_emissions","car_engine_size","car_first_registration_date","car_is_ved_exempt","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage pension_credit_take_up.","id":"pension_credit_take_up","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital","would_claim_uc_at_legacy_closure"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","car_fuel_type","car_co2_emissions","car_engine_size","car_first_registration_date","car_is_ved_exempt","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending"],"entity":"person","rows":"all"}],"kernel":"uk.stage.pension_credit_take_up@1","mass":"conserve","outputs":[{"column":"would_claim_pc","dtype":"bool","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"has_mixed_age_couple_pension_credit_saving","dtype":"bool","entity":"benunit","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"pension_credit_take_up","stage_contract_sha256":"e887dbbb186cb79f6d3fc9a629269dbac4a43381b9574df65353b816f01a3a35","time_period":"2024"},"population":"pension_credit_take_up.boundary","sources":["frs"],"structural":"none","weights":null},{"base":"pension_credit_take_up.boundary","citation":"","description":"Ownership boundary before child_benefit_take_up rewrites.","id":"child_benefit_take_up.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital","would_claim_uc_at_legacy_closure","has_mixed_age_couple_pension_credit_saving"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","car_fuel_type","car_co2_emissions","car_engine_size","car_first_registration_date","car_is_ved_exempt","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage child_benefit_take_up.","id":"child_benefit_take_up","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital","would_claim_uc_at_legacy_closure","has_mixed_age_couple_pension_credit_saving"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","car_fuel_type","car_co2_emissions","car_engine_size","car_first_registration_date","car_is_ved_exempt","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending"],"entity":"person","rows":"all"}],"kernel":"uk.stage.child_benefit_take_up@1","mass":"conserve","outputs":[{"column":"would_claim_child_benefit","dtype":"bool","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"child_benefit_opts_out","dtype":"bool","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"child_benefit_take_up","stage_contract_sha256":"c99071c19d0184440163f7ab49ee33cc19ad0ad4e2f6462ed50c36917b0da364","time_period":"2024"},"population":"child_benefit_take_up.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage uc_deduction_attributes.","id":"uc_deduction_attributes","inputs":[{"columns":["child_benefit_opts_out","frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["region"],"entity":"household","rows":"all"},{"columns":["age"],"entity":"person","rows":"all"}],"kernel":"uk.stage.uc_deduction_attributes@1","mass":"conserve","outputs":[{"column":"uc_deduction_random_draw","dtype":"float64","entity":"benunit","ownership":"produced","rows":"all"},{"column":"uc_deduction_type_random_draw","dtype":"float64","entity":"benunit","ownership":"produced","rows":"all"},{"column":"uc_latent_deduction_rate","dtype":"float64","entity":"benunit","ownership":"produced","rows":"all"},{"column":"uc_deduction_combination","dtype":"string","entity":"benunit","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"uc_deduction_attributes","stage_contract_sha256":"6bc7e3ec1a5712e23ca1b7d2956e8b17f2526b94431ba3e5a9294b04658e4fe0","time_period":"2024"},"population":"child_benefit_take_up.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":"child_benefit_take_up.boundary","citation":"","description":"Run structural UK stage cgt_support_split.","id":"cgt_support_split","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital","would_claim_uc_at_legacy_closure","has_mixed_age_couple_pension_credit_saving","uc_deduction_random_draw","uc_deduction_type_random_draw","uc_latent_deduction_rate","uc_deduction_combination"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","car_fuel_type","car_co2_emissions","car_engine_size","car_first_registration_date","car_is_ved_exempt","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending"],"entity":"person","rows":"all"}],"kernel":"uk.stage.expand.cgt_support_split@1","mass":"conserve","outputs":[],"params":{"expand_cells":[["household","household_is_cgt_support_copy","bool"],["household","cgt_support_copies","int64"],["household","cgt_support_copy_index","int64"]],"expand_weight_entity":"household","expand_weight_kind":"importance","numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"cgt_support_split","stage_contract_sha256":"88a0f5974de73dc778a782c9ce6e5f811e9d17e9eb86a30207bc9276134e53af","time_period":"2024"},"population":null,"sources":["frs"],"structural":"expand","weights":null},{"base":null,"citation":"","description":"Own the cells materialized by cgt_support_split.","id":"cgt_support_split.owned","inputs":[],"kernel":"uk.claim@1","mass":"conserve","outputs":[{"column":"household_is_cgt_support_copy","dtype":"bool","entity":"household","ownership":"produced","rows":"all"},{"column":"cgt_support_copies","dtype":"int64","entity":"household","ownership":"produced","rows":"all"},{"column":"cgt_support_copy_index","dtype":"int64","entity":"household","ownership":"produced","rows":"all"}],"params":{"materialized_expand_outputs":["household.household_is_cgt_support_copy","household.cgt_support_copies","household.cgt_support_copy_index"]},"population":"cgt_support_split","sources":[],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":"cgt_support_split","citation":"","description":"Run structural UK stage cgt_incidence_clone.","id":"cgt_incidence_clone","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital","would_claim_uc_at_legacy_closure","has_mixed_age_couple_pension_credit_saving","uc_deduction_random_draw","uc_deduction_type_random_draw","uc_latent_deduction_rate","uc_deduction_combination"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage","household_is_cgt_support_copy","cgt_support_copies","cgt_support_copy_index"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","car_fuel_type","car_co2_emissions","car_engine_size","car_first_registration_date","car_is_ved_exempt","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending"],"entity":"person","rows":"all"}],"kernel":"uk.stage.expand.cgt_incidence_clone@1","mass":"conserve","outputs":[],"params":{"expand_cells":[["household","household_is_capital_gains_clone","bool"],["person","capital_gains","float64"]],"expand_weight_entity":"household","expand_weight_kind":"importance","numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"cgt_incidence_clone","stage_contract_sha256":"29198953c5522c9b996b981478909916870977a79e9f2feb2db7e9e72ef15de8","time_period":"2024"},"population":null,"sources":["frs"],"structural":"expand","weights":null},{"base":null,"citation":"","description":"Own the cells materialized by cgt_incidence_clone.","id":"cgt_incidence_clone.owned","inputs":[],"kernel":"uk.claim@1","mass":"conserve","outputs":[{"column":"household_is_capital_gains_clone","dtype":"bool","entity":"household","ownership":"produced","rows":"all"},{"column":"capital_gains","dtype":"float64","entity":"person","ownership":"produced","rows":"all"}],"params":{"materialized_expand_outputs":["household.household_is_capital_gains_clone","person.capital_gains"]},"population":"cgt_incidence_clone","sources":[],"structural":"none","weights":null},{"base":"cgt_incidence_clone","citation":"","description":"Ownership boundary before hmrc_cgt_gains_spine rewrites.","id":"hmrc_cgt_gains_spine.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital","would_claim_uc_at_legacy_closure","has_mixed_age_couple_pension_credit_saving","uc_deduction_random_draw","uc_deduction_type_random_draw","uc_latent_deduction_rate","uc_deduction_combination"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage","household_is_cgt_support_copy","cgt_support_copies","cgt_support_copy_index","household_is_capital_gains_clone"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","car_fuel_type","car_co2_emissions","car_engine_size","car_first_registration_date","car_is_ved_exempt","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending","capital_gains"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage hmrc_cgt_gains_spine.","id":"hmrc_cgt_gains_spine","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["cgt_support_copies","corporate_wealth","gross_financial_wealth","household_is_cgt_support_copy","non_residential_property_value","other_residential_property_value","region"],"entity":"household","rows":"all"},{"columns":["age","dividend_income","employment_income","individual_savings_account_interest_income","miscellaneous_income","private_pension_income","property_income","savings_interest_income","self_employment_income","state_pension_reported"],"entity":"person","rows":"all"}],"kernel":"uk.stage.hmrc_cgt_gains_spine@1","mass":"conserve","outputs":[{"column":"capital_gains","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"hmrc_cgt_gains_spine","stage_contract_sha256":"b5d27d6b6307acec73a9336a00ef3e4cd900164787362e1157a49ffaa8af50ef","time_period":"2024"},"population":"hmrc_cgt_gains_spine.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":"hmrc_cgt_gains_spine.boundary","citation":"","description":"Run structural UK stage cgt_incidence_anchor.","id":"cgt_incidence_anchor","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["household_is_capital_gains_clone","region"],"entity":"household","rows":"all"},{"columns":["age","capital_gains","dividend_income","employment_income","individual_savings_account_interest_income","miscellaneous_income","private_pension_income","property_income","savings_interest_income","self_employment_income","state_pension_reported"],"entity":"person","rows":"all"}],"kernel":"uk.stage.expand.cgt_incidence_anchor@1","mass":"conserve","outputs":[],"params":{"expand_cells":[],"expand_weight_entity":"household","expand_weight_kind":"importance","numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"cgt_incidence_anchor","stage_contract_sha256":"ed54c55428e56d7597c57c8459b014aa43b2ff9495b903f0b789bd5e4264ca9a","time_period":"2024"},"population":null,"sources":["frs"],"structural":"expand","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":"cgt_incidence_anchor","citation":"","description":"Run structural UK stage cgt_residential_split.","id":"cgt_residential_split","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital","would_claim_uc_at_legacy_closure","has_mixed_age_couple_pension_credit_saving","uc_deduction_random_draw","uc_deduction_type_random_draw","uc_latent_deduction_rate","uc_deduction_combination"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage","household_is_cgt_support_copy","cgt_support_copies","cgt_support_copy_index","household_is_capital_gains_clone"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","car_fuel_type","car_co2_emissions","car_engine_size","car_first_registration_date","car_is_ved_exempt","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending","capital_gains"],"entity":"person","rows":"all"}],"kernel":"uk.stage.expand.cgt_residential_split@1","mass":"conserve","outputs":[],"params":{"expand_cells":[["household","household_is_cgt_residential_clone","bool"],["household","cgt_residential_clone_index","int64"],["person","cgt_residential_probability","float64"],["person","capital_gains_residential_property","float64"]],"expand_weight_entity":"household","expand_weight_kind":"importance","numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"cgt_residential_split","stage_contract_sha256":"57d73fd1e8673d747fed04bb73b3eb1a8b215f73b7d24dd5b191b10ecf1e505f","time_period":"2024"},"population":null,"sources":["frs"],"structural":"expand","weights":null},{"base":null,"citation":"","description":"Own the cells materialized by cgt_residential_split.","id":"cgt_residential_split.owned","inputs":[],"kernel":"uk.claim@1","mass":"conserve","outputs":[{"column":"household_is_cgt_residential_clone","dtype":"bool","entity":"household","ownership":"produced","rows":"all"},{"column":"cgt_residential_clone_index","dtype":"int64","entity":"household","ownership":"produced","rows":"all"},{"column":"cgt_residential_probability","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"capital_gains_residential_property","dtype":"float64","entity":"person","ownership":"produced","rows":"all"}],"params":{"materialized_expand_outputs":["household.household_is_cgt_residential_clone","household.cgt_residential_clone_index","person.cgt_residential_probability","person.capital_gains_residential_property"]},"population":"cgt_residential_split","sources":[],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage hmrc_cgt_asset_type_spine.","id":"hmrc_cgt_asset_type_spine","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["corporate_wealth","gross_financial_wealth","other_residential_property_value","region","stocks_and_shares_isa"],"entity":"household","rows":"all"},{"columns":["age","capital_gains","capital_gains_residential_property","dividend_income","property_income","reports_rent_from_other_property","self_employment_income"],"entity":"person","rows":"all"}],"kernel":"uk.stage.hmrc_cgt_asset_type_spine@1","mass":"conserve","outputs":[{"column":"capital_gains_asset_type","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"capital_gains_badr","dtype":"float64","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"hmrc_cgt_asset_type_spine","stage_contract_sha256":"722e19b00e13d98ce9fde4069ef6ebf3e30ed9143871bec788992a36b94b5e85","time_period":"2024"},"population":"cgt_residential_split","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage salary_sacrifice.","id":"salary_sacrifice","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital","would_claim_uc_at_legacy_closure","has_mixed_age_couple_pension_credit_saving","uc_deduction_random_draw","uc_deduction_type_random_draw","uc_latent_deduction_rate","uc_deduction_combination"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage","household_is_cgt_support_copy","cgt_support_copies","cgt_support_copy_index","household_is_capital_gains_clone","household_is_cgt_residential_clone","cgt_residential_clone_index"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","car_fuel_type","car_co2_emissions","car_engine_size","car_first_registration_date","car_is_ved_exempt","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending","capital_gains","cgt_residential_probability","capital_gains_residential_property","capital_gains_asset_type","capital_gains_badr"],"entity":"person","rows":"all"}],"kernel":"uk.stage.salary_sacrifice@1","mass":"conserve","outputs":[{"column":"pension_contributions_via_salary_sacrifice","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"pension_contributions_via_bonus_sacrifice","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"employee_pension_contributions","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"employment_income","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"},{"column":"salary_sacrifice_pre_conversion_pay","dtype":"float64","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"salary_sacrifice","stage_contract_sha256":"d653f391e521528a66aae725488c307945ed870203e3070c89766ecaae392624","time_period":"2024"},"population":"cgt_residential_split","sources":["frs"],"structural":"none","weights":null},{"base":"cgt_residential_split","citation":"","description":"Ownership boundary before carers_allowance_take_up rewrites.","id":"carers_allowance_take_up.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital","would_claim_uc_at_legacy_closure","has_mixed_age_couple_pension_credit_saving","uc_deduction_random_draw","uc_deduction_type_random_draw","uc_latent_deduction_rate","uc_deduction_combination"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage","household_is_cgt_support_copy","cgt_support_copies","cgt_support_copy_index","household_is_capital_gains_clone","household_is_cgt_residential_clone","cgt_residential_clone_index"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","car_fuel_type","car_co2_emissions","car_engine_size","car_first_registration_date","car_is_ved_exempt","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending","capital_gains","cgt_residential_probability","capital_gains_residential_property","capital_gains_asset_type","capital_gains_badr","pension_contributions_via_bonus_sacrifice","salary_sacrifice_pre_conversion_pay"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage carers_allowance_take_up.","id":"carers_allowance_take_up","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital","would_claim_uc_at_legacy_closure","has_mixed_age_couple_pension_credit_saving","uc_deduction_random_draw","uc_deduction_type_random_draw","uc_latent_deduction_rate","uc_deduction_combination"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage","household_is_cgt_support_copy","cgt_support_copies","cgt_support_copy_index","household_is_capital_gains_clone","household_is_cgt_residential_clone","cgt_residential_clone_index"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","car_fuel_type","car_co2_emissions","car_engine_size","car_first_registration_date","car_is_ved_exempt","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending","capital_gains","cgt_residential_probability","capital_gains_residential_property","capital_gains_asset_type","capital_gains_badr","pension_contributions_via_bonus_sacrifice","salary_sacrifice_pre_conversion_pay"],"entity":"person","rows":"all"}],"kernel":"uk.stage.carers_allowance_take_up@1","mass":"conserve","outputs":[{"column":"would_claim_carers_allowance","dtype":"bool","entity":"person","ownership":"produced","rewrite":true,"rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"carers_allowance_take_up","stage_contract_sha256":"7cf2cf79bd0f9a92f2a334081a35c8bfe24a0b841131fb9a8b8aceee6caf2dba","time_period":"2024"},"population":"carers_allowance_take_up.boundary","sources":["frs"],"structural":"none","weights":null},{"base":"carers_allowance_take_up.boundary","citation":"","description":"Ownership boundary before student_loans rewrites.","id":"student_loans.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital","would_claim_uc_at_legacy_closure","has_mixed_age_couple_pension_credit_saving","uc_deduction_random_draw","uc_deduction_type_random_draw","uc_latent_deduction_rate","uc_deduction_combination"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage","household_is_cgt_support_copy","cgt_support_copies","cgt_support_copy_index","household_is_capital_gains_clone","household_is_cgt_residential_clone","cgt_residential_clone_index"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","car_fuel_type","car_co2_emissions","car_engine_size","car_first_registration_date","car_is_ved_exempt","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending","capital_gains","cgt_residential_probability","capital_gains_residential_property","capital_gains_asset_type","capital_gains_badr","pension_contributions_via_bonus_sacrifice","salary_sacrifice_pre_conversion_pay"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage student_loans.","id":"student_loans","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["region"],"entity":"household","rows":"all"},{"columns":["age","age_left_full_time_education","current_education","highest_education","reports_outstanding_student_loan","student_loan_repayments","student_loans","would_claim_carers_allowance"],"entity":"person","rows":"all"}],"kernel":"uk.stage.student_loans@1","mass":"conserve","outputs":[{"column":"student_loan_plan","dtype":"string","entity":"person","ownership":"produced","rows":"all"},{"column":"student_loan_balance","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"student_loans","stage_contract_sha256":"507ca0160144d8f5ea1b2483b812658ee8b49854e2388d50a8c59ca58f2ca9ee","time_period":"2024"},"population":"student_loans.boundary","sources":["frs"],"structural":"none","weights":null},{"base":"student_loans.boundary","citation":"","description":"Ownership boundary before childcare_copy_take_up rewrites.","id":"childcare_copy_take_up.boundary","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital","would_claim_uc_at_legacy_closure","has_mixed_age_couple_pension_credit_saving","uc_deduction_random_draw","uc_deduction_type_random_draw","uc_latent_deduction_rate","uc_deduction_combination"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage","household_is_cgt_support_copy","cgt_support_copies","cgt_support_copy_index","household_is_capital_gains_clone","household_is_cgt_residential_clone","cgt_residential_clone_index"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","car_fuel_type","car_co2_emissions","car_engine_size","car_first_registration_date","car_is_ved_exempt","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending","capital_gains","cgt_residential_probability","capital_gains_residential_property","capital_gains_asset_type","capital_gains_badr","pension_contributions_via_bonus_sacrifice","salary_sacrifice_pre_conversion_pay","student_loan_plan"],"entity":"person","rows":"all"}],"kernel":"uk.identity@1","mass":"conserve","outputs":[],"params":{},"population":null,"sources":[],"structural":"filter","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage childcare_copy_take_up.","id":"childcare_copy_take_up","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_uc_childcare","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital","would_claim_uc_at_legacy_closure","has_mixed_age_couple_pension_credit_saving","uc_deduction_random_draw","uc_deduction_type_random_draw","uc_latent_deduction_rate","uc_deduction_combination"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage","household_is_cgt_support_copy","cgt_support_copies","cgt_support_copy_index","household_is_capital_gains_clone","household_is_cgt_residential_clone","cgt_residential_clone_index"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","car_fuel_type","car_co2_emissions","car_engine_size","car_first_registration_date","car_is_ved_exempt","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending","capital_gains","cgt_residential_probability","capital_gains_residential_property","capital_gains_asset_type","capital_gains_badr","pension_contributions_via_bonus_sacrifice","salary_sacrifice_pre_conversion_pay","student_loan_plan"],"entity":"person","rows":"all"}],"kernel":"uk.stage.childcare_copy_take_up@1","mass":"conserve","outputs":[{"column":"would_claim_tfc","dtype":"bool","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"would_claim_extended_childcare","dtype":"bool","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"would_claim_universal_childcare","dtype":"bool","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"would_claim_targeted_childcare","dtype":"bool","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"maximum_extended_childcare_hours_usage","dtype":"float64","entity":"benunit","ownership":"produced","rewrite":true,"rows":"all"},{"column":"max_free_entitlement_hours_used","dtype":"float64","entity":"person","ownership":"produced","rewrite":true,"rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"childcare_copy_take_up","stage_contract_sha256":"cdbb7e135b16fac7ca1bcd6c54222821e2976b4da99f10a60913efd0ba03c13c","time_period":"2024"},"population":"childcare_copy_take_up.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage private_school_attendance.","id":"private_school_attendance","inputs":[{"columns":["frs_benunit_capital","is_married","dependent_children","liable_for_share_of_household_rent","would_claim_child_benefit","child_benefit_opts_out","would_claim_pc","would_claim_uc","would_claim_tfc","would_claim_extended_childcare","would_claim_universal_childcare","would_claim_targeted_childcare","would_claim_uc_childcare","maximum_extended_childcare_hours_usage","benunit_source_id","benunit_support_channel","benunit_support_clone_index","uc_reported_capital","pension_credit_reported_capital","would_claim_uc_at_legacy_closure","has_mixed_age_couple_pension_credit_saving","uc_deduction_random_draw","uc_deduction_type_random_draw","uc_latent_deduction_rate","uc_deduction_combination"],"entity":"benunit","rows":"all"},{"columns":["region","tenure_type","accommodation_type","num_bedrooms","council_tax_reported","council_tax_band","council_tax_rebate","council_tax_single_adult_raw","water_and_sewerage_charges","domestic_rates","rent","subrent","mortgage_interest_repayment","mortgage_capital_repayment","structural_insurance_payments","housing_service_charges","external_child_payments","ons_household_type","council_tax","household_owns_tv","would_evade_tv_licence_fee","main_residential_property_purchased_is_first_home","property_purchased","brma","source_household_id","source_year","source_household_key","household_source_id","household_support_channel","household_support_clone_index","household_is_spi_synthetic","household_is_spi_income_band_donor","spi_income_band_donor_lower_bound","owned_land","property_wealth","corporate_wealth","private_pension_wealth","gross_financial_wealth","net_financial_wealth","main_residence_value","other_residential_property_value","non_residential_property_value","savings","num_vehicles","cash_isa","stocks_and_shares_isa","mortgage_debt","consumer_debt","directly_held_shares","unit_and_investment_trusts","other_residential_property_secured_debt","non_residential_property_secured_debt","household_lifetime_isa_balance","household_is_high_value_support_copy","high_value_support_copies","high_value_support_copy_index","main_residence_value_rank_basis","additional_residential_property_purchased","non_residential_property_purchased","household_local_bus_trips","food_and_non_alcoholic_beverages_consumption","alcohol_and_tobacco_consumption","clothing_and_footwear_consumption","housing_water_and_electricity_consumption","household_furnishings_consumption","health_consumption","transport_consumption","communication_consumption","recreation_consumption","education_consumption","restaurants_and_hotels_consumption","miscellaneous_consumption","petrol_spending","diesel_spending","bus_fare_spending","domestic_energy_consumption","electricity_consumption","gas_consumption","liquid_fuel_consumption","solid_fuel_consumption","has_fuel_consumption","uses_energy_prepayment_meter","beer_litres","cider_litres","wine_litres","spirits_litres","other_fermented_litres","beer_draught_share","cider_draught_share","cigarettes_per_week","hand_rolling_tobacco_grams_per_week","cigars_grams_per_week","other_tobacco_grams_per_week","remote_gaming_net_losses","pool_betting_net_receipts","bingo_net_receipts","national_lottery_ticket_spending","land_based_casino_net_losses","machine_games_lower_rate_net_takings","machine_games_standard_rate_net_takings","machine_games_higher_rate_net_takings","land_based_fixed_odds_betting_net_losses","remote_uk_horseracing_betting_net_losses","remote_other_betting_net_losses","betting_exchange_commission","horse_and_dog_pool_betting_net_losses","full_rate_vat_expenditure_rate","dfe_education_spending","rail_subsidy_spending","bus_subsidy_spending","rail_usage","household_is_cgt_support_copy","cgt_support_copies","cgt_support_copy_index","household_is_capital_gains_clone","household_is_cgt_residential_clone","cgt_residential_clone_index"],"entity":"household","rows":"all"},{"columns":["age","gender","months_since_last_birthday","marital_status","hours_worked","care_hours","frs_care_hours_in_household","is_household_head","is_benunit_head","is_parent","is_blind","is_uc_claimant","is_claimant_or_partner","is_hbai_dependent_child","uc_is_in_startup_period","uc_is_in_gainful_self_employment","rent_paid_as_boarder","rent_paid_as_lodger","employment_income","self_employment_income","trading_loss","loss_relief","ni_class_4_losses_brought_forward","private_pension_income","annuity_and_trust_income","individual_savings_account_interest_income","savings_interest_income","dividend_income","other_investment_income","stands_as_sole_owner_or_partner_of_company","is_engaged_in_owned_company_trade","owned_company_is_main_employment","owned_company_carries_on_trade","owned_company_carries_on_property_business","owned_company_income_share","property_income","reports_rent_from_other_property","maintenance_income","spousal_maintenance_income","miscellaneous_income","private_transfer_income","lump_sum_income","student_loan_repayments","statutory_sick_pay","statutory_maternity_pay","statutory_paternity_pay","student_loans","access_fund","education_grants","healthy_start_vouchers","free_school_breakfasts","free_school_fruit_veg","free_school_meals","council_tax_benefit_reported","maintenance_expenses","childcare_expenses","personal_pension_contributions","employee_pension_contributions","pension_contributions_via_salary_sacrifice","salary_sacrifice_reported","salary_sacrifice_asked","frs_bonus_amount","frs_company_car_price_band","frs_company_car_fuel_code","frs_company_car_private_fuel","frs_company_car_contribution","child_benefit_reported","income_support_reported","housing_benefit_reported","attendance_allowance_reported","dla_sc_reported","dla_m_reported","iidb_reported","carers_allowance_reported","would_claim_carers_allowance","sda_reported","afcs_reported","ssmg_reported","pension_credit_reported","child_tax_credit_reported","working_tax_credit_reported","state_pension_reported","winter_fuel_allowance_reported","incapacity_benefit_reported","universal_credit_reported","pip_m_reported","pip_dl_reported","jsa_contrib_reported","jsa_income_reported","esa_contrib_reported","esa_income_reported","esa_includes_support_component","bsp_reported","war_widows_pension_reported","widowed_parents_allowance_reported","relationship_to_head","ons_family_role","ons_family_index","is_looked_after_by_local_authority","child_limit_non_parental_caring_exception","employment_status","employment_sector","sic_industry_division","aa_category","dla_sc_category","dla_m_category","pip_m_category","pip_dl_category","is_disabled_for_benefits","is_enhanced_disabled_for_benefits","is_severely_disabled_for_benefits","current_education","highest_education","is_in_non_advanced_education","is_in_approved_training","age_started_or_accepted_current_education_or_training","is_before_universal_credit_qualifying_young_person_terminal_date","adult_ema","child_ema","receives_benefits_in_own_right","reports_outstanding_student_loan","age_left_full_time_education","legacy_jobseeker_proxy","esa_health_condition_proxy","esa_support_group_proxy","disabled_students_allowance_eligible_expenses","max_free_entitlement_hours_used","would_claim_marriage_allowance","would_claim_scp","attends_private_school_random_draw","tax_free_childcare_spend_routed_share","is_apprentice","hmrc_spi_pay","hmrc_spi_unemployment_benefit_income","hmrc_spi_incapacity_benefit_income","ossben_identifiable_subset","srp_regular_code5","employer_pension_contributions","employment_income_annual_share","employment_income_other_spells","self_employment_income_annual_share","self_employment_income_other_spells","private_pension_income_annual_share","contributory_benefits_annual_share","person_source_id","person_support_channel","person_support_clone_index","person_is_spi_income_band_carrier","charitable_investment_gifts","gift_aid","hmrc_spi_employment_benefits","hmrc_spi_employment_expenses","hmrc_spi_other_social_security_income","hmrc_spi_taxable_termination_pay","hmrc_spi_miscellaneous_employment_income","hmrc_spi_other_income","hmrc_spi_state_pension_income","property_finance_costs","hmrc_spi_employed_income","hmrc_spi_total_earned_income","hmrc_spi_total_investment_income","hmrc_spi_assessable_income","person_is_spi_income_recipient","company_car_list_price","company_car_co2_emissions","company_car_fuel_type","company_car_electric_range","company_car_capital_contributions","company_car_private_fuel_provided","student_loan_balance","has_lifetime_isa","lifetime_isa_balance","property_rental_income","local_bus_use_band","bus_in_london_trips","other_local_bus_trips","local_bus_trips","bus_pass_eligible","local_bus_single_fare_share","car_fuel_type","car_co2_emissions","car_engine_size","car_first_registration_date","car_is_ved_exempt","a_and_e_visits","admitted_patient_visits","outpatient_visits","nhs_a_and_e_spending","nhs_admitted_patient_spending","nhs_outpatient_spending","capital_gains","cgt_residential_probability","capital_gains_residential_property","capital_gains_asset_type","capital_gains_badr","pension_contributions_via_bonus_sacrifice","salary_sacrifice_pre_conversion_pay","student_loan_plan"],"entity":"person","rows":"all"}],"kernel":"uk.stage.private_school_attendance@1","mass":"conserve","outputs":[{"column":"attends_private_school","dtype":"bool","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"private_school_attendance","stage_contract_sha256":"7e44379c0331fe4c9de05cd76a075c1a6aa22cf0dec6cd2f91b277e70f14a038","time_period":"2024"},"population":"childcare_copy_take_up.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage isa_subscriptions.","id":"isa_subscriptions","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["cash_isa","region","stocks_and_shares_isa"],"entity":"household","rows":"all"},{"columns":["age","attends_private_school","dividend_income","employment_income","gender","has_lifetime_isa","individual_savings_account_interest_income","lifetime_isa_balance","loss_relief","miscellaneous_income","private_pension_income","property_income","savings_interest_income","self_employment_income","state_pension_reported"],"entity":"person","rows":"all"}],"kernel":"uk.stage.isa_subscriptions@1","mass":"conserve","outputs":[{"column":"cash_isa_balance","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"stocks_and_shares_isa_balance","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"cash_isa_subscriptions","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"stocks_and_shares_isa_subscriptions","dtype":"float64","entity":"person","ownership":"produced","rows":"all"},{"column":"lifetime_isa_payments","dtype":"float64","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"isa_subscriptions","stage_contract_sha256":"9fc3e3ecf333df38206c9627470ca0c1a9d8abbea7534f6367e01868fdc3081f","time_period":"2024"},"population":"childcare_copy_take_up.boundary","sources":["frs"],"structural":"none","weights":null},{"artifact_outputs":[{"name":"stage_evidence","type":{"name":"microcosm.stage-evidence","schema_version":1}}],"base":null,"citation":"","description":"Run UK spine stage trading_allowance_receipts.","id":"trading_allowance_receipts","inputs":[{"columns":["frs_benunit_capital"],"entity":"benunit","rows":"all"},{"columns":["household_source_id","region"],"entity":"household","rows":"all"},{"columns":["age","lifetime_isa_payments","self_employment_income"],"entity":"person","rows":"all"}],"kernel":"uk.stage.trading_allowance_receipts@1","mass":"conserve","outputs":[{"column":"self_employment_gross_receipts","dtype":"float64","entity":"person","ownership":"produced","rows":"all"}],"params":{"numerical_dependencies":[["policyengine-uk","2.165.1"],["policyengine-core","3.33.3"],["numpy","2.4.6"],["pandas","3.0.3"],["scikit-learn","1.8.0"],["quantile-forest","1.4.2"]],"stage":"trading_allowance_receipts","stage_contract_sha256":"f91329806570bd874750845816de96b28160e766e8e26bf1174cb0809ad8ff43","time_period":"2024"},"population":"childcare_copy_take_up.boundary","sources":["frs"],"structural":"none","weights":null}],"sources":[{"codec":"csv-tables","description":"Content-bound UK FRS and donor fixture/source bundle.","name":"frs"}]} diff --git a/test_support/microcosm_build/uk_atomic_support_fixtures.py b/test_support/microcosm_build/uk_atomic_support_fixtures.py index 51051b5810..0d6761f002 100644 --- a/test_support/microcosm_build/uk_atomic_support_fixtures.py +++ b/test_support/microcosm_build/uk_atomic_support_fixtures.py @@ -148,6 +148,7 @@ def toy_property_resources() -> dict[str, dict]: grid = [0.0, 0.25, 0.5, 0.75, 1.0] seats = {} lsoas = {} + council_areas = set() for rows in toy_support_frames().values(): for row in rows: seat = str(row["constituency_code"]) @@ -157,6 +158,8 @@ def toy_property_resources() -> dict[str, dict]: "weight": 100.0, "quantiles": [100_000.0 + 1_900_000.0 * p for p in grid], } + if str(row["local_authority_code"]).startswith("S12"): + council_areas.add(str(row["local_authority_code"])) lsoa = str(row["lsoa_code"]) if lsoa[0] in "EW": cumulative = [(i + 1) / 8 for i in range(8)] + [1.0] @@ -188,14 +191,42 @@ def toy_property_resources() -> dict[str, dict]: "receipts": {}, "lsoa": lsoas, } - return {"knots": knots, "band_mix": band_mix} + # Each toy council area splits bands A to H equally, in the vendored + # CTAXBASE rows the Scottish draw reads (microcosm#1095 B12). + scotland_rows = [ + { + "concept": f"scotgov.chargeable_dwellings_band_{band.lower()}", + "measure_id": f"band_{band.lower()}", + "geography": {"id": code, "level": "local_authority"}, + "period": {"type": "month", "value": "2025-09"}, + "value": 100.0, + } + for code in sorted(council_areas) + for band in COUNCIL_TAX_BANDS[:-1] + ] + scotland_band_mix = { + "schema_version": 1, + "country": "uk", + "kind": "uk_vendored_ledger_facts", + "resource": "scotgov_chargeable_dwellings_by_band.json", + "source_fact_feed": {"facts_sha256": "toy"}, + "selections": [], + "row_count": len(scotland_rows), + "rows": scotland_rows, + } + return { + "knots": knots, + "band_mix": band_mix, + "scotland_band_mix": scotland_band_mix, + } def write_toy_property_resources(directory: Path) -> dict[str, Path]: - """Write the toy knots and band mix as graph sources named by the nodes.""" + """Write the toy knots and band mixes as graph sources named by the nodes.""" from microcosm.build.uk_runtime.property_localisation import ( BAND_MIX_SOURCE, QUANTILES_SOURCE, + SCOTLAND_BAND_MIX_SOURCE, ) directory.mkdir(parents=True, exist_ok=True) @@ -203,7 +234,11 @@ def write_toy_property_resources(directory: Path) -> dict[str, Path]: paths = { QUANTILES_SOURCE: directory / "toy-knots.json", BAND_MIX_SOURCE: directory / "toy-band-mix.json", + SCOTLAND_BAND_MIX_SOURCE: directory / "toy-scotland-band-mix.json", } + paths[SCOTLAND_BAND_MIX_SOURCE].write_text( + json.dumps(resources["scotland_band_mix"]), encoding="utf-8" + ) paths[QUANTILES_SOURCE].write_text(json.dumps(resources["knots"]), encoding="utf-8") paths[BAND_MIX_SOURCE].write_text( json.dumps(resources["band_mix"]), encoding="utf-8" diff --git a/test_support/microcosm_build/uk_student_loans.py b/test_support/microcosm_build/uk_student_loans.py index a1fa64371b..da7eb59f0c 100644 --- a/test_support/microcosm_build/uk_student_loans.py +++ b/test_support/microcosm_build/uk_student_loans.py @@ -19,6 +19,7 @@ STUDENT_LOAN_SEED, _assert_student_loans_stage_parameters, _walk_top_up, + allocate_balance_to_borrowers, assign_student_loan_plans, course_start_year, has_reported_student_loan, @@ -46,10 +47,17 @@ def _frame( current_education=None, reports_outstanding=None, age_left=None, + balances=None, + households=None, ): + """One person per household unless ``households`` names each person's + household; ``regions`` and ``weights`` are then per household, in order.""" + n = len(ages) ids = np.arange(1, n + 1, dtype="int64") - regions = regions or ["LONDON"] * n + person_households = ids if households is None else np.asarray(households) + household_ids = pd.unique(person_households) + regions = regions or ["LONDON"] * len(household_ids) education = education or ["TERTIARY"] * n # No leaving age dates a course at 18, the rule before microcosm#868. current_education = current_education or ["NOT_IN_EDUCATION"] * n @@ -59,21 +67,28 @@ def _frame( person=pd.DataFrame( { "person_id": ids, - "person_benunit_id": ids, - "person_household_id": ids, + "person_benunit_id": person_households, + "person_household_id": person_households, "age": ages, "student_loan_repayments": repayments, "highest_education": education, "current_education": current_education, "reports_outstanding_student_loan": reports_outstanding, "age_left_full_time_education": np.asarray(age_left, dtype="int64"), + "student_loan_balance": ( + np.zeros(n) if balances is None else np.asarray(balances, float) + ), } ), - benunit=pd.DataFrame({"benunit_id": ids}), + benunit=pd.DataFrame({"benunit_id": household_ids}), household=pd.DataFrame( - {"household_id": ids, "region": regions, **(household_columns or {})} + { + "household_id": household_ids, + "region": regions, + **(household_columns or {}), + } ), - household_weights=np.ones(n) if weights is None else weights, + household_weights=(np.ones(len(household_ids)) if weights is None else weights), time_period="2024", ) diff --git a/tools/diagnose_uk_spi_prior_concentration.py b/tools/diagnose_uk_spi_prior_concentration.py new file mode 100644 index 0000000000..14c78e656e --- /dev/null +++ b/tools/diagnose_uk_spi_prior_concentration.py @@ -0,0 +1,158 @@ +"""Size the weight concentration of the over-£100,000 young-child cell on a UK dataset. + +The cell Vahid's review of microcosm#1338 (round 1, item 4) asked to see +before and after the SPI channel's prior is shaped by its copies' design +weights: households with a benefit unit that has a child aged 0 to 4 and an +adult whose adjusted net income is above £100,000 at the year, the families +the childcare cliff-edge reaches. On a spine (prior weights) or a calibrated +dataset (final weights), the tool reports the cell's weighted households, its +Kish effective sample size over households and over their FRS source +households (a source household and its copies as one unit of their joint +weight), the share of its weight its ten largest source households hold, +the share on SPI-channel copies, and its support in source households, +rounded. Every figure is an aggregate over the cell, and a share is never +given for a cell of one or two source households. Development diagnostic: it +never recalibrates and writes only an aggregate JSON. +""" + +from __future__ import annotations + +import argparse +import json +from pathlib import Path + +import numpy as np +import pandas as pd + +from microcosm.build.uk_runtime.receipt_counts import ( + UK_DISCLOSURE_FLOOR, + UK_WITHHELD, + rounded_count, +) + +#: The cell: an adult above this adjusted net income in a unit with a child +#: below this age (the childcare cliff-edge, microcosm#1339). +INCOME_ABOVE_GBP = 100_000.0 +CHILD_AGE_BELOW = 5 +#: The concentration share's units: the cell's largest source households. +LARGEST_SOURCES = 10 + + +def kish_effective_size(weights: np.ndarray) -> float: + """Kish's effective sample size of positive weights: (sum w)^2 / sum w^2.""" + + weights = np.asarray(weights, dtype=float) + weights = weights[weights > 0] + if not len(weights): + return 0.0 + return float(weights.sum() ** 2 / (weights**2).sum()) + + +def concentration( + weights: np.ndarray, sources: np.ndarray, spi_copy: np.ndarray +) -> dict[str, object]: + """The cell's concentration figures from its households' weights and sources. + + ``weights``, ``sources`` and ``spi_copy`` are one entry per household of + the cell. Shares and effective sizes are withheld ("<3") for a cell on + one or two source households. + """ + + weights = np.asarray(weights, dtype=float) + by_source = pd.Series(weights).groupby(np.asarray(sources)).sum() + support = int((by_source > 0).sum()) + total = float(weights.sum()) + if support < UK_DISCLOSURE_FLOOR: + return {"source_households": UK_WITHHELD if support else 0, "withheld": True} + largest = by_source.sort_values(ascending=False).head(LARGEST_SOURCES) + return { + "weighted_households": total, + "kish_effective_households": kish_effective_size(weights), + "kish_effective_source_households": kish_effective_size(by_source.to_numpy()), + f"largest_{LARGEST_SOURCES}_source_households_weight_share": float( + largest.sum() / total + ), + "spi_copy_weight_share": float( + weights[np.asarray(spi_copy, bool)].sum() / total + ), + "source_households": rounded_count(support), + } + + +def cell_households(dataset: str, *, year: int) -> pd.DataFrame: + """The cell's households with their weights, source households and SPI flag. + + A spine's ids run past the engine's 32-bit entity ids, so the tables give + the memberships and the engine only the values, in the tables' row order + (checked on the stored ages). + """ + + from policyengine_uk import Microsimulation + + simulation = Microsimulation(dataset=dataset) + person = pd.read_hdf(dataset, "person") + household = pd.read_hdf(dataset, "household") + stored = int(np.asarray(pd.read_hdf(dataset, "time_period")).ravel()[0]) + + def values(variable: str, period: int = year) -> np.ndarray: + return np.asarray(simulation.calculate(variable, period).values, dtype=float) + + if not np.array_equal(values("age", stored), person["age"].to_numpy(dtype=float)): + raise ValueError(f"{dataset}: the engine's persons are not in table order.") + weight = values("household_weight") + if len(weight) != len(household): + raise ValueError(f"{dataset}: the engine's households are not the table's.") + age = values("age") + income = values("adjusted_net_income") + members = pd.DataFrame( + { + "benunit": person["person_benunit_id"].to_numpy(), + "household": person["person_household_id"].to_numpy(), + "child": age < CHILD_AGE_BELOW, + "high": (age >= 18) & (income > INCOME_ABOVE_GBP), + } + ) + units = members.groupby("benunit")[["child", "high"]].any() + in_cell = units.index[units["child"] & units["high"]] + households = members.loc[members["benunit"].isin(in_cell), "household"].unique() + cell = household.assign(weight=weight).set_index("household_id").loc[households] + return pd.DataFrame( + { + "weight": cell["weight"].to_numpy(), + "source": cell["source_household_id"].to_numpy(), + "spi_copy": cell["household_is_spi_synthetic"].astype(bool).to_numpy(), + }, + index=households, + ) + + +def main() -> None: + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument( + "datasets", nargs="+", type=Path, help="UK spine or calibrated H5s." + ) + parser.add_argument("--year", type=int, default=2025) + parser.add_argument("--output", type=Path, required=True) + args = parser.parse_args() + report = {} + for dataset in args.datasets: + cell = cell_households(str(dataset), year=args.year) + report[str(dataset)] = { + "year": args.year, + "cell": ( + f"households with a benefit unit holding a child under " + f"{CHILD_AGE_BELOW} and an adult whose adjusted net income is " + f"above {INCOME_ABOVE_GBP:,.0f}" + ), + **concentration( + cell["weight"].to_numpy(), + cell["source"].to_numpy(), + cell["spi_copy"].to_numpy(), + ), + } + args.output.write_text(json.dumps(report, indent=1) + "\n") + print(json.dumps(report, indent=1)) + + +if __name__ == "__main__": + main() diff --git a/tools/graph_uk_spine_fixture.py b/tools/graph_uk_spine_fixture.py index 4762595c57..15e557da16 100644 --- a/tools/graph_uk_spine_fixture.py +++ b/tools/graph_uk_spine_fixture.py @@ -236,6 +236,10 @@ "ons_family_role", "capital_gains_asset_type", "company_car_fuel_type", + # The vehicle excise duty inputs' fuel and ISO registration date + # (microcosm#1095 B3). + "car_fuel_type", + "car_first_registration_date", ), "benunit": ("benunit_support_channel", "uc_deduction_combination"), "household": ( @@ -1224,6 +1228,10 @@ def _nts_donors() -> tuple[ "NumCarVan": rows % 4, "HHoldNumPeople": 1 + rows % 4, "W2": 1.0 + (rows % 7) / 10.0, + # The interview weight and income fifth the zero-emission share + # and the household-paid road-fuel mix read (microcosm#1095 B3). + "W3": 1.0 + (rows % 5) / 10.0, + "HHIncQISEngTS_B01ID": 1 + rows % 5, } ) person_rows = [] @@ -1330,6 +1338,71 @@ def _nts_donors() -> tuple[ return household, individual, trip, stage, ticket +def _nts_vehicles(household: pd.DataFrame) -> pd.DataFrame: + """Synthetic NTS Vehicle table for the households of ``_nts_donors``. + + Three cars a household (a four-by-four in every tenth), each fuel by its + number (petrol, diesel, then another propulsion), and every eighth + household a motorcycle the car filter drops. The third car is + zero-emission (CO2 band 1), and so is the second in the top two income + fifths, so every fifth holds enough zero-emission cars and the risks + rise with income; every seventh household's first car has no linked + band, and every fourth household's second car is a company car. A + household nobody in which works (every fifth) has no commuting or + business miles (-9); private miles are the rest of the year's. + """ + + rows = [] + for index, household_row in household.reset_index(drop=True).iterrows(): + fifth = int(household_row["HHIncQISEngTS_B01ID"]) + household_id = int(household_row["HouseholdID"]) + for car in range(4 if index % 8 == 0 else 3): + motorcycle = car == 3 + zero_emission = car == 2 or (car == 1 and fifth >= 4) + annual = 4000 + 1000 * (index % 9) + 500 * car + works = index % 5 != 0 + commuting = 1000 * (index % 3) if works else -9 + business = 200 * (car + 1) if works else -9 + private = annual - max(commuting, 0) - max(business, 0) + rows.append( + { + "VehicleID": household_id * 10 + car, + "HouseholdID": household_id, + "VehType_B03ID": 2 if motorcycle else (3 if index % 10 == 3 else 1), + "CarOwn_B01ID": 2 if car == 1 and index % 4 == 0 else 1, + "VehPropTypeTS_B01ID": min(car, 2) + 1, + "VehCO2Bands_B01ID": ( + 1 + if zero_emission + else ( + -8 + if car == 0 and index % 7 == 0 + else 2 + (index + car) % 12 + ) + ), + "VehAnMileage": annual, + "VehComMile": commuting, + "VehBusMile": business, + "VehPriMile": private, + "SurveyYear": int(household_row["SurveyYear"]), + # The vehicle excise duty inputs' Table A-M band (A for a + # zero-emission car), engine size and age band. + "VehCO2Tax2008_B01ID": ( + 1 + if zero_emission + else ( + -8 + if car == 0 and index % 7 == 0 + else 1 + (index + car) % 13 + ) + ), + "EngineCap": 0 if zero_emission else 1200 + 100 * (index % 10), + "VehAge_B01ID": 1 + (index + 2 * car) % 14, + } + ) + return pd.DataFrame(rows) + + def _etb_donor() -> pd.DataFrame: rows = np.arange(_DONOR_ROWS, dtype=float) return pd.DataFrame( @@ -1989,10 +2062,11 @@ def _fixture_stages( def _normalization_markdown() -> str: + count = sum(len(columns) for columns in _NORMALIZED_STRING_COLUMNS.values()) lines = [ "# UK spine parity string normalization", "", - "The unchanged legacy transforms retain these 26 textual table columns as", + f"The unchanged legacy transforms retain these {count} textual table columns as", "pandas `object`. The frozen graph dtype token `string` is specified by", 'interface-freeze amendment 10 as pandas `StringDtype(storage="python")`.', "Before computing the legacy oracle's `uk_frame_content_identity` (live,", @@ -2048,8 +2122,8 @@ def _normalize_legacy_strings(frame: Frame) -> Frame: for entity, columns in _NORMALIZED_STRING_COLUMNS.items() for column in columns ] - if observed != expected_order or len(observed) != 27: - raise RuntimeError("The legacy normalization audit is not exactly 27 cells.") + if observed != expected_order or len(observed) != 29: + raise RuntimeError("The legacy normalization audit is not exactly 29 cells.") return Frame( tables, frame.schema, @@ -2126,6 +2200,7 @@ def _build_implementations( nts_trip: pd.DataFrame, nts_stage: pd.DataFrame, nts_ticket: pd.DataFrame, + nts_vehicle: pd.DataFrame, lcfs_household: pd.DataFrame, lcfs_person: pd.DataFrame, etb: pd.DataFrame, @@ -2246,6 +2321,8 @@ def capture_root(frame: Frame) -> Frame: engine=engine, lcfs_household=lcfs_household, lcfs_person=lcfs_person, + nts_household=nts_household, + nts_vehicle=nts_vehicle, ), "etb_vat": UKETBVATStageTransform( stage=stages["etb_vat"], engine=engine, donor=etb @@ -2436,6 +2513,7 @@ def generate(output: Path) -> None: was = _was_donor() was_person = _was_person_donor() nts_household, nts_individual, nts_trip, nts_stage, nts_ticket = _nts_donors() + nts_vehicle = _nts_vehicles(nts_household) lcfs_household, lcfs_person = _lcfs_donors() etb = _etb_donor() spi_donor = _spi_donor() @@ -2446,6 +2524,7 @@ def generate(output: Path) -> None: _write_csv(sources / "nts_trip.csv", nts_trip) _write_csv(sources / "nts_stage.csv", nts_stage) _write_csv(sources / "nts_ticket.csv", nts_ticket) + _write_csv(sources / "nts_vehicle.csv", nts_vehicle) _write_csv(sources / "lcfs_household.csv", lcfs_household) _write_csv(sources / "lcfs_person.csv", lcfs_person) _write_csv(sources / "etb.csv", etb) @@ -2473,6 +2552,7 @@ def generate(output: Path) -> None: nts_trip=nts_trip, nts_stage=nts_stage, nts_ticket=nts_ticket, + nts_vehicle=nts_vehicle, lcfs_household=lcfs_household, lcfs_person=lcfs_person, etb=etb, @@ -2560,6 +2640,7 @@ def generate(output: Path) -> None: "nts_trip": "nts_trip.csv", "nts_stage": "nts_stage.csv", "nts_ticket": "nts_ticket.csv", + "nts_vehicle": "nts_vehicle.csv", "lcfs_household": "lcfs_household.csv", "lcfs_person": "lcfs_person.csv", "etb": "etb.csv",