apportion_lr: Apportion Least-Remainder Method

Description Usage Arguments

Description

Apportions a vector of values given a specified frequency distribution of those values such that the length of the output is robust to rounding and other instabilities.

Usage

1
apportion_lr(vector.length, values, proportions, shuffled = FALSE)

Arguments

vector.length

Length for the output vector.

values

Values for the output vector.

proportions

Proportion distribution with one number for each value. This must sum to 1.

shuffled

If TRUE, randomly shuffle the order of the vector.


dth2/EpiModelHIV_SHAMP documentation built on May 15, 2019, 4:56 p.m.