data.alloc: To calculate the stratum sample sizes (nh) for a fixed sample...

Description Usage Arguments Value Author(s)

View source: R/data.alloc.R

Description

This function is called towards the final stages of the stratification process after OSB have been determined. It uses the boundaries to calculate the stratum sample allocations using Neyman allocation for all individual strata using the raw data.

Usage

1
data.alloc(data, my_env)

Arguments

data

A vector: provided as an input to the function

my_env

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

Value

calculates and stores quantities such as nh, Nh, Vh, etc. in the my_env to be accessed and printed as outputs

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.