onward_check: Get last possible day for colonisation

Description Usage Arguments

View source: R/RcppExports.R

Description

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.

Usage

1
2
onward_check(pt, admissions, colonisations, discharges,
  first_positive_test, statuses, nPatients)

Arguments

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.


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