SRRequal99: Stratified Random Sampling with Equal Allocation

View source: R/SRRequal99.R

SRRequal99R Documentation

Stratified Random Sampling with Equal Allocation

Description

Computes for the sample size that is equal across each stratum of interest; considers a 99 percent level of confidence

Usage

SRRequal99(x, y)

Arguments

x

Population of the Study

y

Number of Strata

Details

Used when the strata of interest are to be represented and that sample size is equal for each

Value

Returns a vector which is the sample size required for each identified stratum; it has been rounded using the ceiling function

Author(s)

Paolo G. Hilado

Examples

SRRequal99(1270, 2)
[1] 564
## The function is currently defined as
function (x,y)
{
  z <- x/(1 + x*0.0001)
  a <- ceiling(z)
  b <- a/y
  ceiling(b)
  }

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