Skip to contents

Mantel Haenszel Odds Ratio Estimate

Usage

mhor(formula, data, digits = 2)

Arguments

formula

formula for estimation in form Outcome ~ strata/exposure

data

input dataframe

digits

number of digits for rounding

Value

Dataframe with OR estimate and 95% confidence interval

Examples

data(cases)
mhor(Event ~ Id/ex, data=cases, digits=2)
#>     OR Lower CI Upper CI Pr(>|z|)
#> 1 1.40     1.10     1.78   0.0049