Adjustments to p-values are performed with stats::p.adjust()
.
Arguments
- x
(
gtsummary
)
agtsummary
object with a column named"p.value"
- method
(
string
)
String indicating method to be used for p-value adjustment. Methods fromstats::p.adjust()
are accepted. Default ismethod='fdr'
. Must be one of 'holm', 'hochberg', 'hommel', 'bonferroni', 'BH', 'BY', 'fdr', 'none'- pvalue_fun
(
function
)
Function to round and format q-values. Default is the function specified to round the existing'p.value'
column.- quiet
Examples
# Example 1 ----------------------------------
add_q_ex1 <-
trial |>
tbl_summary(by = trt, include = c(trt, age, grade, response)) |>
add_p() |>
add_q()
# Example 2 ----------------------------------
trial |>
tbl_uvregression(
y = response,
include = c("trt", "age", "grade"),
method = glm,
method.args = list(family = binomial),
exponentiate = TRUE
) |>
add_global_p() |>
add_q()
Characteristic
N
OR
95% CI
p-value
q-value1
Abbreviations: CI = Confidence Interval, OR = Odds Ratio
1 False discovery rate correction for multiple testing