Learn R Programming

gtsummary (version 1.2.0)

sort_p.tbl_uvregression: Sort variables in table by ascending p-values

Description

Sort variables in tables created by tbl_uvregression by ascending p-values

Usage

# S3 method for tbl_uvregression
sort_p(x, q = FALSE, ...)

Arguments

x

an object created using tbl_uvregression function

q

logical argument. When TRUE will sort by the q-value column rather than the p-values

...

Not used

Value

A tbl_uvregression object

Example Output

See Also

Other tbl_uvregression tools: add_global_p.tbl_uvregression, add_nevent.tbl_uvregression, add_q.tbl_uvregression, bold_italicize_labels_levels, bold_p.tbl_stack, bold_p.tbl_uvregression, inline_text.tbl_uvregression, modify_header, tbl_merge, tbl_stack, tbl_uvregression

Examples

Run this code
# NOT RUN {
tbl_uvglm_sort_p_ex <-
  trial %>%
  dplyr::select(age, marker, response, grade) %>%
  tbl_uvregression(
    method = glm,
    y = response,
    method.args = list(family = binomial),
    exponentiate = TRUE
  ) %>%
  sort_p()
# }

Run the code above in your browser using DataLab