replicate.ratio.prop2: Compares and combines 2-group proportion ratios in original...

View source: R/meta_rep.R

replicate.ratio.prop2R Documentation

Compares and combines 2-group proportion ratios in original and follow-up studies

Description

This function computes confidence intervals from an original study and a follow-up study where the effect size is a 2-group proportion ratio. Confidence intervals for the ratio and geometric average of effect sizes are also computed. The confidence level for the ratio of ratios is 1 – 2*alpha, which is recommended for equivalence testing.

Usage

replicate.ratio.prop2(alpha, f11, f12, n11, n12, f21, f22, n21, n22)

Arguments

alpha

alpha level for 1-alpha confidence

f11

frequency count for group 1 in original study

f12

frequency count for group 2 in original study

n11

sample size for group 1 in original study

n12

sample size for group 2 in original study

f21

frequency count for group 1 in follow-up study

f22

frequency count for group 2 in follow-up study

n21

sample size for group 1 in follow-up study

n22

sample size for group 2 in follow-up study

Value

A 4-row matrix. The rows are:

  • Row 1 summarizes the original study

  • Row 2 summarizes the follow-up study

  • Row 3 estimates the ratio of proportion ratios

  • Row 4 estimates the geometric average proportion ratio

The columns are:

  • Estimate - proportion difference estimate (single study, ratio, average)

  • LL - lower limit of the confidence interval

  • UL - upper limit of the confidence interval

References

\insertRef

Bonett2021vcmeta

Examples

replicate.ratio.prop2(.05, 21, 16, 40, 40, 19, 13, 60, 60)

# Should return:
#                      Estimate        LL       UL
# Original:           1.3076923 0.8068705 2.119373
# Follow-up:          1.4528302 0.7939881 2.658372
# Original/Follow-up: 0.9000999 0.4703209 1.722611
# Average:            1.3783522 0.9362893 2.029132



dgbonett/vcmeta documentation built on July 12, 2024, 3:12 p.m.