Enhancements
- Added
factor_level_methodargument todf_explicit_na()to control factor level ordering
when converting character or logical columns. Supported methods:"sort_auto"(default,
locale-aware, preserves original behavior),"sort_radix"(byte-order / ASCII sort), and
"data"(first-appearance order). (#1322) - Added
factor_as_factorargument todf_explicit_na()to allow re-encoding of existing
factor columns usingfactor_level_method. Defaults toFALSEto preserve original behavior. - Added
factor_level_last_patternargument todf_explicit_na()to move factor levels
matching a regular expression to the end (beforena_level). - Added
alternativeargument tos_coxph_pairwise()to allow one-sided hypothesis testing. - Added
lr_stat_dfto the parameters return list ofs_coxph_pairwise(). - Added
uncond_exact_diffmethod toestimate_proportion_diff()for the unconditional exact confidence interval for the difference in proportions by inverting one-sided tail tests over a nuisance parameter. - Added
cmh_satomethod totest_proportion_diff()for CMH testing with the Sato variance estimator. (#1482) - Added
range_with_cens_infostatistic tos_surv_time(). - Added
lsmean_se,lsmean_ci, andlsmean_diffcistatistics tos_ancova(). - Added
s_ancova()to exported functions. - In
estimate_proportion_diffnow also the standard error is available for selected methods in these_diffstatistic. - Exported
h_incidence_rate()to allow to reuse the incidence rate estimation logic. - Exported
prop_chisq(),prop_cmh(),prop_fisher(), andprop_schouten()for standalone proportion difference testing. - Added
digitsargument toh_tbl_median_surv()andcontrol_surv_med_annot()to control thesignif()precision of the median survival time and confidence interval values annotated ing_km(). (#1469)
Bug Fixes
- Fixed bug in
prop_diff_cmh()which previously failed when strata combinations had 0 observations. - Fixed one-sided p-values in
prop_cmh()with Wilson-Hilferty transformation — the sign of the effect was lost, producing incorrect p-values foralternative = "less"andalternative = "greater".
Miscellaneous
- Relaxed
fit_logistic()tests to compare only the formula right-hand side, so they no longer break whensurvival::clogit()changes the internally generated response term. (#1484) - Updated
roxygen2to 8.0.0 and added@exportS3Methodtags for S3 methods indecorate_grob.Randutils_grid.R. - Converted
s_surv_time()to exported functions.
What's Changed
- correct TMAX by @Shaakon35 in #1460
- Update email for Abinaya Yogasekaram by @shajoezhu in #1461
- Change email for Jana Stoilova by @shajoezhu in #1463
- Update dependencies in DESCRIPTION file by @shajoezhu in #1464
- Update Adrian Waddell's email address by @shajoezhu in #1465
- Update roxygen2 to 8.0.0 and add @exportS3Method tags by @Melkiades in #1477
- Add additional lr_stat_df statistic by @munoztd0 in #1474
- 1475: Add unconditional exact CI for proportion differences by @danielinteractive in #1476
- 1478: fix
prop_diff_cmh()check by @danielinteractive in #1479 - Kaplan meier; Added
range_with_cens_infostatistic tos_surv_time()by @munoztd0 in #1481 - Add lsmean_se/lsmean_ci/lsmean_diffci stats, weights_emmeans param, by @munoztd0 in #1480
- 1482: Add CMH test with Sato variance estimator by @danielinteractive in #1483
- Compare only formula RHS in fit_logistic() tests by @Melkiades in #1485
- Exported
h_incidence_rate()by @munoztd0 in #1488 - Clean up (re-document, fix linters, update old magritr to native pipe) by @munoztd0 in #1489
- feat: add factor_level_method, factor_as_factor, factor_level_last_pattern to df_explicit_na by @kaipingyang in #1487
- Update survival package version in DESCRIPTION by @shajoezhu in #1496
- 1490: additional stats by @danielinteractive in #1491
- Expose digits argument for h_tbl_median_surv by @shajoezhu with @Copilot in #1469
- Cran v0.9.11 by @shajoezhu in #1497
New Contributors
- @Shaakon35 made their first contribution in #1460
- @munoztd0 made their first contribution in #1474
- @kaipingyang made their first contribution in #1487
- @shajoezhu with @Copilot made their first contribution in #1469
Full Changelog: v0.9.10...v0.9.11