SRRprop95: Stratified Random Sampling with Proportional Allocation

View source: R/SRRprop95.R

SRRprop95R 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 95 percent level of confidence

Usage

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

SRRprop95(570, 145)
[1] 60
SRRprop95(570, 220)
[1] 91
SRRprop95(570, 205)
[1] 85

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

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