Last chance! 50% off unlimited learning
Sale ends in
Performs Nashimoto-Wright's extended one-sided studentised range test against an ordered alternative for normal data with equal variances.
MTest(x, ...)# S3 method for default
MTest(x, g, alternative = c("greater", "less"), ...)
# S3 method for formula
MTest(
formula,
data,
subset,
na.action,
alternative = c("greater", "less"),
...
)
# S3 method for aov
MTest(x, alternative = c("greater", "less"), ...)
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.
the alternative hypothesis. Defaults to greater
.
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 character string indicating what type of test was performed.
a character string giving the name(s) of the data.
the estimated statistic(s)
critical values for
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.
The procedure uses the property of a simple order,
The all-pairs comparisons test statistics for a balanced design are
with
For the unbalanced case with moderate imbalance the test statistic is
The null hypothesis is rejected, if
The function does not return p-values. Instead the critical h-values
as given in the tables of Hayter (1990) for
Hayter, A. J.(1990) A One-Sided Studentised Range Test for Testing Against a Simple Ordered Alternative, Journal of the American Statistical Association 85, 778--785.
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 {
##
md <- aov(weight ~ group, PlantGrowth)
anova(md)
osrtTest(md)
MTest(md)
# }
Run the code above in your browser using DataLab