Smean: Sample Size for Mean

View source: R/Smean.R

SmeanR Documentation

Sample Size for Mean

Description

A formula to estimate Sample Size through the Mean and SD

Usage

Smean(z, s, d)

Arguments

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

Details

Calculates the sample size via estimation of the arithmetic mean of a certain variable of interest in the selected population

Value

Returns a vector which is the sample size computed through estimates of the specified arithmetic mean; it has been rounded using the ceiling function

Note

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 |

Author(s)

Paolo G. Hilado

References

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.

Examples

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)
}

Dcroix/RSamplingz documentation built on April 30, 2022, 8:33 a.m.