mantel.haenszel {ANSM5} | R Documentation |
Perform Mantel-Haenszel test
Description
mantel.haenszel()
performs the Mantel-Haenszel test and is used in chapter 13 of "Applied Nonparametric Statistical Methods" (5th edition)
Usage
mantel.haenszel(x, y, z, do.asymp = TRUE)
Arguments
x |
Binary factor of same length as y, z |
y |
Binary factor of same length as x, z |
z |
Factor of same length as x, y |
do.asymp |
Boolean indicating whether or not to perform asymptotic calculations (defaults to |
Value
An ANSMtest object with the results from applying the function
Examples
# Example 13.4 from "Applied Nonparametric Statistical Methods" (5th edition)
mantel.haenszel(ch13$drug, ch13$side.effects, ch13$age.group)
# from "Applied Nonparametric Statistical Methods" (5th edition)
[Package ANSM5 version 1.1.0 Index]