This function counts the number of true positive tests conducted with and without antibioitics. We assume perfect specificity, so each positive test is a true positive test.
1 | count_true_positive_tests(test_results_positive, antibiotics)
|
test_results_positive |
a matrix where each row corresponds to a patient and the entries correspond to a day with a positive test result. |
antibiotics |
a matrix where each row corresponds to a patient and the entries correspond to a day when antibiotics were administered. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.