MTest {PMCMRplus} | R Documentation |
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
μ_{m'} - μ_m ≤ μ_j - μ_i ≤ \
μ_{l'} - μ_{l} for any l ≤ i ≤ m
and m' ≤ j ≤ l'. It tests all-pairs
\mathrm{H}_{ij}: μ_i ≥ μ_j against
\mathrm{A}_{ij}: μ_i < μ_j$ for any $1 ≤ i < j ≤ k.
MTest(x, ...) ## Default S3 method: MTest(x, g, alternative = c("greater", "less"), ...) ## S3 method for class 'formula' MTest( formula, data, subset, na.action, alternative = c("greater", "less"), ... )
x |
a numeric vector of data values, or a list of numeric data vectors. |
... |
further arguments to be passed to or from methods. |
g |
a vector or factor object giving the group for the
corresponding elements of |
alternative |
the alternative hypothesis. Defaults to |
formula |
a formula of the form |
data |
an optional matrix or data frame (or similar: see
|
subset |
an optional vector specifying a subset of observations to be used. |
na.action |
a function which indicates what should happen when
the data contain |
Either a list with class "osrt"
or a list with class "PMCMR"
.
a character string indicating what type of test was performed.
a character string giving the name(s) of the data.
the estimated statistic(s)
critical R-values for α = 0.05.
a character string describing the alternative hypothesis.
the parameter(s) of the test distribution.
a string that denotes the test distribution.
There are print and summary methods available.
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.
MTest(weight ~ group, data = PlantGrowth)