Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

mhor

Mantel-Haenszel odds ratio


Description

Mantel-Haenszel odds ratio calculation and graphing from a stratified case-control study

Usage

mhor(..., mhtable = NULL, decimal=2, graph = TRUE, design = "cohort")

Arguments

...

Three variables viz. 'outcome', 'exposure' and 'stratification'.

mhtable

a 2-by-2-by-s table, where s (strata) is more than one

decimal

number of decimal places displayed

graph

If TRUE (default), produces an odds ratio plot

design

Specification for graph; can be "case control","case-control", "cohort" or "prospective"

Details

'mhor' computes stratum-specific odds ratios and 95 percent confidence intervals and the Mantel-Haenszel odds ratio and chi-squared test is given as well as the homogeneity test. A stratified odds ratio graph is displayed.

Author(s)

Virasakdi Chongsuvivatwong <cvirasak@medicine.psu.ac.th>

See Also

'fisher.test', 'chisq.test'

Examples

data(Oswego)
with(Oswego, cc(ill, chocolate))
with(Oswego, mhor(ill, chocolate, sex))

mht1 <- with(Oswego, table(ill, chocolate, sex))
dim(mht1)
mhor(mhtable=mht1) # same results

epiDisplay

Epidemiological Data Display Package

v3.5.0.1
GPL (>= 2)
Authors
Virasakdi Chongsuvivatwong <cvirasak@medicine.psu.ac.th>
Initial release
2018-05-06

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.