- data
a data.frame containing the variables in the formula.
- formula
a formula of the form x ~ group
where x
is a
numeric variable giving the data values and group
is a factor with
one or multiple levels giving the corresponding groups. For example,
formula = TP53 ~ cancer_group
.
- covariate
(optional) covariate names (for ANCOVA)
- ref.group
a character string specifying the reference group. If
specified, for a given grouping variable, each of the group levels will be
compared to the reference group (i.e. control group).
If ref.group = "all"
, pairwise two sample tests are performed for
comparing each grouping variable levels against all (i.e. basemean).
- comparisons
A list of length-2 vectors specifying the groups of
interest to be compared. For example to compare groups "A" vs "B" and "B" vs
"C", the argument is as follow: comparisons = list(c("A", "B"), c("B",
"C"))
- p.adjust.method
method to adjust p values for multiple comparisons.
Used when pairwise comparisons are performed. Allowed values include "holm",
"hochberg", "hommel", "bonferroni", "BH", "BY", "fdr", "none". If you don't
want to adjust the p value (not recommended), use p.adjust.method = "none".
- conf.level
confidence level of the interval.
- model
a fitted-model objects such as the result of a call to
lm()
, from which the overall degrees of
freedom are to be calculated.
- detailed
logical value. Default is FALSE. If TRUE, a detailed result is
shown.
- emmeans.test
an object of class emmeans_test
.