Commit d208b22
committed
v0.1.0a17: tbl_one Rao-Scott footnote grade + NaN weight guard
Two fixes from external adversarial audit:
F-02: Rao-Scott rendered table footnote now names the first-order
Kish-DEFF approximation and its known disagreement range with R
survey::svychisq (10-15% or more under high ICC). Previously the
footnote only said "Tests: Rao-Scott chi-square" with no grade
qualifier — invisible in published HTML/PDF tables even though the
UserWarning existed. A separate footnote line is appended whenever
the Rao-Scott test appears in test_names.
F-03: tbl_one() now raises ValueError when the weights column
contains NaN values, matching tbl_regression() behavior. Previously
NaN weights were silently coerced to 0, which caused the affected
group to display N=0 and all statistics as em-dashes with no user
signal. The error message names the column and suggests a fix.1 parent 738b647 commit d208b22
3 files changed
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
162 | 170 | | |
163 | 171 | | |
164 | 172 | | |
| |||
454 | 462 | | |
455 | 463 | | |
456 | 464 | | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
457 | 471 | | |
458 | 472 | | |
459 | 473 | | |
| |||
0 commit comments