Skip to contents

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.

Usage

separate_p_footnotes(x)

Arguments

x

(tbl_summary)
A summary table on which add_p() or add_difference() (one of the two, not both) has been run.

Value

An ltsummary object.

Examples

# Example 1 ----------------------------------
trial |>
  tbl_summary(by = trt, include = c(age, grade)) |>
  add_p() |>
  separate_p_footnotes()