simint.reverse {HH}R Documentation

Force all comparisons in a "hmtest" from simint to have the same sign.

Description

Force all comparisons in a "hmtest" from simint 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

simint.reverse(y, estimate.sign = 1, ...)    ## R

multicomp.reverse(y, estimate.sign = 1, ...) ## S-Plus

Arguments

y "simint" object
estimate.sign If estimate.sign==1, reverse the negatives. If estimate.sign==-1, reverse the positives. Both the names of the comparisons and the numerical values are reversed. If estimate.sign==0, return the argument.
... other arguments not used.

Value

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

Note

S-Plus use the multicomp functions and R uses the multcomp package.

Author(s)

Richard M. Heiberger <rmh@temple.edu>

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, accepted). "Mean–mean multiple comparison displays for families of linear contrasts." Journal of Computational and Graphical Statistics.

See Also

MMC, multicomp.order

Examples

## see example in multicomp.order

[Package HH version 1.5 Index]