Skip to content

gtsummary 1.3.5

Compare
Choose a tag to compare
@ddsjoberg ddsjoberg released this 30 Sep 14:03

New Functionality

  • New summary type continuous2 allows adding labelled statistic rows to tables in tbl_summary() and tbl_svysummary(). You can report several lines of statistics with this type. (#620)

    • The all_continuous() function now selects summary types continuous and continuous2 by default.
    • Added all_continuous2() function for selecting summary type continuous2 exclusively.
    • Added theme_gtsummary_continuous2() to make continuous2 the default summary type for all continuous variables.
  • New function add_glance_source_note() adds the statistics returned in broom::glance() as a source note on a tbl_regression() (#434)

  • Exporting the modify_table_header() function, which is an advanced-use function used to make modifications to the .$table_header object to update printing instructions for the gtsummary object.

  • Added two custom tidiers for use in tbl_regression() and tbl_uvregression(). (#635)

    • tidy_standardize() returns standardized coefficients using the {effectsize} package
    • tidy_bootstrap() gives bootstrapped parameter estimates, calculated using the {parameters} package

Bug Fixes

  • Bug fix where estimate_fun= and pvalue_fun= were not being passed to tbl_regression() in tbl_uvregression()

  • There was an environments bug when evaluating the LHS of the formula inputs. In some complex situations, a stored character vector of column names could not properly evaluate (#604)

  • Fixed style_ratio() bug where there were rounding errors near one (#651)

  • Fixed style_sigfig() bug where there were rounding errors near thresholds (#638)

  • Adding the footnote from the stat columns describing the statistics presented to the overall column (#643)

Other Updates

  • Refresh of vignettes to use recently released functions (#649)

  • Moved the nevent column to after the N column when add_nevent() is called on a tbl_regression() object (#439)

  • gtsummary themes updates

    • Add theme_gtsummary_mean_sd() theme to report mean and SD by default and use t-tests and ANOVA in add_p() (#654)
    • Added first draft of the NEJM theme
    • Added the mid-point decimal separator for the Lancet theme