.check_time_args {epichains} | R Documentation |
Check inputs that control time events
Description
This function checks the time-related inputs, i.e., start time of each chain,
t0
, the end time of the simulation, tf
, and the generation time,
generation_time. It also checks that the generation_time argument is
specified if tf
is specified as these go hand-in-hand.
Usage
.check_time_args(tf_specified, tf, generation_time, t0)
Arguments
tf_specified |
|
tf |
A number for the cut-off for the infection times (if generation
time is given); Defaults to |
generation_time |
The generation time function; the name
of a user-defined named or anonymous function with only one argument |
t0 |
Start time (if generation time is given); either a single value
or a vector of same length as |
Value
NULL
; called for side effects