View source: R/plot_functions.R
multiple | R Documentation |
multiple
displays results from post-doc analysis and constructs corresponding plot.
multiple(
model,
formula,
adjust = "mvt",
type = "response",
reverse = TRUE,
level = 0.95,
digits = 2,
...
)
model |
A fitted model supported by |
formula |
A formula with shape: |
adjust |
Method to adjust CIs and p-values (see details). |
type |
Type of prediction (matching "linear.predictor", "link", or "response"). |
reverse |
Logical argument. Determines the direction of comparisons. |
level |
Confidence interval significance level. |
digits |
Number of digits for rounding (default = 2). |
... |
Further arguments passed to |
The default adjusting method is "mvt" which uses the multivariate t distribution.
Other options are: "bonferroni", "holm", "hochberg", "tukey" and "none". The default option for argument reverse
is to make reverse comparisons, i.e., against the reference level matching comparisons from lm
and glm
.
A list with objects: df
A data frame with adjusted p-values, fig_ci
a plot with estimates and adjusted confidence intervals and fig_pval
a plot comparing adjusted p-values.
emmeans
, pwpp
.
data(birthwt, package = "MASS")
birthwt$race <- factor(birthwt$race, labels = c("White", "African American", "Other"))
model_1 <- aov(bwt ~ race, data = birthwt)
multiple(model_1, ~race)$df
multiple(model_1, ~race)$fig_ci |>
gf_labs(y = "Race", x = "Difference in birth weights (g)")
multiple(model_1, ~race)$fig_pval |>
gf_labs(y = "Race")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.