mantelhaen.mpcc.test: Mantel-Haenszel Test of association for matched-pairs...

Description Usage Arguments Value References See Also Examples

Description

Performs the Mantel-Haenszel Test of association for matched-pairs case-control data.

Usage

1
mantelhaen.mpcc.test(data, conf.level = 0.95)

Arguments

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.

Value

A list with class "htest" containing the following components:

statistic

The Mantel-Haenszel chi-square test statistic.

parameter

The degrees of freedom of the test statistic.

p.value

The p-value of the test.

estimate

The Mantel-Haenszel odds ratio estimate.

null.value

The null hazard ratio, which is currently set to 1.

alternative

A character string describing the alternative hypothesis. Currently only "two.sided".

method

A character string indicating the method employed.

data.name

A character string giving the name of the data.

References

Newman (2001), pages 243 - 246.

See Also

mcnemar.test

Examples

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)

clayford/bme documentation built on May 13, 2019, 7:37 p.m.