library(DGB)
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)
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.