numbers_from_proportion {pmwg} | R Documentation |
Check and normalise the number of each particle type from the mix_proportion
Description
Takes a mix proportion vector (3 x float) and a number of particles to generate and returns a vector containing the number of each particle type to generate.
Usage
numbers_from_proportion(mix_proportion, num_particles = 1000)
Arguments
mix_proportion |
A vector of floats between 0 and 1 and summing to 1 which give the proportion of particles to generate from the population level parameters, the individual random effects and the conditional parameters respectively |
num_particles |
The total number of particles to generate using a combination of the three methods. |
Value
The wound vector as a matrix
[Package pmwg version 0.2.7 Index]