library(DGB)

Standardized Linear Contrast of Means (Between Subjects)

ci.lc.stdmean.bs

Computes confidence interval for a population standardized linear function of means in a between-subjects design.

Arguments: - alpha: alpha level for 1-alpha confidence - m: vector of sample means - sd: vector of sample standard deviation - n: vector of sample sizes - c: vector of contrast coefficients

Values: - estimate, SE, lower limit, upper limit

alpha = .05
m = c(33.5, 37.9, 38.0, 44.1)
sd = c(3.84, 3.84, 3.65, 4.98)
n = c(10,10,10,10)
c = c(.5, .5, -.5, -.5)
ci.lc.stdmean.bs(alpha, m, sd, n, c)

size.ci.lc.stdmean.bs

Computes sample size required to estimate a standardized linear contrast of population means with desired precision in a between-subjects design.

Arguments: - alpha: alpha level for 1-alpha confidence - d: planning value of standardized linear contrast
- w: desired confidence interval width - c: vector of contrast coefficients

Values: - required sample size per group

alpha = .05
d = 1
w = .6
c = c(.5, .5, -.5, -.5)
size.ci.lc.stdmean.bs(alpha, d, w, c)


cwendorf/dgb documentation built on May 3, 2022, 9:35 p.m.