Skip to content

Latest commit

 

History

History
113 lines (56 loc) · 4.77 KB

File metadata and controls

113 lines (56 loc) · 4.77 KB

crane 0.3.1.9010

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)

Other Updates

  • 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.

crane 0.3.1

New Functions and Functionality

  • Added tbl_roche_subgroups() for subgroup analysis.

  • Added g_forest to create forest plot.

crane 0.3.0

New Functions and Functionality

  • Added tbl_null_report() for cases without any information to display. (#11)

  • Added functions style_roche_number() and label_roche_number() to replace their respective gtsummary versions, with additional inf argument for customization of Inf/-Inf/NaN values.

  • Added gg_km() function for creating Kaplan-Meier plots.

  • Added tbl_subgroups and g_forest to make subgroup analysis and forest plots.

  • Added list("assign_summary_type-arg:cat_threshold" = 0L) to theme_gtsummary_roche(). Numeric variables with few levels will no longer default to summary type 'categorical' in gtsummary::tbl_summary() and tbl_roche_summary(). (#79)

Other Updates

  • Updated variable processing in tbl_baseline_chg() to allow for non-string input. (#114)

  • Updated details about the sort_hierarchical() and filter_hierarchical() functions in the hierarchical tables article. (#116)

  • Added the label argument to tbl_hierarchical_rate_and_count() to set hierarchy variables labels in the table header. (#118)

Bug Fixes

  • Fixed remove_duplicate_keys() to remove non-unique column values when the key columns are a mix of unique and duplicated entries. (#129)

crane 0.2.0

New Functions and Functionality

  • The tbl_demographics() function has been renamed to tbl_roche_summary() with the following updates. (#73).

    • Updated tbl_roche_summary() to convert cells with "0 (0.0%)" to "0".

    • Update the tbl_roche_summary() returned inputs list to match the tbl_roche_summary() argument inputs, whereas it previously returned the tbl_summary() inputs. (#31)

    • Changed the default header in tbl_roche_summary() tables from **Characteristic** to an empty string.

    • Fix in tbl_roche_summary() when a variable is all NA within a stratum. The zero count was displayed as "0 (NA%)" instead of "0". (#60)

  • Added function tbl_hierarchical_rate_by_grade() to summarize adverse event rates by highest toxicity grade. (#46)

  • Adding the modify_zero_recode() function that recodes "0 (0.0%)" to "0" in summary tables.

  • Adding the modify_header_rm_md() function to remove bold and italic markdown syntax from the headers of a gtsummary table. (#53)

  • Adding tbl_hierarchical_rate_and_count() and associated S3 method add_overall() to summarize hierarchical event rates and counts. (#36)

  • Added tbl_survfit_quantiles() and add_overall.tbl_survfit_quantiles() to create a table of survival quantiles. (#19)

  • Adding tbl_survfit_times() and add_overall.tbl_survfit_times()

  • Adding tbl_baseline_chg() function. (#62)

  • Added function tbl_shift() for easing the creation of shift tables. (#83)

  • Added style_roche_percent() and label_roche_percent() functions.

  • Added formatting functions style_roche_ratio() and label_roche_ratio(). (#91)

  • Added variables and row_numbers arguments to the add_blank_rows() function. (#45)

  • Re-coding 0 / 0 (NA%) to 0 / 0 in modify_zero_recode(). (#85)

Other Updates

  • Added an article giving an overview of the {crane} package. (#37)

  • The {gtsummary} is now loaded with {crane}.

  • Updated Roche theme to bold headers for flextable outputs.

  • Updated Roche theme to include parentheses around Ns in header, and updated function defaults to include the parentheses in crane functions.

  • Updated theme_gtsummary_roche() to further style results from gtsummary::tbl_hierarchical*() functions.

  • Added theme_gtsummary_roche(font_size, print_egine) arguments to control the default font size and the print engine.

  • Updated Roche theme to use style_roche_percent() as the default function to format percentages.

  • Added additional {flextable} specs for theme_gtsummary_roche(). Mainly border line width (0.5) and footer font size (font_size - 1).

crane 0.1.0

  • Initial release