Performs Nashimoto-Wright's extended one-sided studentised range test against an ordered alternative for normal data with equal variances.
This test is an extension of Hayter's OSRT
(see osrtTest
) by
applying a simple order restriction of
\(\mu_{m'} - \mu_m \le \mu_j - \mu_i \le \
\mu_{l'} - \mu_{l}\) for any \(l \le i \le m\)
and \(m' \le j \le l'\). It tests all-pairs
\(\mathrm{H}_{ij}: \mu_i \ge \mu_j\) against
\(\mathrm{A}_{ij}: \mu_i < \mu_j$ for any $1 \le i < j \le k\).
MTest(x, ...)# S3 method for default
MTest(x, g, ...)
# S3 method for formula
MTest(formula, data, subset, na.action, ...)
a numeric vector of data values, or a list of numeric data vectors.
further arguments to be passed to or from methods.
a vector or factor object giving the group for the
corresponding elements of "x"
.
Ignored with a warning if "x"
is a list.
a formula of the form response ~ group
where
response
gives the data values and group
a vector or
factor of the corresponding groups.
an optional matrix or data frame (or similar: see
model.frame
) containing the variables in the
formula formula
. By default the variables are taken from
environment(formula)
.
an optional vector specifying a subset of observations to be used.
a function which indicates what should happen when
the data contain NA
s. Defaults to getOption("na.action")
.
A list with class "PMCMR"
containing the following components:
a character string indicating what type of test was performed.
a character string giving the name(s) of the data.
lower-triangle matrix of the estimated quantiles of the pairwise test statistics.
lower-triangle matrix of the p-values for the pairwise tests.
a character string describing the alternative hypothesis.
a character string describing the method for p-value adjustment.
a data frame of the input data.
a string that denotes the test distribution.
Nashimoto, K., Wright, F.T., (2005) Multiple comparison procedures for detecting differences in simply ordered means. Comput. Statist. Data Anal. 48, 291--306.
# NOT RUN {
MTest(weight ~ group, data = PlantGrowth)
# }
Run the code above in your browser using DataLab