library(DGB)
Computes confidence interval for a population standardized mean difference in a 2-group design.
Arguments: - alpha: alpha level for 1-alpha confidence - mj: sample mean in group j - sdj: sample standard deviation in group j - nj: sample size in group j
Values: - estimate, SE, lower limit, and upper limit for equal variance and unequal variance methods plus single group standardizer
alpha = .05 m1 = 35.1 m2 = 26.7 sd1 = 7.32 sd2 = 6.98 n1 = 30 n2 = 30 ci.stdmean.is(alpha, m1, m2, sd1, sd2, n1, n2)
Computes sample size required to estimate a population standardized mean difference with desired precision in a 2-group design.
Arguments: - alpha: alpha level for 1-alpha confidence - d: planning value of standardized mean difference - w: desired confidence interval width - r: desired n2/n1 ratio
Values: - required sample size per group (or n1 if r not equal to 1)
alpha = .05 d = .75 w = .5 r = 1 size.ci.stdmean.is(alpha, d, w, r)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.