Commit 6386934
fix(#36055): align prob_dist_prop and prob_dist_diff with sample code
- prob_dist_prop: clamp x to [0, 1] so proportion chart never shows
out-of-range values when p0 is near 0 or 1 with small n
- prob_dist_diff: use abs() for se_val to match sample code convention
and tighten degenerate guard to se_val == 0
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 3be911f commit 6386934
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1311 | 1311 | | |
1312 | 1312 | | |
1313 | 1313 | | |
1314 | | - | |
1315 | | - | |
| 1314 | + | |
| 1315 | + | |
1316 | 1316 | | |
1317 | 1317 | | |
1318 | 1318 | | |
| |||
3528 | 3528 | | |
3529 | 3529 | | |
3530 | 3530 | | |
3531 | | - | |
| 3531 | + | |
| 3532 | + | |
3532 | 3533 | | |
3533 | 3534 | | |
3534 | 3535 | | |
| |||
0 commit comments