Skip to content

Commit 5a674cb

Browse files
authored
Merge pull request #489 from PolicyEngine/maria/all_calibration_vars
Supporting all calibration targets with SparseMatrixBuilder
2 parents 37e86fd + 7ae9ea0 commit 5a674cb

30 files changed

Lines changed: 5441 additions & 1267 deletions

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ node_modules
2727
!policyengine_us_data/storage/national_and_district_rents_2023.csv
2828
docs/.ipynb_checkpoints/
2929

30+
## ACA PTC state-level uprating factors
31+
!policyengine_us_data/storage/aca_ptc_multipliers_2022_2024.csv
32+
3033
## Raw input cache for database pipeline
3134
policyengine_us_data/storage/calibration/raw_inputs/
3235

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.PHONY: all format test install download upload docker documentation data publish-local-area clean build paper clean-paper presentations database database-refresh promote-database promote-dataset
22

3-
HF_CLONE_DIR = $(HOME)/devl/huggingface/policyengine-us-data
3+
HF_CLONE_DIR ?= $(HOME)/huggingface/policyengine-us-data
44

55
all: data test
66

@@ -73,6 +73,7 @@ database-refresh:
7373
$(MAKE) database
7474

7575
promote-database:
76+
sqlite3 policyengine_us_data/storage/calibration/policy_data.db "PRAGMA wal_checkpoint(TRUNCATE);"
7677
cp policyengine_us_data/storage/calibration/policy_data.db \
7778
$(HF_CLONE_DIR)/calibration/policy_data.db
7879
rm -rf $(HF_CLONE_DIR)/calibration/raw_inputs

changelog_entry.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
- bump: minor
2+
changes:
3+
added:
4+
- Entity aware target calculations for correct entity counts.
5+
- Selection of targets closest to calibration time period and uprating logic for cohesive and comprehensive time-period coverage.
6+
- Hierarchical state-level uprating with CD reconciliation via hierarchy inconsistency factors (HIFs) and state-specific uprating factors (e.g., CMS/KFF ACA PTC multipliers).
7+
- stratum_domain and target_overview views for easier target inspection and debugging.
8+
- test_schema_views_and_lookups.py for testing the new views and lookups.
9+
- Calibration matrix diagnostic notebook (docs/calibration_matrix.ipynb).
10+
removed:
11+
- Redundant database fields and tables (variable_groups, variable_metadata,sources, source_id, stratum_group_id).

0 commit comments

Comments
 (0)