Commit 685c926
fix: address CI review round 2 - block heterogeneous TE, fix hi-bracket, docstrings
- P0: reject heterogeneous_te_by_strata=True in survey power validation
(DGP population_att diverges from input treatment_effect, making
bias/coverage/RMSE metrics misleading)
- P1: fix simulate_sample_size auto-bracketing hi to respect abs_min
(hi = max(2*lo, abs_min, 100) prevents probing below survey floor)
- P2: add survey_config parameter to simulate_power/mde/sample_size
docstrings with constraints and supported estimators
- P2: add regression tests for heterogeneous_te rejection and
large-floor (n_strata=10, psu_per_stratum=10, min_viable_n=200)
auto-bracketing branch
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 40acf5b commit 685c926
2 files changed
Lines changed: 53 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1812 | 1812 | | |
1813 | 1813 | | |
1814 | 1814 | | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
| 1821 | + | |
1815 | 1822 | | |
1816 | 1823 | | |
1817 | 1824 | | |
| |||
1906 | 1913 | | |
1907 | 1914 | | |
1908 | 1915 | | |
| 1916 | + | |
| 1917 | + | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
1909 | 1923 | | |
1910 | 1924 | | |
1911 | 1925 | | |
| |||
2482 | 2496 | | |
2483 | 2497 | | |
2484 | 2498 | | |
| 2499 | + | |
| 2500 | + | |
| 2501 | + | |
2485 | 2502 | | |
2486 | 2503 | | |
2487 | 2504 | | |
| |||
2693 | 2710 | | |
2694 | 2711 | | |
2695 | 2712 | | |
| 2713 | + | |
| 2714 | + | |
| 2715 | + | |
| 2716 | + | |
| 2717 | + | |
2696 | 2718 | | |
2697 | 2719 | | |
2698 | 2720 | | |
| |||
2847 | 2869 | | |
2848 | 2870 | | |
2849 | 2871 | | |
2850 | | - | |
| 2872 | + | |
2851 | 2873 | | |
2852 | 2874 | | |
2853 | 2875 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2377 | 2377 | | |
2378 | 2378 | | |
2379 | 2379 | | |
| 2380 | + | |
| 2381 | + | |
| 2382 | + | |
| 2383 | + | |
| 2384 | + | |
| 2385 | + | |
| 2386 | + | |
| 2387 | + | |
| 2388 | + | |
| 2389 | + | |
| 2390 | + | |
| 2391 | + | |
| 2392 | + | |
| 2393 | + | |
| 2394 | + | |
| 2395 | + | |
| 2396 | + | |
| 2397 | + | |
| 2398 | + | |
| 2399 | + | |
| 2400 | + | |
| 2401 | + | |
| 2402 | + | |
| 2403 | + | |
| 2404 | + | |
| 2405 | + | |
| 2406 | + | |
| 2407 | + | |
| 2408 | + | |
| 2409 | + | |
2380 | 2410 | | |
2381 | 2411 | | |
2382 | 2412 | | |
| |||
0 commit comments