se.oddsratio: Computes the standard error for a log odds ratio
Description
Computes a log odds ratio and its standard error using
the frequency counts and sample sizes in a 2-group design. These
frequency counts and sample sizes can be obtained from a 2x2
contingency table. The log odd ratio and its standard error are computed
using a .5 addition to each frequency count of the 2x2 contingency table.
This function is useful in a meta-analysis of odds ratios where some studies
report the sample odds ratio and its standard error and other studies
only report the frequency counts for a 2x2 contingency table. The log odds
ratio and standard error output from this function can be used as input in
the meta.ave.gen.log function.
Usage
se.oddsratio(f1, n1, f2, n2)
Value
Returns a one-row matrix:
Estimate - estimated log odds ratio
SE - standard error
Arguments
f1
number of participants who have the outcome in group 1
n1
sample size for group 1
f2
number of participants who have the outcome in group 2