separate_p_footnotes: Create footnotes for individual p-values

View source: R/separate_p_footnotes.R

separate_p_footnotesR Documentation

Create footnotes for individual p-values

Description

\lifecycle

questioning
The usual presentation of footnotes for p-values on a gtsummary table is to have a single footnote that lists all statistical tests that were used to compute p-values on a given table. The separate_p_footnotes() function separates aggregated p-value footnotes to individual footnotes that denote the specific test used for each of the p-values.

Usage

separate_p_footnotes(x)

Arguments

x

(tbl_summary, tbl_svysummary)
Object with class "tbl_summary" or "tbl_svysummary"

Examples

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

gtsummary documentation built on Oct. 5, 2024, 1:06 a.m.