Commit b634294
Add survey real-data validation against R using federal survey datasets
Validate diff-diff's survey variance estimation against R's survey package
using three real-world datasets: California API (strata+FPC), NHANES ACA
young adult coverage (strata+PSU+nest), and RECS 2020 (JK1 replicate
weights). All 15 tests match R to machine precision (<1e-10 differences).
Includes R benchmark scripts, Python download scripts, golden value JSON
files, and a real-data section in the survey tutorial demonstrating the
ACA dependent coverage provision DiD on actual CDC data.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 1f6ade8 commit b634294
15 files changed
Lines changed: 270621 additions & 81 deletions
File tree
- benchmarks
- R
- data/real
- docs
- tutorials
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
10 | 17 | | |
11 | 18 | | |
12 | 19 | | |
| |||
0 commit comments