log_lik_sources: Log likelihood of sources

Description Usage Arguments

View source: R/RcppExports.R

Description

This function calculates the source component of the overall log likelihood.

Usage

1
2
log_lik_sources(nPatients, nTypes, admission, colonisation, source,
  discharge, status, antibiotics, b)

Arguments

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.


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