SRRprop99: Stratified Random Sampling with Proportional Allocation

View source: R/SRRProp99.R

SRRprop99R Documentation

Stratified Random Sampling with Proportional Allocation

Description

Computes for the sample per identified stratum which is in proportion to the population of the same stratum; considers a 99 percent level of confidence

Usage

SRRprop99(x, y)

Arguments

x

Population considered for the study

y

Population for the stratum of interest

Value

Returns a vector which is the computed sample for the stratum of interest; rounded as a whole number

Author(s)

Paolo G. Hilado

Examples

SRRprop99(500, 132)
[1] 126
SRRprop99(500, 259)
[1] 247
SRRprop99(500, 109)
[1] 104

## The function is currently defined as
function (x, y)
{
  z <- x/(1 + x*0.0001)
  b <- ceiling(z)
  c <- (y/x)*b
  round(c, digits = 0)
  }

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