Smean | R Documentation |
A formula to estimate Sample Size through the Mean and SD
Smean(z, s, d)
z |
abscissa of the normal curve that cuts off an area alpha at the tails |
s |
standard deviation of an attribute in the population |
d |
desired level of precision / sampling error |
Calculates the sample size via estimation of the arithmetic mean of a certain variable of interest in the selected population
Returns a vector which is the sample size computed through estimates of the specified arithmetic mean; it has been rounded using the ceiling function
Commonly used z-scores: r = 0.90; z-score = 1.645 | r = 0.95; z-score = 1.96 | r = 0.98; z-score = 2.326 | r = 0.99; z-score = 2.576 |
Paolo G. Hilado
Rose, S., Spinks, N. & Canhoto, A. (2015). Management Research: Applying the Principles
Israel, G. (1992). Determining Sample Size, Fact Sheet PEOD-6, University of Florida.
Smean(1.96, 1.5, 0.25) [1] 139 ## The function is currently defined as function(z,s,d){ a <- z*z b <- s*s c <- d*d e <- a*b Smean <- e / c Smean <- ceiling(Smean) print(Smean) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.