SRRequal95: Stratified Random Sampling with Equal Allocation

View source: R/SRRequal95.R

SRRequal95R Documentation

Stratified Random Sampling with Equal Allocation

Description

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

Usage

SRRequal95(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

SRRequal95(315, 2)
[1] 89
## The function is currently defined as
function (x,y)
{
  z <- x/(1 + x*0.0025)
  a <- ceiling(z)
  b <- a/y
  ceiling(b)
  }

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