dot-round.preserve.sum: Internal function used in the calculations for creating...

.round.preserve.sumR Documentation

Internal function used in the calculations for creating recruitment lists, under .make.recruitment.lists(). Rounds number of observations to be recruited from each stratum to a whole number, while adjusting rounded results to preserve the total.

Description

Intended only to be called within recruit(), not as a standalone function

Usage

.round.preserve.sum(x, digits = 0)

Arguments

x

list of numeric values; enumerates the possible number of units to recruit, based on the population size

digits

integer; signals number of 0 digits to place after each numeric in x (e.g. digits = 2 will multiply x by 100)

Value

The function returns a list of integers, which will represent the number of observations to be sampled from each stratum


NUstat/generalizeR documentation built on Feb. 7, 2024, 6:39 p.m.