multinomial {denim}R Documentation

Multinomial

Description

Define a set of probabilities of transition from one compartment to multiple compartments

"I -> R, D" = multinomial(0.9, 0.1),
"I -> R" = d_gamma(3, 2),
"I -> D" = d_lognormal(2, 0.5)

is equal to

"0.9 * I -> R" = d_gamma(3, 2),
"0.1 * I -> D" = d_lognormal(2, 0.5)

Usage

multinomial(...)

Arguments

...

a vector of probabilities, must add up to 1

Value

a Distribution object for simulator


[Package denim version 1.0.0 Index]