mAssoc: Measures of Association

View source: R/mAssoc.R

mAssocR Documentation

Measures of Association

Description

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.

Usage

mAssoc(tab, method = "cohort.count", conf.level = 0.95)

Arguments

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.

Value

a list of objects of class epi.2by2 (type ?epi.2by2 for more details)

Examples

risk_rural <- flipTable(table(kenya_1$rural, kenya_1$death))
mAssoc(risk_rural)


potato-nathan/epiAssist documentation built on April 15, 2022, 11:32 a.m.