numbers_from_proportion | R Documentation |
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.
numbers_from_proportion(mix_proportion, num_particles = 1000)
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. |
The wound vector as a matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.