Description Usage Arguments Value References See Also Examples
Performs the Mantel-Haenszel Test of association for matched-pairs case-control data.
1 | mantelhaen.mpcc.test(data, conf.level = 0.95)
|
data |
a matrix with two rows and at least two columns with exposed cases on the first row and exposed controls on the first column (see data used in examples below) |
conf.level |
confidence level of the returned confidence interval. Must be a single number between 0 and 1. Default is 0.95. |
A list with class "htest"
containing the following
components:
The Mantel-Haenszel chi-square test statistic.
The degrees of freedom of the test statistic.
The p-value of the test.
The Mantel-Haenszel odds ratio estimate.
The null hazard ratio, which is currently set to 1.
A character string describing the alternative hypothesis. Currently only "two.sided".
A character string indicating the method employed.
A character string giving the name of the data.
Newman (2001), pages 243 - 246.
1 2 3 4 5 6 7 | ## Example 11.3 - (1:1) matched case-control data
estrogen
mantelhaen.mpcc.test(estrogen)
## Example 11.4 - (1:M) matched case-control data
estrogen2
mantelhaen.mpcc.test(estrogen2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.