breslow_day_test | R Documentation |
Performs the Breslow-Day test for homogeneity of the odds ratios across different strata of data. Optionally includes Tarone's correction. This test is useful for investigating whether the effect of an explanatory variable on the outcome is consistent across different strata.
breslow_day_test(contingency_table, odds_ratio = NA, correct = FALSE)
contingency_table |
A 2x2xK contingency table where K is the number of strata. |
odds_ratio |
Optionally, the overall odds ratio to use in the test. If not provided, the Mantel-Haenszel odds ratio is calculated. |
correct |
Logical indicating whether to apply Tarone's correction. |
A list with the Breslow-Day test statistic, p-value, method used, and data name.
Breslow NE, Day NE. Statistical methods in cancer research. Volume I - The analysis of case-control studies. IARC Sci Publ. 1980;(32):5-338.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.