Description Usage Arguments Examples
View source: R/odds_ratio_CMH.R
This function allows for odds ratio calculations across two strata.
1 | odds_ratio_CMH(a, b, c, d, ci = FALSE, alpha = 0.05, cor = FALSE)
|
a |
A vector of the exposed + disease + count for each stratum |
b |
A vector of the exposed + disease - count for each stratum |
c |
A vector of the exposed - disease + count for each stratum |
d |
A vector of the exposed - disease - count for each stratum |
ci |
Return a confidence interval instead of point estimate |
alpha |
The confidence level of the interval |
cor |
Continuity correction |
1 | odds_ratio(c(30,40),c(20,40),c(50,10),c(10,50))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.