A table with p-values usually carries a single footnote listing every
statistical test that was used. separate_p_footnotes() replaces it with
individual footnotes that name the specific test behind each p-value.
Arguments
- x
(
tbl_summary)
A summary table on whichadd_p()oradd_difference()(one of the two, not both) has been run.
Examples
# Example 1 ----------------------------------
trial |>
tbl_summary(by = trt, include = c(age, grade)) |>
add_p() |>
separate_p_footnotes()