Repository navigation
In progress
1 / 61 of 6 issues completedIn progress
US local build: one declared target set, aligned with the national build, and more district targets#1728
1 / 61 of 6 issues completed
Copy link
Description
Problem
The national and the local build compile the same registry (compile_us_fiscal_target_registry). Then each tool keeps a subset, and the choice is in tool code.
National build (national_state) |
Local build (--soi-mode state, the default) |
|
|---|---|---|
| Targets | 6,102 | 4,867 |
| National rows | Yes: CBO, SSA, BEA, national SOI tables, JCT, population by age, Medicare Part B, net worth, LIHEAP, SNAP | None |
| State SOI | Yes | Yes (4,227) |
| State SNAP and Medicaid enrollment | Yes | Yes (102 and 51) |
| State population by age (51 × 19 bands) | Yes | No. Totals only |
| State income tax (Census STC), SSI, TANF, CHIP, ACA | Yes | No |
| District rows | None | Population totals (436) |
Effects:
- A state can give different results in the two files, because the files fit different state targets.
- The local file has no age targets at any level. State slices have 11% too many children and 6% too few adults (ACS-local state slices over-count children by 11% and under-count adults by 6%; the calibration has no age targets #1528).
- The local population totals are April 2020 counts (ACS-local state slices over-count children by 11% and under-count adults by 6%; the calibration has no age targets #1528).
- On the September surface, state SOI rows hold 90.2% of the loss weight. District population holds 1.7% (write-up).
- The SOI return-count targets count every tax unit, not filed returns (US SOI targets count every modeled tax unit, while SOI counts filed returns #1644).
docs/us-release-build-rule.mdstates the principle of the same target surface for every artifact. The local tool does not follow it. The two builds do read the same feed pin.
More district targets exist than the fit uses:
--soi-mode state_cdadds 21,743 district SOI rows. It is opt-in, and no production build uses it.- ACS tables give age, households and income brackets for each district. None is in the fit. ACS rows can meet these targets without donor rows.
Work
- Declare the target set of each product as data. A small declaration states the families, the levels and the rule. A shared selector reads it. The UK membership files (
uk/target_reference_membership.json,uk/local_target_reference_membership.json) are the nearest model. The first step changes no output: the declarations give 6,102 and 4,867 exactly, and a test pins both counts. - Align the state targets.
- Age first: PR Calibrate ACS local state slices to Census Vintage 2025 age groups #1531 adds Census Vintage 2025 age groups for states.
- Then state income tax, SSI, TANF, CHIP and ACA.
- Decide whether the local build also fits the national rows (decision 1).
- Add district targets that ACS rows can meet: age bands, households and income brackets from ACS. SLD layer for the local artifact: per-district ACS calibration (targets, membership vintage, doctrine solve, validation) #625 has the design for state legislative districts (tables B01001, B11001, B19001). The county step already fits an ACS households family. This needs Chronicle packages.
- Add district SOI rows.
- Wait for PR Rebase congressional-district capital gains onto Table 1.4 and drop mislabeled CD SALT and PTC columns on the full surface #1040 and PR Read restamped Chronicle facts at their data year before aging #1030, which correct district concepts and data years (Congressional-district capital-gains, SALT and PTC targets on the full surface cross IRS concepts #1038).
- Measure the memory need first.
--soi-mode fulldoes not fit on one 128 GB machine.
- Count filers: US SOI targets count every modeled tax unit, while SOI counts filed returns #1644.
- Move the population totals to a current vintage, together with item 2. Move congressional districts to the 120th Congress #1526 changes the district set to the 120th Congress.
Order
- Item 1 is first. It changes no output.
- Items 2 to 6 change the loss. Group them into few builds. Choose λ again after them, because λ is in units of the loss.
- District targets belong in the local solve. When Build N epic: CD target surface + base rebuild bundle (quartet, assets, QRF fix, feed regen, gate hardening) #449 put small-area targets into the national solve, the share of targets within 10% fell by half (SLD layer for the local artifact: per-district ACS calibration (targets, membership vintage, doctrine solve, validation) #625).
Done when
- Each product has one target declaration, and tests pin the counts.
- The docs' statement about one target surface is true, or it is amended.
- The state slices of the local file fit the national build's state targets, with reported fit by family.
- District ACS targets are in the fit, and held-out families are reported.
Decisions needed
- Whether the local build fits the national rows and the full state set of the national build.
- Which district families enter the loss, and which stay as checks only.
Related
#1528, #1644, #1038, #1526, #449, #625, #880, PR #1531, PR #1040, PR #1030.
Sub-issues
Collapse Sub-issuesSub-issues
Loading 6 sub-issues
Metadata
Metadata
Assignees
Labels
No labels
Activity