This function returns the last day on which a patient can become colonised. If an onward transmission depends on that patient, the last possible day is the day before the onward tranmission. If not, it is the minimum of the first positive test and discharge.
1 2 | onward_check(pt, admissions, colonisations, discharges,
first_positive_test, statuses, nPatients)
|
pt |
the patient for which the onward transmission is calculated. |
admissions |
a vector with days of admission of the patients. |
colonisations |
a vector with days of colonisation of the patients. |
discharges |
a vector with days of discharge of the patients. |
first_positive_test |
a vector with the days of the first positive test of the patients. |
statuses |
a vector the statuses on discharge of the patients |
nPatients |
the total number of patients. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.