numbers_from_proportion: Check and normalise the number of each particle type from the...

Description Usage Arguments Value

View source: R/sampling.R

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

1
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


pmwg documentation built on Feb. 17, 2021, 9:07 a.m.