mAssoc | R Documentation |
This is a wrapper function for the epiR function epi.2by2(). It allows the user to obtain measures of association in cases where the exposure variable has more than 2 levels.
mAssoc(tab, method = "cohort.count", conf.level = 0.95)
tab |
table object in epi.2by2() format (referent variable in bottom left, index variable(s) in upper left) |
method |
specification of study type. just like epi.2by2(), options are cohort.count, cohort.time, case.control, or cross.sectional. |
conf.level |
magnitude of the returned confidence intervals. Must be a single number between 0 and 1. |
a list of objects of class epi.2by2 (type ?epi.2by2 for more details)
risk_rural <- flipTable(table(kenya_1$rural, kenya_1$death)) mAssoc(risk_rural)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.