Computes confidence interval for a population mean.
Arguments: - alpha: alpha level for 1-alpha confidence - m: sample mean - sd: sample standard deviation - n: sample size
Values: - estimate of population mean, SE, lower limit and upper limit
m = 24.5
sd = 3.65
n = 40
alpha = .05
ci.mean.os(alpha, m, sd, n)
## Estimate SE LL UL
## [1,] 24.5 0.5771157 23.33267 25.66733
Computes sample size required to estimate a population mean with desired precision in a 1-group design.
Arguments: - alpha: alpha level for 1-alpha confidence - var: planning value of DV variance - w: desired confidence interval width
Values: - required sample size
alpha = .05
var = 264.4
w = 10
size.ci.mean.os(alpha, var, w)
## [1] 43
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.