bernoulli_process | R Documentation |
Simulate a process where individuals in a given from
state
advance to the to
state each time step with probability rate
.
bernoulli_process(variable, from, to, rate)
variable |
a categorical variable. |
from |
a string representing the source category. |
to |
a string representing the destination category. |
rate |
the probability to move individuals between categories. |
a function which can be passed as a process to simulation_loop
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.