R/sampling.R
numbers_from_proportion.Rd
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)
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
The total number of particles to generate using a combination of the three methods.
The wound vector as a matrix