IRRMH: Calculate pooled incidence rate ratio and its confidence...

View source: R/fmsb.R

IRRMHR Documentation

Calculate pooled incidence rate ratio and its confidence intervals with Mantel-Haenszel's method

Description

Calculate pooled incidence rate ratio and its confidence intervals with Mantel-Haenszel's method.

Usage

 IRRMH(XTAB, conf.level=0.9) 

Arguments

XTAB

A matrix with 4 columns. The first column is the incidence in the exposed cohort. The second column is the incidence in the unexposed cohort. The third column is the observed person-time of exposed cohort. The forth column is the observed person-time of unexposed cohort. Rows should be composed of different strata or studies.

conf.level

Probability for confidence intervals. Default is 0.9.

Value

estimate

Calculated point estimate of pooled incidence rate ratio with Manterl-Haenszel's method.

conf.int

A numeric vector of length 2 to give upper/lower limit of confidence intervals.

conf.level

Simply return the value of given conf.level.

Author(s)

Minato Nakazawa minatonakazawa@gmail.com https://minato.sip21c.org/

References

Rothman KJ (2012) Epidemiology: An Introduction. 2nd Ed., Oxford University Press, Oxford.

Examples

# Table 10-5 of Rothman's textbook (Chapter 10).
IRRMH(matrix(c(196, 111, 62119, 15763, 167, 157, 6085, 2780), 2, byrow=TRUE), conf.level=0.9)

fmsb documentation built on May 29, 2024, 2:02 a.m.

Related to IRRMH in fmsb...