meta.lc.stdmean.ps: Confidence interval for a linear contrast of standardized...

View source: R/meta_comp.R

meta.lc.stdmean.psR Documentation

Confidence interval for a linear contrast of standardized mean differences from paired-samples studies

Description

Computes the estimate, standard error, and confidence interval for a linear contrast of paired-samples standardized mean differences from two or more studies. Equality of variances within or across studies is not assumed.

Usage

meta.lc.stdmean.ps(alpha, m1, m2, sd1, sd2, cor, n, v, stdzr)

Arguments

alpha

alpha level for 1-alpha confidence

m1

vector of estimated means for measurement 1

m2

vector of estimated means for measurement 2

sd1

vector of estimated SDs for measurement 1

sd2

vector of estimated SDs for measurement 2

cor

vector of estimated correlations for paired measurements

n

vector of sample sizes

v

vector of contrast coefficients

stdzr
  • set to 0 for square root unweighted average variance standardizer

  • set to 1 for measurement 1 SD standardizer

  • set to 2 for measurement 2 SD standardizer

Value

Returns 1-row matrix with the following columns:

  • Estimate - estimated linear contrast

  • SE - standard error

  • LL - lower limit of the confidence interval

  • UL - upper limit of the confidence interval

References

\insertRef

Bonett2009avcmeta

Examples

m1 <- c(53, 60, 53, 57)
m2 <- c(55, 62, 58, 61)
sd1 <- c(4.1, 4.2, 4.5, 4.0)
sd2 <- c(4.2, 4.7, 4.9, 4.8)
cor <- c(.7, .7, .8, .85)
n <- c(30, 50, 30, 70)
v <- c(.5, .5, -.5, -.5)
meta.lc.stdmean.ps(.05, m1, m2, sd1, sd2, cor, n, v, 0)

# Should return:
#            Estimate        SE        LL        UL
# Contrast  0.5127577 0.1392232 0.2398851 0.7856302



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