(v3.1.0.9011) Use top_n_microorganisms() in the WISCA examples of the index, manual and vignette, and reword the WISCA prior weight warning to also cover small groups (#337)

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2026-10-30 12:45:56 +01:00
1 parent fdfdadae14
commit 944078c4bc
7 files changed
+33 -30

No files matched your search

+2 -2
View File
@@ -94,7 +94,7 @@ The `AMR` package supports four types of antibiograms, with support for `r lengt
**For empirical therapy guidance (i.e., coverage estimates), use WISCA** (Weighted-Incidence Syndromic Combination Antibiogram). When a clinician starts empirical treatment, the causative pathogen is unknown. The relevant question is not *"what percentage of E. coli is susceptible?"* but *"what is the probability that this regimen will cover whatever pathogen is causing the infection?"*. WISCA answers that question directly, weighting susceptibility by pathogen incidence and providing credible intervals via Bayesian simulation. See `vignette("WISCA")` for the full explanation.
```{r}
wisca(example_isolates,
wisca(top_n_microorganisms(example_isolates, n = 10), # 10 most common species
antimicrobials = c("TZP", "TZP+TOB", "TZP+GEN"),
minimum = 10) # Recommended threshold: >=30
```
@@ -102,7 +102,7 @@ wisca(example_isolates,
WISCA supports stratification by any clinical variable, so you can generate syndrome-specific or ward-specific coverage estimates:
```{r}
wisca(example_isolates,
wisca(top_n_microorganisms(example_isolates, n = 10),
antimicrobials = c("TZP", "TZP+TOB", "TZP+GEN"),
syndromic_group = "ward",
minimum = 10) # Recommended threshold: >=30