Learn R Programming

gtsummary (version 1.2.1)

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

Description

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

Usage

# S3 method for tbl_regression
sort_p(x, ...)

Arguments

x

An object created using tbl_regression function

...

Not used

Value

A tbl_regression object

Example Output

See Also

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

Examples

Run this code
# NOT RUN {
tbl_lm_sort_p_ex <-
  glm(response ~ trt + grade, trial, family = binomial(link = "logit")) %>%
  tbl_regression(exponentiate = TRUE) %>%
  sort_p()
# }

Run the code above in your browser using DataLab