- 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.
- exact
a logical indicating whether an exact p-value
should be computed.
- 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.
- id
(optional) character string specifying the column that contains the
sample/subject identifier, used only for a paired test
(paired = TRUE). When supplied, observations of the two compared
groups are matched by id (instead of by row order), and only subjects
present in both groups are used. For more than two groups, the matching is
done independently for each pairwise comparison, so different comparisons can
be based on different numbers of pairs (per-comparison pairwise deletion).
This makes paired tests work when some observations are missing or the groups
have unequal sizes. The default (id = NULL) keeps the previous
behaviour (groups paired in row order).
- error.as.na
logical. If TRUE, a comparison that cannot be
computed (for example a group with fewer than two observations, or data that
are essentially constant) returns an NA result row with a warning
instead of stopping with an error; the other comparisons (or groups, for a
grouped analysis) are still computed. Default is FALSE (the comparison
errors as before).
- effect.size
logical. Default is FALSE. If TRUE, a rank effect-size
column is added: for an independent-samples test cliff.delta (Cliff's
delta) and its magnitude; for a paired test the matched-pairs
rank.biserial correlation (no magnitude, as no threshold set is
calibrated for it), computed on the same paired differences the test used
(matched by id when supplied). Not defined for a one-sample test.
- ...
other arguments to be passed to the function
wilcox.test.