mmc.mean
MMC (Mean--mean Multiple Comparisons) plots from the sufficient statistics for a one-way design.
Constructs a "mmc.multicomp"
object from the sufficient statistics
for a one-way design. The object must be explicitly plotted.
This is the S-Plus version. See ?aovSufficient for R
Usage
multicomp.mean(group, n, ybar, s, alpha=.05, ## S-Plus
ylabel="ylabel", focus.name="focus.factor", plot=FALSE,
lmat, labels=NULL, ...,
df=sum(n) - length(n),
sigmahat=(sum((n-1)*s^2) / df)^.5)multicomp.mmc.mean(group, n, ybar, s, ylabel, focus.name, ## S-Plus
lmat,
...,
comparisons="mca",
lmat.rows=seq(length=length(ybar)),
ry,
plot=TRUE,
crit.point,
iso.name=TRUE,
estimate.sign=1,
x.offset=0,
order.contrasts=TRUE,
method="tukey",
df=sum(n)-length(n),
sigmahat=(sum((n-1)*s^2)/df)^.5)
Arguments
- group
character vector of levels
- n
numeric vector of sample sizes
- ybar
vector of group means
- s
vector of group standard deviations
- alpha
Significance levels of test
- ylabel
name of response variable
- focus.name
name of factor
- plot
logical. Should the
"mmc.multicomp"
object be automatically plotted? ignored in R.- lmat
lmat
frommulticomp
in S-Plus ort(linfct)
fromglht
in R.- labels
labels
argument formulticomp
in S-Plus. Not used in R.- method
method for critical point calculation. This corresponds to
method
in S-Plusmulticomp
and totype
in Rglht
- df
scalar, residual degrees of freedom
- sigmahat
sqrt(MSE)
from the ANOVA table- …
other arguments
- comparisons
argument to S-Plus
multicomp
only.- estimate.sign, order.contrasts, lmat.rows
See
lmat.rows
inmmc
.- ry
See argument
ry.mmc
inplot.mmc.multicomp
.- crit.point
See argument
crit.point
in S-Plus- iso.name, x.offset
See
plot.mmc.multicomp
.
Value
multicomp.mmc.mean
returns a "mmc.multicomp" object.
multicomp.mean
returns a "multicomp" object.
Note
The multiple comparisons calculations in R and S-Plus use
completely different functions.
MMC plots in R are constructed by mmc
based on
References
Heiberger, Richard M. and Holland, Burt (2015). Statistical Analysis and Data Display: An Intermediate Course with Examples in R. Second Edition. Springer-Verlag, New York. https://www.springer.com/us/book/9781493921218
Heiberger, Richard M. and Holland, Burt (2006). "Mean--mean multiple comparison displays for families of linear contrasts." Journal of Computational and Graphical Statistics, 15:937--955.
Hsu, J. and Peruggia, M. (1994). "Graphical representations of Tukey's multiple comparison method." Journal of Computational and Graphical Statistics, 3:143--161.