meta.lc.prop2: Confidence interval for a linear contrast of proportion...

View source: R/meta_comp.R

meta.lc.prop2R Documentation

Confidence interval for a linear contrast of proportion differences in 2-group studies

Description

Computes the estimate, standard error, and adjusted Wald confidence interval for a linear contrast of 2-group proportion differences from two or more studies.

Usage

meta.lc.prop2(alpha, f1, f2, n1, n2, v)

Arguments

alpha

alpha level for 1-alpha confidence

f1

vector of group 1 frequency counts

f2

vector of group 2 frequency counts

n1

vector of group 1 sample sizes

n2

vector of group 2 sample sizes

v

vector of contrast coefficients

Value

Returns 1-row matrix with the following columns:

  • Estimate - estimated linear contrast

  • SE - standard error

  • LL - lower limit of the adjusted Wald confidence interval

  • UL - upper limit of the adjusted Wald confidence interval

References

\insertRef

Bonett2014vcmeta

Examples

n1 <- c(50, 150, 150)
n2 <- c(50, 150, 150)
f1 <- c(16, 50, 25)
f2 <- c(7, 15, 20)
v <- c(1, -1, 0)
meta.lc.prop2(.05, f1, f2, n1, n2, v)

# Should return:
#             Estimate         SE         LL        UL
# Contrast -0.05466931 0.09401019 -0.2389259 0.1295873



vcmeta documentation built on July 4, 2024, 5:08 p.m.