data.alloc {stratifyR} | R Documentation |
To calculate the stratum sample sizes (nh) for a fixed sample size (n) directly based on the data
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
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>
[Package stratifyR version 1.0-3 Index]