Repository navigation
·
11 commits
to main
since this release
modify_split_caption()now errors when given a table that was never split, instead of silently returning it unchanged. A plain table has no split level to build a subtitle from; the message points atsplit_by_rows = list(variable_level = ...). Pages of a row-number split are still skipped silently, as before. (#318)- Added
add_label_column()to split a{gtsummary}table's row labels into a new left label column (label0) and the existinglabelcolumn, computing the new column from an expression evaluated in the table body. This is thestrata_location = "new_column"layout oftbl_shift()exposed as a standalone step for nested count and shift tables. (#314) tbl_null_report()now centers its message, so with no body content it reads as a "no data" panel spanning the table instead of text hugging the left edge. (#305)get_mmrm_results()gains aweightsargument (default"equal") passed toemmeans::emmeans(), so proportionally weighted LS Means can be requested withweights = "proportional". Check?emmeans::emmeans()for otherweightsoptions. (#299)tbl_mmrm()gains abaseline_argsargument, forwarded to the baselinetbl_roche_summary()call, to configure the baseline section statistics (previously locked tonandMean (SE)). (#299)tbl_mmrm()gains apostbaseline_argsargument to select, reorder, relabel and reformat the post-baseline statistics (previously locked to n, adjusted means, differences and p-value). Built-in"geom_mean_ratio"and"geom_mean_ratio_ci"statistics are available for log-transformed responses. (#299)remove_duplicate_keys()now keeps thetbl_splitclass and attributes when applied to a split table, instead of returning a plain list. (#301)annotate_lineplot_df()gains"se"and"ci"assummary_statsoptions, reporting the standard error and the confidence interval of the mean (at a newconf_levelargument) in the summary table below the plot. (#307)gg_lineplot()gains ashow_nargument to append group sizes to the legend (e.g."Placebo (N=42)") and ajitterargument to horizontally separate overlapping groups while keeping points, lines, and error bars aligned. (#307)- Added
tbl_proportion()to summarize a binary or multinomial variable as proportions with confidence intervals (estimate and CI on separate rows), with a selectable CImethodandconf.level. The CI row label can be overridden withci_label; the default for the continuity-corrected methods now reads "with continuity correction". (#303) - Added
add_proportion_difference()to append the difference in rates, its confidence interval, and a p-value ("chisq","fisher", or"cmh"), with stratified (Cochran-Mantel-Haenszel) support viastrata. Thecorrectflag controls the continuity correction on the difference interval andtest_correct(defaultFALSE) the Yates correction on the chi-squared p-value. (#303) - Added
add_proportion_odds_ratio()to append an odds ratio, with stratified (Cochran-Mantel-Haenszel) support viastrata. (#303) - Added
modify_split_caption()to subtitle each page of a split{gtsummary}table (e.g. fromtbl_listing(),tbl_baseline_chg(), ortbl_shift()) from its split level via a gluepattern(default"Parameter: {spl_level}") and hide the now-redundant split column. (#282) annotate_lineplot_df()andannotate_pkc_df()gain afont_sizeargument to control the summary table font size, matchingannotate_riskdf(). Thetext_sizeargument ofannotate_pkc_df()is soft-deprecated in favor offont_size. (#295)- Renamed
imputation_rules()topk_imputation_rules()to make its PK scope explicit. It applies BLQ display rules to PK summary statistics based on the BLQ ratio and dosing timing, and now marks any missing statistic (e.g. standard deviation or CV% whenn = 1) as"NE"(not estimable). (#293) - Renamed
d_pkparam()topk_param_metadata()andh_pkparam_sort()topk_param_sort(), dropping thed_/h_prefixes.pk_param_sort()now warns about parameter codes missing from the reference and keeps their rows instead of dropping them silently. (#293) - PK summary helpers (
cv(),geom_cv(),geom_mean(),fmt_3sig(),fmt_pct(),pk_imputation_rules()) now validate their inputs and raise informative errors. (#293) geom_mean()returnsNA_real_instead ofNaNwhen all concentrations are missing. (#293)fmt_3sig()andfmt_pct()are now vectorized and returnNA_character_forNAor non-finite input. (#293)annotate_riskdf()now builds the "Numbers at Risk" table at the plot's x-axis breaks, so custom ticks set withggplot2::scale_x_continuous(breaks = ...)are reflected in the table. (#278)theme_gtsummary_roche()now frames the flextable column labels with an outer border only, removing the internal borders between header rows and the inconsistent missing right border. (#272)- Fixed minor typo in the DESCRIPTION file.
tbl_hierarchical_incidence_rate()gains anoverall_rowargument to control whether the overall summary row is included. (#264)tbl_hierarchical_incidence_rate()now supportsadd_overall()to append an unstratified column pooling all treatment arms, consistent with the otheradd_overall()methods in the package (last = FALSEand a gluecol_labelby default). (#264)tbl_hierarchical_incidence_rate()now renders spanning headers for treatment arm columns, customizable via the newspanning_labelglue argument (e.g."{level} (N = {n})"). (#264)tbl_with_pools()no longer strips spanning headers set by the inner.tbl_fun, so poolingtbl_baseline_chg()keeps the treatment-arm headers. (#297)
What's Changed
- update news and description [skip vbump] by @shajoezhu in #266
- Init; asterisks in tbl_survfit_quantiles by @jszczypinski in #267
- feat: expose
overall_row,add_overall(), and spanning headers fortbl_hierarchical_incidence_rate()by @Melkiades in #265 - annotate_riskdf() builds risk table at the plot.s x-axis breaks by @Melkiades in #279
- Frame flextable header column labels with an outer border only by @Melkiades in #274
- Add myself as contributor by @llrs-roche in #285
- feat: add position parameter to gg_add_stats for error bar adjustments by @martincadek in #276
- Add d_pkparam() and h_pkparam_sort() for PP LTGs. by @qiliu1013 in #288
- Add pk helper functions by @qiliu1013 in #289
- Update imported {standalone} scripts to current source (#280) by @Melkiades in #281
- Print method update in {cards} by @ddsjoberg in #291
- Add modify_split_caption() to label paginated splits and hide the split column (#282) by @Melkiades in #283
- Fix PK helper defects and add tests by @Melkiades in #294
- Add font_size to annotate_lineplot_df() by @Melkiades in #296
- Keep inner spanning headers in tbl_with_pools() by @Melkiades in #298
- Center tbl_null_report() message by @Melkiades in #306
- Add se to annotate_lineplot_df() summary table by @Melkiades in #308
- Preserve tbl_split class in remove_duplicate_keys() by @Melkiades in #302
- Expose emmeans weights and baseline statistics in MMRM functions by @Melkiades in #300
- Add add_label_column() to split labels into a value column by @Melkiades in #315
- Add tbl_proportion() and proportion comparison verbs by @Melkiades in #304
- Error when modify_split_caption() is given an unsplit table by @Melkiades in #321
- [skip vbump] Prepare crane 0.4.0 release candidate by @Melkiades in #320
New Contributors
- @martincadek made their first contribution in #276
- @qiliu1013 made their first contribution in #288
Full Changelog: v0.3.2...v0.4.0