count_tests_forward_simulations: Count positive and negative tests

Description Usage Arguments Value

View source: R/RcppExports.R

Description

This function counts the positive and negative tests in the simulated data generated by run_forward_simulations().

Usage

1
2
count_tests_forward_simulations(rho_1, rho_2, colonisations, antibiotics,
  days_of_tests, n_patients)

Arguments

rho_1

the test sensitivity in the absence of antibiotics.

rho_2

the test sensitivity in the presence of antibiotics.

colonisations

a vector of colonisation times of the patients.

antibiotics

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

days_of_tests

a matrix where each row corresponds to a patient and the entries correspond to a day when a test was conducted.

n_patients

the total number of patients.

Value

This function returns a vector with two elements. The first number is the total number of positive tests, the second number is the total number of negative tests.


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