multi_probability_bernoulli_process: Overdispersed Bernoulli process

Description Usage Arguments Value

View source: R/prefab.R

Description

Simulates a Bernoulli process where all individuals in a given source state from sample whether or not to transition to destination state to with a individual probability specified by the DoubleVariable object rate_variable.

Usage

1
multi_probability_bernoulli_process(variable, from, to, rate_variable)

Arguments

variable

a CategoricalVariable object.

from

a string representing the source state.

to

a string representing the destination state.

rate_variable

DoubleVariable giving individual probability of each individual in source state to leave.

Value

a function which can be passed as a process to simulation_loop.


individual documentation built on Oct. 25, 2021, 9:09 a.m.