add_global.fmt_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_regression'
add_global(x, terms = NULL, keep = FALSE, ...)

Arguments

x

object with class fmt_regression from the fmt_regression function

terms

Character vector of terms for which to add global p-values. Default is NULL which will add global p-values for all categorical variables

keep

logical argument whether to keep the individual p-values for the levels of the categorical variable. Default is FALSE

...

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

Examples

1
lm(marker ~ stage + grade, trial) %>% fmt_regression() %>% add_global()

ddsjoberg/clintable documentation built on June 9, 2019, 1:51 a.m.