- Summary measures for count data presented in a 2 by 2 table
library(epiR) epi.2by2(dat, method = c("cohort.count", "cohort.time", "case.control", "cross.sectional"), conf.level = 0.95, units = 100, outcome = c("as.columns","as.rows"))
dat: an object of class
tablecontaining the individual cell frequencies.
method: a character string indicating the study design on which the tabular data has been based.
- Based on the study design specified by the user, appropriate measures of association, measures of effect in the exposed and measures of effect in the population are returned by the function.
|Measures of association|
|Measures of effect in the exposed|
|Measures of effect in the population|
|Mantel-Haenszel (Woolf) test of homogeneity|
conf.level: magnitude of the returned confidence intervals. The default value is 0.95.
units: multiplier for prevalence and incidence (risk or rate) estimates. Default value is 100.
unit=1Outcomes per population unit
unit=100Outcomes per 100 population unit
The multiplier is applied to Attributable risk, Attributable risk in population, etc.
outcome: how the outcome variable is represented in the contingency table.