sim_times_pi | R Documentation |
Simulate times given generation function & pi, for validating detection estimation
sim_times_pi(si_fun, nobs, params, alpha = 0.001, pi)
si_fun |
a function for the serial interval with arguments N (the number to draw) and params (a list of parameters for the function), see si_fun_lnorm for an example. |
nobs |
the number of observations to simulation |
params |
a list with parameters for the si_fun function to draw serial intervals |
alpha |
probability, the value at which to constrain kappa (i.e. to determine max_kappa for sim_generations), i.e. the probability of observing this kappa for a given pi is < alpha |
pi |
detection probability (the proportion of cases which are detected) |
a vector of time differences between linked cases
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.