meanSampleSize: Mean sample size

Description Usage Arguments Value References Examples

Description

Calculate sample size needed to estimate a mean within a given margin of error.

Usage

1
meanSampleSize(moe, sd, conf = 0.95)

Arguments

moe

margin of error expressed in your measure's units

sd

standard deviation expressed in your measure's units

conf

confidence level associated with margin of error (default = 0.95)

Value

Estimated sample size needed to estimate a mean within a given margin of error.

References

Hogg, R. V. and Tanis, E. A. (2006), Probability and Statistical Inference 7e, Pearson, New Jersey.

Examples

1
meanSampleSize(moe = 1, sd = 15)

clayford/nandc documentation built on May 13, 2019, 7:38 p.m.