add_q.fmt_uni_regression: Add a column of q values to 'fmt_uni_regression' object to...

Description Usage Arguments Examples

Description

The adjustments to the p-values is performed with stats::p.adjust. The default method for correction is false discovery rate ("fdr")

Usage

1
2
## S3 method for class 'fmt_uni_regression'
add_q(x, method = "fdr", ...)

Arguments

x

table1 object

method

character argument. Methods from stats::p.adjust are accepted. Default is method = fdr.

...

further arguments passed to or from other methods

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
lm(mpg ~ hp + am, mtcars) %>%
  fmt_regression() %>%
  bold_p()

trial %>%
  fmt_uni_regression(
    method = "lm",
    y = "age"
  ) %>%
  add_global() %>%
  add_q()

ddsjoberg/gtsummary-v0.1 documentation built on June 4, 2019, 7:48 a.m.