Random numbers are generated by simulating from a Poisson branching process
Arguments
- n
Number of random variates to generate.
- mu
A non-negative number for the poisson mean.
- censor_at
A stopping criterion;
<numeric>
. Defaults toInf
. A value above which the simulation ends and the random number is set toInf
(as a form of censoring).rborel()
simulates chain sizes usingsimulate_chain_stats()
with a Poisson offspring distribution, so ifmu >= 1
, the simulation could proceed unendingly. This parameter is used to prevent this.
Examples
set.seed(32)
rborel(5, 1)
#> [1] 25 50 114 5 1