View source: R/epi_functions.R
| mhor | R Documentation |
mhor computes odds ratios by levels of the stratum variable as well as the Mantel-Haenszel
pooled odds ratio. The test for effect modification (test for interaction) is also displayed.
mhor(object = NULL, formula = NULL, data = NULL)
object |
When chaining, this holds an object produced in the earlier portions of the chain. Most users can safely ignore this argument. See details and examples. |
formula |
A formula with shape: outcome ~ stratum/exposure. |
data |
A data frame containing the variables used in |
Odds ratios with 95
outcome by levels of stratum. The Mantel-Haenszel pooled OR and the test
for effect modification is also reported.
data(Vanderpump)
mhor(vstatus ~ agegrp / smoker, data = Vanderpump)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.