powered by
Discrete exponential distribution
d_exponential(rate, dist_init = FALSE)
a Distribution object for simulator
rate parameter of an exponential distribution
whether to distribute initial value across subcompartments following this distribution. (default to FALSE, meaning init value is always in the first compartment)
transitions <- list("I -> D" = d_exponential(0.3)) transitions <- denim_dsl({I -> D = d_exponential(0.3)})
Run the code above in your browser using DataLab