This is responsible for printing the significance test results and comparison
Arguments
- x
the
t1_signif
result as calculated bycompare_population(...)
- ...
not used
- layout
(optional) various layouts are defined as default. As of this version of
tableone
they are "relaxed","compact","micro","simple","single","missing". The layouts can be customised using the optionsoptions("tableone.format_list"=list(...)")
, and this is described in more detail in the vignettes.- override_percent_dp
(optional) a named list of overrides for the default precision of formatting percentages, following a
c(<colname_1> = 2, <colname_2> = 4, ...)
format. columns not present in this list will use the defaults defined in the layout. See the vignette on customisation.- override_real_dp
(optional) a named list of overrides for the default precision of formatting real values, following a
c(<colname_1> = 2, <colname_2> = 4, ...)
format. columns not present in this list will use the defaults defined in the layout. See theutils::vignette("customisation", package="tableone")
.- p_format
the format of the p-values: one of "sampl", "nejm", "jama", "lancet", "aim" but any value here is overridden by the
option("tableone.pvalue_formatter"=function(...))
- font_size
(optional) the font size for the table in points
- font
(optional) the font family for the table (which will be matched to closest on your system)
- footer_text
any text that needs to be added at the end of the table, setting this to FALSE dsables the whole footer (as does
options("tableone.hide_footer"=TRUE)
).- show_binary_value
if set this will filter the display of covariates where the number of possibilities is exactly 2 to this value.
Examples
library(tableone)
tmp = iris %>% dplyr::group_by(Species) %>%
as_t1_signif(tidyselect::everything()) %>%
huxtable::as_huxtable()
#> mean_sd summary for Sepal.Length
#> mean_sd summary for Sepal.Width
#> median_iqr summary for Petal.Length
#> median_iqr summary for Petal.Width
#> anova test on Sepal.Length
#> anova test on Sepal.Width
#> kruskal-wallis test on Petal.Length
#> kruskal-wallis test on Petal.Width