meta.lc.prop1: Confidence interval for a linear contrast of proportions

View source: R/meta_comp.R

meta.lc.prop1R Documentation

Confidence interval for a linear contrast of proportions

Description

Computes the estimate, standard error, and an adjusted Wald confidence interval for a linear contrast of proportions from two or more studies.

Usage

meta.lc.prop1(alpha, f, n, v)

Arguments

alpha

alpha level for 1-alpha confidence

f

vector of frequency counts

n

vector of 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

Price2004vcmeta

Examples

f <- c(26, 24, 38)
n <- c(60, 60, 60)
v <- c(-.5, -.5, 1)
meta.lc.prop1(.05, f, n, v)

# Should return: 
#           Estimate         SE         LL        UL
# Contrast 0.2119565 0.07602892 0.06294259 0.3609705



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