gtsummary 1.3.5
New Functionality
-
New summary type
continuous2
allows adding labelled statistic rows to tables intbl_summary()
andtbl_svysummary()
. You can report several lines of statistics with this type. (#620)- The
all_continuous()
function now selects summary typescontinuous
andcontinuous2
by default. - Added
all_continuous2()
function for selecting summary typecontinuous2
exclusively. - Added
theme_gtsummary_continuous2()
to makecontinuous2
the default summary type for all continuous variables.
- The
-
New function
add_glance_source_note()
adds the statistics returned inbroom::glance()
as a source note on atbl_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()
andtbl_uvregression()
. (#635)tidy_standardize()
returns standardized coefficients using the {effectsize} packagetidy_bootstrap()
gives bootstrapped parameter estimates, calculated using the {parameters} package
Bug Fixes
-
Bug fix where
estimate_fun=
andpvalue_fun=
were not being passed totbl_regression()
intbl_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 atbl_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 inadd_p()
(#654) - Added first draft of the NEJM theme
- Added the mid-point decimal separator for the Lancet theme
- Add