sim_times_pi: Simulate times given generation function & pi, for validating...

View source: R/detection.R

sim_times_piR Documentation

Simulate times given generation function & pi, for validating detection estimation

Description

Simulate times given generation function & pi, for validating detection estimation

Usage

sim_times_pi(si_fun, nobs, params, alpha = 0.001, pi)

Arguments

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)

Value

a vector of time differences between linked cases


mrajeev08/treerabid documentation built on Oct. 15, 2024, 12:14 p.m.