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