Adjustments to are p-values are performed with stats::p.adjust.
# S3 method for tbl_uvregression
add_q(x, method = "fdr",
pvalue_fun = x$inputs$pvalue_fun, ...)
tbl_uvregression
object
String indicating method to be used for p-value adjustment.
Methods from stats::p.adjust are accepted. Default is method = 'fdr'
.
Function to round and format p-values.
Default is style_pvalue.
The function must have a numeric vector input (the numeric, exact p-value),
and return a string that is the rounded/formatted p-value (e.g.
pvalue_fun = function(x) style_pvalue(x, digits = 2)
or equivalently,
purrr::partial(style_pvalue, digits = 2)
).
Additional arguments passed to or from other methods
A tbl_uvregression
object
Other tbl_uvregression tools: add_global_p.tbl_uvregression
,
add_nevent.tbl_uvregression
,
bold_italicize_labels_levels
,
bold_p.tbl_stack
,
bold_p.tbl_uvregression
,
inline_text.tbl_uvregression
,
modify_header
,
sort_p.tbl_uvregression
,
tbl_merge
, tbl_stack
,
tbl_uvregression
# NOT RUN {
tbl_uvr_q_ex <-
trial %>%
dplyr::select(age, marker, grade, response) %>%
tbl_uvregression(
method = lm,
y = age
) %>%
add_global_p() %>%
add_q()
# }
Run the code above in your browser using DataLab