Skip to content

v0.3.2-rc2

Choose a tag to compare

@insights-engineering-bot insights-engineering-bot released this 02 Jun 13:46
· 28 commits to main since this release
a3322ad

New Functions and Functionality

  • Added g_lineplot() for creating line plots with optional summary statistics table. Includes helper functions calc_stats(), g_lineplot_table(), and preprocess_lineplot_data().
  • Added ard_tabulate_abnormal_by_baseline() for creating an Analysis Results Data (ARD) object counting participants with abnormal assessments, stratified by their baseline status.
  • Added tbl_mmrm() and get_mmrm_results() functions to create regression tables for Mixed Models for Repeated Measures (MMRM). (#163)
  • Added gg_mmrm_lineplot() to create line plots of MMRM results. (#181)
  • Added gg_pkc_lineplot() to create line plots for PK data. (#185)
  • Added annotate_gg_pkc() to add optional summary statistics table to
    gg_pkc_lineplot(). (#189)
  • Refactored the underlying data.frame alignment and rendering methodology used for plot annotations. Functions for table annotation now use a completely rebuilt engine that ensures X-axis synchronization for stacked tables (annotate_riskdf()) and flexible, reliable placement for floating tables (annotate_surv_med(), annotate_coxph()). (#189)
  • Refactored functions for lineplot plotting - added gg_lineplot() and annotate_gg() to create lineplots and annotate summary statistics table. (#184)
  • Added functions reverse_ci(), reverse_rate_difference() to reverse confidence intervals and rate differences in tables from add_row_difference(). (#204)
  • g_lineplot(), g_lineplot_table(), and preprocess_lineplot_data() were deprecated. (#184)
  • Added tbl_coxph() to render pairwise Cox proportional hazards results as a gtsummary table. (#159)
  • Added tbl_hierarchical_incidence_rate() which computes the incidence rate of adverse events (#211)
  • Added adjust_stat_columns_wrap() which keep the presentation of statistics in one row (#219)
  • get_cox_pairwise_df() now allows for different methods to compute p-value (#191) and to handle ties (#193).
  • tbl_coxph() now accepts a data.frame created by get_cox_pairwise_df() as input. (#207)
  • Added add_grade_column() to inject a grade-label column into tbl_hierarchical_rate_by_grade() output. Decoupled from the table builder to prevent Cartesian join explosion in tbl_merge(). (#226)
  • get_cox_pairwise_df() now fully supports strata() terms in survival formulas (#256).
  • The "likelihood-ratio" test now intelligently switches between survival::survreg() (for unstratified models) and survival::coxph() (for stratified models) (#256).
  • Stripped package namespace prefixes (e.g., survival::) from survival formulas to prevent evaluation errors (#256).
  • Added ... support in get_cox_pairwise_df() for conf.int (e.g., to adjust CI level) and robust = TRUE (for robust standard errors).

Other Updates

  • tbl_hierarchical_rate_and_count() now emits zero-rows for unobserved factor levels in the first hierarchical variable. (#233)
  • df2gg_aligned() and df2gg_floating() now preserve original ggplot objects in attr(result, "plotlist") for downstream data extraction after combining with cowplot. (#208)
  • Remove warning when data has more levels than needed for grade_groups on tbl_hierarchical_rate_by_grade.
  • Changed the default conf.type from "log" to "plain" (linear) in tbl_survfit_times() and tbl_survfit_quantiles() to align with GDSR guidelines. (#173)
  • Removed bold from headers when using tbl_strata() (#133).
  • Unified border width in theme_gtsummary_roche() to 0.5 for header. (#154)
  • Added example on how to stratify tbl_baseline_chg() by PARAM and split into a list.
  • Adjusted tbl_mmrm() to allow base_df = NULL.
  • Fixed two bugs related to summary statistics calculation in ard_tabulate_abnormal_by_baseline(). (#198)
  • Fixed a bug in gg_pkc_lineplot() causing misplaced error bars on a log scale. (#199)
  • Adjusted gg_pkc_lineplot() to use tbl_roche_summary() for automatic decimals formatting.
  • Adjusted tbl_hierarchical_incidence_rate() to handle first event as well as
    all events (#217)
  • Adjusted tbl_baseline_chg() to allow for custiomization of display statistics (#222)
  • Changed baseline statistic argument in tbl_baseline_chg() (#224)
  • Adjusted modify_zero_recode() to account for strings comprising regular and non-breaking spaces (#230)
  • tbl_roche_subgroups() now shows n, Events, and Median per arm when time_to_event is specified. The total column shows Total Events instead of Total n. (#235)
  • Skip tests if suggested packages are missing (Failing test due to missing suggested package #252, @llrs-roche)
  • The default "log-rank" test now uses survival::survdiff() instead of coin, aligning output more closely with SAS and rtables

What's Changed

New Contributors

Full Changelog: v0.3.1...vX.Y.Z-rc1