Description Usage Arguments Value References Examples
Calculate sample size (per group) needed to estimate a difference in means within a given margin of error. This function assumes the means come from Normal distributions with common variances. Those are big and likely untrue assumptions, therefore the estimated sample size should be treated as a rough estimate.
1 | dmeanSampleSize(moe, sd, conf = 0.95)
|
moe |
margin of error expressed in your measure's units |
sd |
the common standard deviation of the two populations expressed in your measure's units |
conf |
confidence level associated with margin of error (default = 0.95) |
Estimated sample size for each group.
Hogg, R. V. and Tanis, E. A. (2006), Probability and Statistical Inference 7e, Pearson, New Jersey.
1 2 3 | ## Approximate sample size needed to estimate the difference in means between two
## populations within 1.5 units, each with standard deviation 20 units.
dmeanSampleSize(moe = 1.5, sd = 20)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.