.sample_outcome_time | R Documentation |
The outcome of a case, either died or recovered, can have a time of event,
but this must be after the hospitalisation time, if a case has been admitted
to hospital. This function samples either the onset-to-death or
onset-to-recovery time conditional on it being greater than a
onset-to-hospitalisation time for a given case, if the case was admitted
to hospital. It does this by resampling onset-to-outcome (death or recovery)
times if they are less than the onset-to-hospitalisation time (from
.add_hospitalisation()
).
.sample_outcome_time(.data, onset_to_outcome, idx)
.data |
A |
onset_to_outcome |
A |
idx |
Either the |
A <data.frame>
with a potentially modified $outcome_time
column.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.