neymanAllocation: Returns the number of elements per strata based on Neyman...

Description Usage Arguments Value

View source: R/neymanAlloc.R

Description

Based on data from sample and population, this function returns the optimum allocation of elements. Users can input strata vectors from sample and from population, but the last is not required. The output is a vector.

Usage

1
neymanAllocation(n, strat.vector = NULL, sample.vector, sd.vector)

Arguments

n

The size of sample.

strat.vector

The vector of strata from population data.

sample.vector

The vector of strata from sample data. Required.

sd.vector

The data sample vector from which the standards deviations will be calculated.

Value

Vector with the same length as the unique labels of strata containing the size of each strata for sampling.


cgu-dados/auditsampling documentation built on March 24, 2021, 9:38 a.m.