Description Usage Arguments Value
This function counts the positive and negative tests in the simulated
data generated by run_forward_simulations()
.
1 2 | count_tests_forward_simulations(rho_1, rho_2, colonisations, antibiotics,
days_of_tests, n_patients)
|
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. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.