powered by
fmt_regression
This function uses Anova from the car package with type = "III" to calculate global p-values.
Anova
car
type = "III"
# S3 method for fmt_regression add_global(x, terms = NULL, keep = FALSE, ...)
object with class fmt_regression from the fmt_regression function
Character vector of terms for which to add global p-values. Default is NULL which will add global p-values for all categorical variables
NULL
logical argument whether to keep the individual p-values for the levels of the categorical variable. Default is FALSE
FALSE
arguments to be passed to Anova. Adding test.statistic = can change the type of test (e.g. Likelihood-ratio, Wald, etc.).
test.statistic =
# NOT RUN { lm(marker ~ stage + grade, trial) %>% fmt_regression() %>% add_global() # }
Run the code above in your browser using DataLab