HH (version 2.2-17)

multicomp.reverse: Force all comparisons in a "multicomp" object to have the same sign.

Description

Force all comparisons in a "multicomp" object to have the same sign. If the contrast "A-B" has a negative estimate, reverse it show the contrast "B-A" with a positive estimate.

Usage

multicomp.reverse(y, estimate.sign = 1, ...)

Arguments

Value

The result is a "multicomp" object containing the same contrasts as the argument but with the sign of the contrasts changed as needed.

References

Heiberger, Richard M. and Holland, Burt (2004b). Statistical Analysis and Data Display: An Intermediate Course with Examples in S-Plus, R, and SAS. Springer Texts in Statistics. Springer. ISBN 0-387-40270-5.

Heiberger, R.~M. and Holland, B. (2006). "Mean--mean multiple comparison displays for families of linear contrasts." Journal of Computational and Graphical Statistics, 15:937--955.

See Also

MMC, multicomp.order

Examples

Run this code
## see example in multicomp.order

Run the code above in your browser using DataLab