This function calculates the source component of the overall log likelihood.
1 2 | log_lik_sources(nPatients, nTypes, admission, colonisation, source,
discharge, status, antibiotics, b)
|
nPatients |
the total number of patients. |
nTypes |
the number of differnt types of colonisations. |
admission |
a vector with days of admission of the patients. |
colonisation |
a vector with days of colonisation of the patients. |
source |
a vector with the sources of the patients. |
discharge |
a vector with days of discharge of the patients. |
status |
a vector with the statuses on discharge of the patients. |
antibiotics |
a matrix where each row corresponds to a patient and the entries correspond to a day when antibiotics were administered. |
b |
the multiplicative effect of antibiotics on transmissibility. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.