Yamane: Yamane Formula

View source: R/Yamane.R

YamaneR Documentation

Yamane Formula

Description

Estimation of sample size using the Yamane Formula; this function enables users to specify the desired level of precision / sampling error

Usage

Yamane(x,y)

Arguments

x

Population to be used for computation of Sample

y

Error Tolerance

Value

Returns a vector which is the computed sample for the given population rounded up with ceiling function.

Author(s)

Paolo G. Hilado

References

Yamane, T. (1967). Statistics, An Introductory Analysis, 2nd Ed., New York: Harper and Row.

Examples

Yamane(500,0.05)
[1] 223

Yamane(500,0.01)
[1] 477

## The function is currently defined as
Yamane <- function(x,y){
  a <- x/(1 + x*y^2)
  b <- ceiling(a)
  print(b)
}


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