matched_or: Matched pairs odds ratio and confidence interval
Description
Create odds ratio and confidence interval from matched pairs data.
Usage
matched_or(df, ...)
Arguments
df
a dataframe with binary variables x and y or a 2 x 2 frequency table/matrix. If a table or matrix, x and y must be NULL. Used to select method.
...
further arguments passed to or from other methods.
Value
a list with class "matched_or" with the following components:
tab
2x2 table using for calculating risk difference
or
dataframe with columns corresponding to matched-pairs OR, lower bound, and upper bound of CI
conf.level
specified confidence level
Details
The matched pairs odds ratio and confidence interval is the equivalent of
calculating a Cochran-Mantel-Haenszel odds ratio where each pair is treated as a stratum.