library(DGB)
Computes confidence interval for a population standardized linear contrast of means in a within-subjects design (assumes equal correlations).
Arguments: - alpha: alpha level for 1-alpha confidence - m: vector of sample means - sd: vector of sample standard deviations - cor: average of sample correlations - n: sample size - h: vector of contrast coefficients
Values: - estimate, SE, lower limit, upper limit
alpha = .05 m = c(33.5, 37.9, 38.0) sd = c(2.65, 2.90, 3.25) cor = .82 n = 20 h = c(-.5, -.5, 1) ci.lc.stdmean.ws(alpha, m, sd, cor, n, h)
Computes sample size required to estimate a standardized linear contrast of population means with desired precision in a within-subjects design.
Arguments:
- alpha: alpha level for 1-alpha confidence
- d: planning value of standardized linear contrast
- cor: planning value of smallest correlation
- w: desired confidence interval width
- h: vector of contrast coefficients
Values: - required sample size
alpha = .05 d = 1 cor= .7 w = .6 h = c(.5, .5, -.5, -.5) size.ci.lc.stdmean.ws(alpha, d, cor, w, h)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.