log_lik_rho: Log likelihood of test sensitivity

Description Usage Arguments

View source: R/RcppExports.R

Description

This function calculates the test sensitivity component of the overall log likelihood.

Usage

1
2
log_lik_rho(colonisations, statuses, TP_no_abx, TP_abx,
  test_results_negative, antibiotics, rho_1, rho_2)

Arguments

colonisations

a vector with days of colonisation of the patients.

statuses

a vector the statuses on discharge of the patients

TP_no_abx

the number of true positive tests without antibiotics.

TP_abx

the number of true positive tests with antibiotics.

test_results_negative

a matrix where each row corresponds to a patient and the entries correspond to a day with a negative test result.

antibiotics

a matrix where each row corresponds to a patient and the entries correspond to a day when antibiotics were administered.

rho_1

the test sensitivity without antibiotics (baseline).

rho_2

the test sensitivity with antibiotics.


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