col_pop: Count the number of colonised patients

Description Usage Arguments

View source: R/RcppExports.R

Description

This function counts the number of colonised patients on and off antibiotics on a given day.

Usage

1
col_pop(admissions, colonisations, discharges, statuses, day, antibiotics)

Arguments

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.


mirjamlaager/mrsamcmc documentation built on May 20, 2020, 11:13 a.m.