View source: R/theme_gtsummary_apa.R
theme_gtsummary_apa | R Documentation |
Set an APA-like theme for gtsummary
tables, i.e. means and standard
deviations with two decimals are calculated for continuous variables, the
Welch test (as the default t.test function in R calculates a Welch test) is
the default statistical test for a two group comparison, and the method for
correcting p-values is the false discovery rate correction.
theme_gtsummary_apa(set_theme = TRUE)
set_theme |
Logial, defaults to TRUE. Indicates whether the theme should be loaded. |
An APA-like gtsummary table
theme_gt_apa()
library(gtsummary)
theme_gtsummary_apa()
trial %>%
select(trt, age, response, ttdeath) %>%
tbl_summary(by = trt) %>%
add_n() %>%
add_p() %>%
add_q(quiet = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.