- 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
.
- 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"))
- 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).
- 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".
- paired
a logical indicating whether you want a paired test.
- var.equal
a logical variable indicating whether to treat the
two variances as being equal. If TRUE
then the pooled
variance is used to estimate the variance otherwise the Welch
(or Satterthwaite) approximation to the degrees of freedom is used.
- alternative
a character string specifying the alternative
hypothesis, must be one of "two.sided"
(default),
"greater"
or "less"
. You can specify just the initial
letter.
- mu
a number specifying an optional parameter used to form the null hypothesis.
- conf.level
confidence level of the interval.
- detailed
logical value. Default is FALSE. If TRUE, a detailed result is
shown.
- pool.sd
logical value used in the function pairwise_t_test()
.
Switch to allow/disallow the use of a pooled SD.
The pool.sd = TRUE
(default) calculates a common SD for all groups
and uses that for all comparisons (this can be useful if some groups are
small). This method does not actually call t.test, so extra arguments are
ignored. Pooling does not generalize to paired tests so pool.sd and paired
cannot both be TRUE.
If pool.sd = FALSE
the standard two sample t-test is applied to all
possible pairs of groups. This method calls the t.test()
, so extra
arguments, such as var.equal
are accepted.
- ...
other arguments to be passed to the function
t.test
.