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

View source: R/sampling.R

numbers_from_proportionR 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


pmwg documentation built on May 29, 2024, 12:09 p.m.