add_global.fmt_uni_regression: Adds the global p-value for a categorical variables in...

Description Usage Arguments Examples

Description

This function uses Anova from the car package with type = "III" to calculate global p-values.

Usage

1
2
## S3 method for class 'fmt_uni_regression'
add_global(x, ...)

Arguments

x

object with class fmt_uni_regression from the fmt_uni_regression function

...

arguments to be passed to Anova. Adding test.statistic = can change the type of test (e.g. Likelihood-ratio, Wald, etc.).

Examples

1
2
3
4
5
6
7
8
fmt_uni_regression(
  trial,
  method = "glm",
  y = "response",
  method.args = list(family = binomial),
  exponentiate = TRUE
) %>%
  add_global()

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