This function counts the number of colonised patients on and off antibiotics on a given day.
1 | col_pop(admissions, colonisations, discharges, statuses, day, antibiotics)
|
admissions |
a vector with days of admission of the patients. |
discharges |
a vector with days of discharge of the patients. |
statuses |
a vector the statuses on discharge of the patients |
day |
the day for which the colonised number of colonised patients is counted. |
antibiotics |
a matrix where each row corresponds to a patient and the entries correspond to a day when antibiotics were administered. |
colonsiations |
a vector with days of colonisation of the patients. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.