library(DGB)

Mean from One Sample

ci.mean.os

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)

size.ci.mean.os

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)


cwendorf/dgb documentation built on May 3, 2022, 9:35 p.m.