Description Usage Arguments Details Value
View source: R/draw_distributions.R
The number of days between symptom onset and isolation, which may be negative if isolation occurs prior to symptom onset (as sometimes the case with traced cases).
1 2 3 4 5 6 | draw_isolation_delay_period(
state_df,
sim_params,
primary_state_df = NULL,
primary_case_ids = NULL
)
|
state_df |
|
sim_params |
|
primary_state_df |
The |
primary_case_ids |
A list of case_ids for the primary cases. Not required for initial or imported
cases. Defaults to |
Within the list object sim_params$iso_delay_params
, the user can define several delay
periods based on tracing type, tracing status, and whether the case is practicing distancing.
Traced cases have their delays measured from the index case's isolation time, so traced cases
may isolate prior to their own symptom onset. Untraced cases have delays measured from the start
of their own symptom onset. The untraced timeline is always considered for traced cases, so that
if a traced case would have been isolated earlier just because of their symptom onset timeline,
they would isolate at this earlier time.
Although this function returns the number of days between symptom onset and isolation, the delay returned by this function may be negative if isolation occurs prior to symptom onset.
A vector of length n for case delay to isolation, measured from start of symptom onset (double)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.