.round.preserve.sum | R Documentation |
.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.Intended only to be called within recruit()
, not as a standalone function
.round.preserve.sum(x, digits = 0)
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) |
The function returns a list of integers, which will represent the number of observations to be sampled from each stratum
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.