realloc: To re-allocate the stratum sample sizes (nh)

Description Usage Arguments Value Author(s)

View source: R/realloc.R

Description

This function re-calculates or re-allocate the stratum sample sizes (nh) after it has already been initially allocated via Neyman allocation. This is applied to resolve the problem of oversampling in one or more of the strata.

Usage

1
realloc(h, x, nh, Nh, nume, my_env)

Arguments

h

A numeric: the no. of strata

x

A vector: the osb that has been calculated

nh

A vector: the stratum sample sizes that have been initially calculated

Nh

A vector: the stratum population sizes that have been initially calculated

nume

A numeric: the numerator total

my_env

The environment my_env has various constants and outputs stored from earlier opeartions through various other functions

Value

calculates and presents the new re-allocate stratum samples

Author(s)

Karuna Reddy <karuna.reddy@usp.ac.fj>
MGM Khan <khan_mg@usp.ac.fj>


stratifyR documentation built on Dec. 11, 2021, 9:25 a.m.