diff --git a/articles/WISCA.md b/articles/WISCA.md
index 7bce7ae5f..39368f98d 100644
--- a/articles/WISCA.md
+++ b/articles/WISCA.md
@@ -265,8 +265,8 @@ wisca_out
| Syndromic Group | Amoxicillin/clavulanic acid | Amoxicillin/clavulanic acid + Ciprofloxacin | Amoxicillin/clavulanic acid + Gentamicin |
|:---|:---|:---|:---|
-| Non-UTI | 72.5% (69.9-75.1%) | 86.9% (84.8-89%) | 91.4% (89.5-93%) |
-| UTI | 86% (82.5-89%) | 94.8% (92.5-96.6%) | 97.9% (96.3-99%) |
+| Non-UTI | 72.5% (69.9-75.2%) | 87% (85-88.9%) | 91.5% (89.8-93%) |
+| UTI | 86.8% (83.6-89.5%) | 95.6% (93.6-97.2%) | 98.8% (97.6-99.6%) |
The `AMR` package is available in 28 languages, which can all be used
for the [`wisca()`](https://amr-for-r.org/reference/antibiogram.md)
@@ -283,8 +283,8 @@ wisca(data,
| Grupo sindrómico | Amoxicilina/ácido clavulánico | Amoxicilina/ácido clavulánico + Ciprofloxacina | Amoxicilina/ácido clavulánico + Gentamicina |
|:---|:---|:---|:---|
-| Non-UCI | 72.6% (69.9-75.3%) | 87% (84.9-89.1%) | 91.4% (89.7-92.9%) |
-| UCI | 86% (82.7-89%) | 94.8% (92.7-96.4%) | 97.9% (96.5-99%) |
+| Non-UCI | 72.5% (70-75.1%) | 87.1% (84.9-89%) | 91.5% (89.8-93%) |
+| UCI | 86.8% (83.8-89.7%) | 95.6% (93.7-97.2%) | 98.8% (97.7-99.6%) |
### Interpreting the output
diff --git a/articles/WISCA_files/figure-html/unnamed-chunk-6-1.png b/articles/WISCA_files/figure-html/unnamed-chunk-6-1.png
index 308072d2c..f9a460835 100644
Binary files a/articles/WISCA_files/figure-html/unnamed-chunk-6-1.png and b/articles/WISCA_files/figure-html/unnamed-chunk-6-1.png differ
diff --git a/articles/WISCA_files/figure-html/unnamed-chunk-7-1.png b/articles/WISCA_files/figure-html/unnamed-chunk-7-1.png
index 5c11685fa..ed7885492 100644
Binary files a/articles/WISCA_files/figure-html/unnamed-chunk-7-1.png and b/articles/WISCA_files/figure-html/unnamed-chunk-7-1.png differ
diff --git a/articles/WISCA_files/figure-html/unnamed-chunk-8-1.png b/articles/WISCA_files/figure-html/unnamed-chunk-8-1.png
index 69d360dd7..06daf995b 100644
Binary files a/articles/WISCA_files/figure-html/unnamed-chunk-8-1.png and b/articles/WISCA_files/figure-html/unnamed-chunk-8-1.png differ
diff --git a/articles/datasets.html b/articles/datasets.html
index b2f34ac63..389d61979 100644
--- a/articles/datasets.html
+++ b/articles/datasets.html
@@ -29,7 +29,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/articles/index.html b/articles/index.html
index 9df8e404f..35269efba 100644
--- a/articles/index.html
+++ b/articles/index.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/authors.html b/authors.html
index 27382f4aa..1f5c8ee01 100644
--- a/authors.html
+++ b/authors.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/index.html b/index.html
index 525c3011b..970c1c24f 100644
--- a/index.html
+++ b/index.html
@@ -32,7 +32,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
@@ -112,7 +112,7 @@
The AMR package is a peer-reviewed, free and open-source R package with zero dependencies to simplify the analysis and prediction of Antimicrobial Resistance (AMR) and to work with microbial and antimicrobial data and properties, by using evidence-based methods.
Our aim has always been to provide a standard for clean and reproducible AMR data analysis, that can therefore empower epidemiological analyses to continuously enable surveillance and treatment evaluation in any setting. We are a team of many different researchers from around the globe to make this a successful and durable project! The AMR package was already cited over 100 times in scientific research.
-
After installing this package, R knows ~103 000 distinct microbial species (updated April 2026) and all ~630 antimicrobial and antiviral drugs by name and code (including ATC, EARS-Net, ASIARS-Net, PubChem, LOINC and SNOMED CT), and knows all about valid SIR and MIC values. The integral clinical breakpoint guidelines from CLSI 2011-2026 and EUCAST 2011-2026 are included, even with epidemiological cut-off (ECOFF) values. It supports and can read any data format, including WHONET data. This package works on Windows, macOS and Linux with all versions of R since R-3.0 (April 2013). It was designed to work in any setting, including those with very limited resources. It was created for both routine data analysis and academic research at the Faculty of Medical Sciences of the University of Groningen and the University Medical Center Groningen.
+
After installing this package, R knows ~103 000 distinct microbial species (updated October 2026) and all ~630 antimicrobial and antiviral drugs by name and code (including ATC, EARS-Net, ASIARS-Net, PubChem, LOINC and SNOMED CT), and knows all about valid SIR and MIC values. The integral clinical breakpoint guidelines from CLSI 2011-2026 and EUCAST 2011-2026 are included, even with epidemiological cut-off (ECOFF) values. It supports and can read any data format, including WHONET data. This package works on Windows, macOS and Linux with all versions of R since R-3.0 (April 2013). It was designed to work in any setting, including those with very limited resources. It was created for both routine data analysis and academic research at the Faculty of Medical Sciences of the University of Groningen and the University Medical Center Groningen.
Used in over 175 countries, available in 28 languages
@@ -187,9 +187,9 @@
Piperacillin/tazobactam + Tobramycin
-
70.2% (65-75.4%)
-
93.6% (92-95.1%)
-
89.9% (87-92.5%)
+
72.5% (67.7-77.1%)
+
96% (95.1-96.9%)
+
92.1% (89.3-94.4%)
WISCA supports stratification by any clinical variable, so you can generate syndrome-specific or ward-specific coverage estimates:
+ minimum =10)# Recommended threshold: >=30
+#> Warning: In 6 of 9 WISCA regimen(s) or group(s), the prior weight of 1 per pathogen accounts for more than
+#> 5% of the pathogen incidence (up to 13.3%), since many pathogens occur only rarely. Because WISCA
+#> gives every pathogen a prior weight of 1 (Bielicki et al., 2016), such rare pathogens can strongly
+#> lower the estimated coverage without reflecting the clinical expectation. Consider limiting the
+#> analysis to the most common pathogens with `top_n_microorganisms()`, or grouping rare pathogens
+#> before running WISCA.
Applying EUCAST and CLSI interpretive rules (manual)
Getting SNOMED codes of a microorganism, or getting properties of a microorganism based on a SNOMED code (manual)
Getting LOINC codes of an antibiotic, or getting properties of an antibiotic based on a LOINC code (manual)
Machine reading the EUCAST and CLSI guidelines from 2011-2026 to translate MIC values and disk diffusion diameters to SIR (link)
diff --git a/index.md b/index.md
index 0b645230f..b58ed88d5 100644
--- a/index.md
+++ b/index.md
@@ -50,7 +50,7 @@ in scientific research.
After installing this package, R knows [**~103 000 distinct microbial
species**](https://amr-for-r.org/reference/microorganisms.md) (updated
-April 2026) and all [**~630 antimicrobial and antiviral
+October 2026) and all [**~630 antimicrobial and antiviral
drugs**](https://amr-for-r.org/reference/antimicrobials.md) by name and
code (including ATC, EARS-Net, ASIARS-Net, PubChem, LOINC and SNOMED
CT), and knows all about valid SIR and MIC values. The integral clinical
@@ -178,7 +178,7 @@ wisca(example_isolates,
| Piperacillin/tazobactam | Piperacillin/tazobactam + Gentamicin | Piperacillin/tazobactam + Tobramycin |
|:---|:---|:---|
-| 70.2% (65-75.4%) | 93.6% (92-95.1%) | 89.9% (87-92.5%) |
+| 72.5% (67.7-77.1%) | 96% (95.1-96.9%) | 92.1% (89.3-94.4%) |
WISCA supports stratification by any clinical variable, so you can
generate syndrome-specific or ward-specific coverage estimates:
@@ -189,13 +189,19 @@ wisca(example_isolates,
antimicrobials = c("TZP", "TZP+TOB", "TZP+GEN"),
syndromic_group = "ward",
minimum = 10) # Recommended threshold: >=30
+#> Warning: In 6 of 9 WISCA regimen(s) or group(s), the prior weight of 1 per pathogen accounts for more than
+#> 5% of the pathogen incidence (up to 13.3%), since many pathogens occur only rarely. Because WISCA
+#> gives every pathogen a prior weight of 1 (Bielicki et al., 2016), such rare pathogens can strongly
+#> lower the estimated coverage without reflecting the clinical expectation. Consider limiting the
+#> analysis to the most common pathogens with `top_n_microorganisms()`, or grouping rare pathogens
+#> before running WISCA.
```
| Syndromic Group | Piperacillin/tazobactam | Piperacillin/tazobactam + Gentamicin | Piperacillin/tazobactam + Tobramycin |
|:---|:---|:---|:---|
-| Clinical | 74.8% (69-80.3%) | 93.7% (92.1-95.1%) | 90.4% (86.8-93.3%) |
-| ICU | 56.7% (48.2-65.4%) | 86.6% (83.3-89.6%) | 83.1% (78.2-87.5%) |
-| Outpatient | 57.6% (46-69%) | 76.4% (69.8-81.7%) | 68% (57.7-77.5%) |
+| Clinical | 78% (72.7-83.4%) | 96.3% (95.1-97.3%) | 93% (89.4-95.7%) |
+| ICU | 59.7% (53.5-67.9%) | 92.2% (90-94.3%) | 88.2% (83.4-92.2%) |
+| Outpatient | 67.9% (51.9-84.7%) | 92.8% (88.2-96.6%) | 79.8% (64.9-92.9%) |
**For AMR surveillance**, traditional antibiograms remain the right tool
for tracking resistance per species over time:
@@ -393,7 +399,7 @@ data analysis. This package can be used for:
- Calculating (empirical) susceptibility of both mono therapy and
combination therapies
([tutorial](https://amr-for-r.org/articles/AMR.md))
-- Apply AMR functions in predictive modelling
+- Applying AMR functions in predictive modelling
([tutorial](https://amr-for-r.org/articles/AMR_with_tidymodels.md))
- Getting properties for any microorganism (like Gram stain, species,
genus or family)
@@ -403,8 +409,8 @@ data analysis. This package can be used for:
([manual](https://amr-for-r.org/reference/ab_property.md))
- Plotting antimicrobial resistance
([tutorial](https://amr-for-r.org/articles/AMR.md))
-- Applying EUCAST expert rules
- ([manual](https://amr-for-r.org/reference/eucast_rules.md))
+- Applying EUCAST and CLSI interpretive rules
+ ([manual](https://amr-for-r.org/reference/interpretive_rules.md))
- Getting SNOMED codes of a microorganism, or getting properties of a
microorganism based on a SNOMED code
([manual](https://amr-for-r.org/reference/mo_property.md))
diff --git a/llms.txt b/llms.txt
index 8f6b82cea..c1b3c1f9f 100644
--- a/llms.txt
+++ b/llms.txt
@@ -50,7 +50,7 @@ in scientific research.
After installing this package, R knows [**~103 000 distinct microbial
species**](https://amr-for-r.org/reference/microorganisms.md) (updated
-April 2026) and all [**~630 antimicrobial and antiviral
+October 2026) and all [**~630 antimicrobial and antiviral
drugs**](https://amr-for-r.org/reference/antimicrobials.md) by name and
code (including ATC, EARS-Net, ASIARS-Net, PubChem, LOINC and SNOMED
CT), and knows all about valid SIR and MIC values. The integral clinical
@@ -178,7 +178,7 @@ wisca(example_isolates,
| Piperacillin/tazobactam | Piperacillin/tazobactam + Gentamicin | Piperacillin/tazobactam + Tobramycin |
|:---|:---|:---|
-| 70.2% (65-75.4%) | 93.6% (92-95.1%) | 89.9% (87-92.5%) |
+| 72.5% (67.7-77.1%) | 96% (95.1-96.9%) | 92.1% (89.3-94.4%) |
WISCA supports stratification by any clinical variable, so you can
generate syndrome-specific or ward-specific coverage estimates:
@@ -189,13 +189,19 @@ wisca(example_isolates,
antimicrobials = c("TZP", "TZP+TOB", "TZP+GEN"),
syndromic_group = "ward",
minimum = 10) # Recommended threshold: >=30
+#> Warning: In 6 of 9 WISCA regimen(s) or group(s), the prior weight of 1 per pathogen accounts for more than
+#> 5% of the pathogen incidence (up to 13.3%), since many pathogens occur only rarely. Because WISCA
+#> gives every pathogen a prior weight of 1 (Bielicki et al., 2016), such rare pathogens can strongly
+#> lower the estimated coverage without reflecting the clinical expectation. Consider limiting the
+#> analysis to the most common pathogens with `top_n_microorganisms()`, or grouping rare pathogens
+#> before running WISCA.
```
| Syndromic Group | Piperacillin/tazobactam | Piperacillin/tazobactam + Gentamicin | Piperacillin/tazobactam + Tobramycin |
|:---|:---|:---|:---|
-| Clinical | 74.8% (69-80.3%) | 93.7% (92.1-95.1%) | 90.4% (86.8-93.3%) |
-| ICU | 56.7% (48.2-65.4%) | 86.6% (83.3-89.6%) | 83.1% (78.2-87.5%) |
-| Outpatient | 57.6% (46-69%) | 76.4% (69.8-81.7%) | 68% (57.7-77.5%) |
+| Clinical | 78% (72.7-83.4%) | 96.3% (95.1-97.3%) | 93% (89.4-95.7%) |
+| ICU | 59.7% (53.5-67.9%) | 92.2% (90-94.3%) | 88.2% (83.4-92.2%) |
+| Outpatient | 67.9% (51.9-84.7%) | 92.8% (88.2-96.6%) | 79.8% (64.9-92.9%) |
**For AMR surveillance**, traditional antibiograms remain the right tool
for tracking resistance per species over time:
@@ -393,7 +399,7 @@ data analysis. This package can be used for:
- Calculating (empirical) susceptibility of both mono therapy and
combination therapies
([tutorial](https://amr-for-r.org/articles/AMR.md))
-- Apply AMR functions in predictive modelling
+- Applying AMR functions in predictive modelling
([tutorial](https://amr-for-r.org/articles/AMR_with_tidymodels.md))
- Getting properties for any microorganism (like Gram stain, species,
genus or family)
@@ -403,8 +409,8 @@ data analysis. This package can be used for:
([manual](https://amr-for-r.org/reference/ab_property.md))
- Plotting antimicrobial resistance
([tutorial](https://amr-for-r.org/articles/AMR.md))
-- Applying EUCAST expert rules
- ([manual](https://amr-for-r.org/reference/eucast_rules.md))
+- Applying EUCAST and CLSI interpretive rules
+ ([manual](https://amr-for-r.org/reference/interpretive_rules.md))
- Getting SNOMED codes of a microorganism, or getting properties of a
microorganism based on a SNOMED code
([manual](https://amr-for-r.org/reference/mo_property.md))
diff --git a/news/index.html b/news/index.html
index a5335df0c..4a24ecc46 100644
--- a/news/index.html
+++ b/news/index.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
@@ -49,15 +49,22 @@
-
AMR 3.1.0.9009
+
AMR 3.1.0.9010
+
This version fixes a critical bug in WISCA that biased all coverage estimates of wisca() and antibiogram(..., wisca = TRUE) downwards since AMR 3.0.0. Users are strongly advised to re-run their WISCA analyses.
WISCA (wisca() and antibiogram(..., wisca = TRUE))
+
Fixed a critical bug that systematically underestimated the coverage of every WISCA since AMR 3.0.0. Pathogens absent from a syndromic group, and pathogens without any test result for a regimen, were still included in the model with only prior information: each added a prior weight of 1 to the pathogen incidence, and untested pathogens kept their full incidence weight while counting as about 50% susceptible. The bias was largest for stratified analyses (e.g., up to 14 percentage points for meropenem in random strata of example_isolates). Now, only pathogens that occur in a group and have at least one test result for the regimen are included. Please re-run all WISCA analyses (#337)
+
+retrieve_wisca_parameters() now returns only the parameters actually used in the model, and n_total in the long_numeric attribute now counts only isolates of the pathogens included for that regimen
+
A new warning is given when the prior weight of 1 per pathogen (Bielicki et al., 2016) accounts for more than 5% of the pathogen incidence, as many rare pathogens can then strongly lower the estimated coverage; consider top_n_microorganisms() in that case
Fixed the misaligned arrows in the message on taxonomically renamed microorganisms in colour-supporting consoles, for old names whose author reference lacks “et al.” (#336)
-
Other
+
Other
The manual index on the website was rewritten to improve findability, with sections ordered by task and a filter field
Fixed the link to the copyright section and added MycoBank as a taxonomy source in the Welcome to AMR vignette (#325)
diff --git a/news/index.md b/news/index.md
index d18ec81a2..c039d1385 100644
--- a/news/index.md
+++ b/news/index.md
@@ -1,9 +1,38 @@
# Changelog
-## AMR 3.1.0.9009
+## AMR 3.1.0.9010
+
+This version fixes a critical bug in WISCA that biased all coverage
+estimates of [`wisca()`](https://amr-for-r.org/reference/antibiogram.md)
+and `antibiogram(..., wisca = TRUE)` downwards since AMR 3.0.0. Users
+are strongly advised to re-run their WISCA analyses.
#### Changed
+- WISCA ([`wisca()`](https://amr-for-r.org/reference/antibiogram.md) and
+ `antibiogram(..., wisca = TRUE)`)
+ - Fixed a critical bug that systematically underestimated the coverage
+ of every WISCA since AMR 3.0.0. Pathogens absent from a syndromic
+ group, and pathogens without any test result for a regimen, were
+ still included in the model with only prior information: each added
+ a prior weight of 1 to the pathogen incidence, and untested
+ pathogens kept their full incidence weight while counting as about
+ 50% susceptible. The bias was largest for stratified analyses (e.g.,
+ up to 14 percentage points for meropenem in random strata of
+ `example_isolates`). Now, only pathogens that occur in a group and
+ have at least one test result for the regimen are included. Please
+ re-run all WISCA analyses
+ ([\#337](https://github.com/msberends/AMR/issues/337))
+ - [`retrieve_wisca_parameters()`](https://amr-for-r.org/reference/antibiogram.md)
+ now returns only the parameters actually used in the model, and
+ `n_total` in the `long_numeric` attribute now counts only isolates
+ of the pathogens included for that regimen
+ - A new warning is given when the prior weight of 1 per pathogen
+ (Bielicki *et al.*, 2016) accounts for more than 5% of the pathogen
+ incidence, as many rare pathogens can then strongly lower the
+ estimated coverage; consider
+ [`top_n_microorganisms()`](https://amr-for-r.org/reference/top_n_microorganisms.md)
+ in that case
- Microorganism coercion
([`as.mo()`](https://amr-for-r.org/reference/as.mo.md))
- Fixed the misaligned arrows in the message on taxonomically renamed
diff --git a/pkgdown.yml b/pkgdown.yml
index 480a15f53..2c9f774db 100644
--- a/pkgdown.yml
+++ b/pkgdown.yml
@@ -10,7 +10,7 @@ articles:
PCA: PCA.html
WHONET: WHONET.html
WISCA: WISCA.html
-last_built: 2026-10-30T09:02Z
+last_built: 2026-10-30T11:41Z
urls:
reference: https://amr-for-r.org/reference
article: https://amr-for-r.org/articles
diff --git a/reference/AMR-deprecated.html b/reference/AMR-deprecated.html
index ede061314..2395d5718 100644
--- a/reference/AMR-deprecated.html
+++ b/reference/AMR-deprecated.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/AMR-options.html b/reference/AMR-options.html
index 24f8a5e6c..3b66c4adb 100644
--- a/reference/AMR-options.html
+++ b/reference/AMR-options.html
@@ -9,7 +9,7 @@ options(AMR_guideline = "CLSI")">AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/AMR.html b/reference/AMR.html
index c8a21d45d..5fb00d64e 100644
--- a/reference/AMR.html
+++ b/reference/AMR.html
@@ -21,7 +21,7 @@ The AMR package is available in English, Arabic, Bengali, Chinese, Czech, Danish
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/WHOCC.html b/reference/WHOCC.html
index 638120a83..994ad0829 100644
--- a/reference/WHOCC.html
+++ b/reference/WHOCC.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/WHONET.html b/reference/WHONET.html
index c66800f34..cac080339 100644
--- a/reference/WHONET.html
+++ b/reference/WHONET.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/ab_from_text.html b/reference/ab_from_text.html
index 6ba3aaeaa..3775d28ec 100644
--- a/reference/ab_from_text.html
+++ b/reference/ab_from_text.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/ab_property.html b/reference/ab_property.html
index 5a96a3049..5c4963e22 100644
--- a/reference/ab_property.html
+++ b/reference/ab_property.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/add_custom_antimicrobials.html b/reference/add_custom_antimicrobials.html
index 9f75544b3..ea4ec7877 100644
--- a/reference/add_custom_antimicrobials.html
+++ b/reference/add_custom_antimicrobials.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/add_custom_microorganisms.html b/reference/add_custom_microorganisms.html
index d3a7cabff..70229607d 100644
--- a/reference/add_custom_microorganisms.html
+++ b/reference/add_custom_microorganisms.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/age.html b/reference/age.html
index b43120cb2..5b4b2b983 100644
--- a/reference/age.html
+++ b/reference/age.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/age_groups.html b/reference/age_groups.html
index e77e1702f..621a09ddb 100644
--- a/reference/age_groups.html
+++ b/reference/age_groups.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/amr-tidymodels.html b/reference/amr-tidymodels.html
index 99f93bea5..022db4cbb 100644
--- a/reference/amr-tidymodels.html
+++ b/reference/amr-tidymodels.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/amr_course.html b/reference/amr_course.html
index ba5b91da2..2dce41d0f 100644
--- a/reference/amr_course.html
+++ b/reference/amr_course.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/antibiogram-1.png b/reference/antibiogram-1.png
index a76059443..828a88227 100644
Binary files a/reference/antibiogram-1.png and b/reference/antibiogram-1.png differ
diff --git a/reference/antibiogram-3.png b/reference/antibiogram-3.png
index ef2ba7760..9fdb8f55f 100644
Binary files a/reference/antibiogram-3.png and b/reference/antibiogram-3.png differ
diff --git a/reference/antibiogram-5.png b/reference/antibiogram-5.png
index ca66076a9..9a9f901a7 100644
Binary files a/reference/antibiogram-5.png and b/reference/antibiogram-5.png differ
diff --git a/reference/antibiogram-6.png b/reference/antibiogram-6.png
index 97ea22b87..94c88f24d 100644
Binary files a/reference/antibiogram-6.png and b/reference/antibiogram-6.png differ
diff --git a/reference/antibiogram.html b/reference/antibiogram.html
index 311568f0e..74a646ea2 100644
--- a/reference/antibiogram.html
+++ b/reference/antibiogram.html
@@ -13,7 +13,7 @@ All antibiogram types adhere to previously described approaches (see Source), an
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
@@ -377,6 +377,8 @@ All antibiogram types adhere to previously described approaches (see Source), an
WISCA (Weighted-Incidence Syndromic Combination Antibiogram) estimates the probability that an empirical antimicrobial regimen will provide adequate coverage for a given infection syndrome, before the causative pathogen has been identified.
It does so by combining two quantities: the relative incidence of each pathogen within the syndrome (modelled as a Dirichlet distribution) and the susceptibility of each pathogen to the regimen (modelled as Beta distributions). These are combined via Monte Carlo simulation to produce a coverage estimate with a credible interval.
Prior distributions: Pathogen incidence uses a non-informative \(Dirichlet(1, 1, \ldots, 1)\) prior. Susceptibility proportions use the Jeffreys prior, \(\beta(0.5, 0.5)\), except for pathogen-drug combinations with known intrinsic resistance, which use a strongly informative \(\beta(1, 9999)\) prior that forces near-zero susceptibility regardless of observed data. Intrinsic resistance is determined using the intrinsic_resistant data set, which is based on 'EUCAST Expected Resistant Phenotypes' v1.2 (2023).
+
Pathogens included in the model: For each regimen (and group), only pathogens that occur in the data and have at least one test result for the regimen are included. Pathogens without any test result for a regimen do not contribute to its coverage, nor to its n_total in long_numeric. Use retrieve_wisca_parameters() to get the parameters that were used.
+
Rare pathogens: Since every pathogen receives a prior weight of 1 in the Dirichlet distribution, pathogens found only once or a few times are given relatively much weight, which pulls the incidence towards a uniform distribution. Their very uncertain susceptibility can then strongly lower the estimated coverage, without reflecting the clinical expectation. A warning is therefore given when this prior weight accounts for more than 5% of the pathogen incidence in any regimen (or group). Consider limiting the analysis to the most common pathogens using top_n_microorganisms(), or grouping rare pathogens before running WISCA.
Interpreting the output: Overlapping credible intervals between regimens indicate no significant difference in coverage; if a narrower-spectrum regimen overlaps with a broader one, the narrower-spectrum option may be preferred on stewardship grounds. Non-overlapping intervals indicate a clinically meaningful difference. For small sample sizes, consider pooling data from multiple sites to improve precision, provided pathogen distributions are sufficiently similar (Bielicki et al., 2016).
For the full mathematical derivation and worked examples, see the WISCA vignette.
@@ -486,7 +488,7 @@ All antibiogram types adhere to previously described approaches (see Source), an
#># Simulations: 1000 per stratum#> `Amoxicillin/clavulanic acid` Amoxicillin/clavulanic …¹ Amoxicillin/clavulan…²#><chr><chr><chr>
-#>1 74.3% (72.3-76.2%) 88.8% (87.2-90.4%) 90.8% (89.3-92.2%)
+#>1 74.9% (72.9-76.9%) 89.7% (88.3-91.1%) 91.9% (90.6-93.1%) #># ℹ abbreviated names: ¹`Amoxicillin/clavulanic acid + Ciprofloxacin`,#># ²`Amoxicillin/clavulanic acid + Gentamicin`#># Use `ggplot2::autoplot()` or base R `plot()` to create a plot of this antibiogram,
@@ -504,7 +506,7 @@ All antibiogram types adhere to previously described approaches (see Source), an
#># Simulations: 1000 per stratum#> `Amoxicillin/clavulanic acid` Amoxicillin/clavulanic …¹ Amoxicillin/clavulan…²#><chr><chr><chr>
-#>1 74.3% (72.4-76.2%) 88.9% (87.3-90.4%) 90.9% (89.4-92.3%)
+#>1 74.9% (72.9-76.9%) 89.7% (88.1-91.1%) 91.9% (90.5-93%) #># ℹ abbreviated names: ¹`Amoxicillin/clavulanic acid + Ciprofloxacin`,#># ²`Amoxicillin/clavulanic acid + Gentamicin`#># Use `ggplot2::autoplot()` or base R `plot()` to create a plot of this antibiogram,
@@ -517,6 +519,13 @@ All antibiogram types adhere to previously described approaches (see Source), an
syndromic_group ="ward")#>ℹ Using column mo as input for `col_mo`.
+#>Warning: In 2 of 9 WISCA regimen(s) or group(s), the prior weight of 1 per pathogen
+#> accounts for more than 5% of the pathogen incidence (up to 5.1%), since many
+#> pathogens occur only rarely. Because WISCA gives every pathogen a prior weight
+#> of 1 (Bielicki et al., 2016), such rare pathogens can strongly lower the
+#> estimated coverage without reflecting the clinical expectation. Consider
+#> limiting the analysis to the most common pathogens with
+#> `top_n_microorganisms()`, or grouping rare pathogens before running WISCA.out#># A tibble: 3 × 4#># Type: Weighted-Incidence Syndromic Combination Antibiogram (WISCA)
@@ -524,9 +533,9 @@ All antibiogram types adhere to previously described approaches (see Source), an
#># Simulations: 1000 per stratum#> `Syndromic Group` `Piperacillin/tazobactam` Piperacillin/tazobactam + Gentam…¹#><chr><chr><chr>
-#>1 Clinical 76% (68.1-83.3%) 99% (98.2-99.6%)
-#>2 ICU 53.3% (39.6-68.5%) 98.4% (96.7-99.4%)
-#>3 Outpatient 62.8% (41.2-84.9%) 96.2% (91.1-99.1%)
+#>1 Clinical 76.4% (68.6-83.9%) 99% (98.2-99.6%)
+#>2 ICU 54.4% (45.4-67.2%) 98.4% (96.8-99.4%)
+#>3 Outpatient 67% (47.6-88.5%) 96.2% (91.4-99%) #># ℹ abbreviated name: ¹`Piperacillin/tazobactam + Gentamicin`#># ℹ 1 more variable: `Piperacillin/tazobactam + Tobramycin` <chr>#># Use `ggplot2::autoplot()` or base R `plot()` to create a plot of this antibiogram,
@@ -550,20 +559,27 @@ All antibiogram types adhere to previously described approaches (see Source), an
}#>Warning: Number of tested isolates should exceed 30 for each regimen (and group). WISCA#> coverage estimates might be inaccurate.
+#>Warning: In 12 of 24 WISCA regimen(s) or group(s), the prior weight of 1 per pathogen
+#> accounts for more than 5% of the pathogen incidence (up to 33.3%), since many
+#> pathogens occur only rarely. Because WISCA gives every pathogen a prior weight
+#> of 1 (Bielicki et al., 2016), such rare pathogens can strongly lower the
+#> estimated coverage without reflecting the clinical expectation. Consider
+#> limiting the analysis to the most common pathogens with
+#> `top_n_microorganisms()`, or grouping rare pathogens before running WISCA.#># A tibble: 8 × 5#># Type: Weighted-Incidence Syndromic Combination Antibiogram (WISCA)#># Cred. interval: 95%#># Simulations: 1000 per stratum#> age_group gender `Piperacillin/tazobactam` Piperacillin/tazobactam + Gentami…¹#><chr><chr><chr><chr>
-#>1 0-24 F 57.4% (27.9-82.7%) 71% (49-89.8%)
-#>2 0-24 M 60% (32.3-84.8%) 75.9% (56.5-90.8%)
-#>3 25-49 F 66.9% (43.2-90.3%) 93.8% (87.3-98%)
-#>4 25-49 M 57.4% (25.6-87.4%) 91.2% (82.2-96.9%)
-#>5 50-74 F 68.5% (54.7-83.1%) 96.9% (94.6-98.6%)
-#>6 50-74 M 66.8% (55.9-77.4%) 96.8% (94.1-98.6%)
-#>7 75+ F 73.1% (62.2-83.2%) 97.7% (96-99%)
-#>8 75+ M 73.9% (63.8-82.7%) 97.8% (96-99%)
+#>1 0-24 F 75.5% (14.7-100%) 81.6% (54.9-97.3%)
+#>2 0-24 M 83.2% (45.8-99.5%) 86.6% (65.9-98.2%)
+#>3 25-49 F 92% (80.3-98.7%) 95.3% (89.1-98.8%)
+#>4 25-49 M 80.8% (57.8-96.3%) 93.3% (85-98.3%)
+#>5 50-74 F 75.4% (66.2-86.5%) 97% (94.9-98.7%)
+#>6 50-74 M 68.4% (58-78.4%) 96.8% (94.2-98.7%)
+#>7 75+ F 75% (63.9-84.4%) 97.8% (96.1-99%)
+#>8 75+ M 75% (65.1-83.6%) 97.9% (96-99.1%) #># ℹ abbreviated name: ¹`Piperacillin/tazobactam + Gentamicin`#># ℹ 1 more variable: `Piperacillin/tazobactam + Tobramycin` <chr>#># Use `ggplot2::autoplot()` or base R `plot()` to create a plot of this antibiogram,
@@ -740,6 +756,13 @@ All antibiogram types adhere to previously described approaches (see Source), an
syndromic_group ="ward")#>ℹ For `ureidopenicillins()` using column TZP (piperacillin/tazobactam)
+#>Warning: In 2 of 3 WISCA regimen(s) or group(s), the prior weight of 1 per pathogen
+#> accounts for more than 5% of the pathogen incidence (up to 13.3%), since many
+#> pathogens occur only rarely. Because WISCA gives every pathogen a prior weight
+#> of 1 (Bielicki et al., 2016), such rare pathogens can strongly lower the
+#> estimated coverage without reflecting the clinical expectation. Consider
+#> limiting the analysis to the most common pathogens with
+#> `top_n_microorganisms()`, or grouping rare pathogens before running WISCA.# in an Rmd file, you would just need to return `ureido` in a chunk,# but to be explicit here:
@@ -750,9 +773,9 @@ All antibiogram types adhere to previously described approaches (see Source), an
#>#> |Syndromic Group |Piperacillin/tazobactam |#> |:---------------|:-----------------------|
-#> |Clinical |74.8% (69-80.4%) |
-#> |ICU |57.1% (48.6-65.5%) |
-#> |Outpatient |57.6% (46.5-68.8%) |
+#> |Clinical |77.8% (72.6-83.1%) |
+#> |ICU |59.8% (53.9-67.7%) |
+#> |Outpatient |68.4% (52.2-84.6%) |# Generate plots with ggplot2 or base R --------------------------------
@@ -765,6 +788,13 @@ All antibiogram types adhere to previously described approaches (see Source), an
antimicrobials =c("AMC", "CIP", "TZP", "TZP+TOB"), syndromic_group ="ward")
+#>Warning: In 8 of 12 WISCA regimen(s) or group(s), the prior weight of 1 per pathogen
+#> accounts for more than 5% of the pathogen incidence (up to 13.3%), since many
+#> pathogens occur only rarely. Because WISCA gives every pathogen a prior weight
+#> of 1 (Bielicki et al., 2016), such rare pathogens can strongly lower the
+#> estimated coverage without reflecting the clinical expectation. Consider
+#> limiting the analysis to the most common pathogens with
+#> `top_n_microorganisms()`, or grouping rare pathogens before running WISCA.if(requireNamespace("ggplot2")){ggplot2::autoplot(ab1)
diff --git a/reference/antibiogram.md b/reference/antibiogram.md
index 776902214..dce74a991 100644
--- a/reference/antibiogram.md
+++ b/reference/antibiogram.md
@@ -565,6 +565,25 @@ data set, which is based on ['EUCAST Expected Resistant Phenotypes'
v1.2](https://www.eucast.org/bacteria/important-additional-information/expert-rules/)
(2023).
+**Pathogens included in the model:** For each regimen (and group), only
+pathogens that occur in the data and have at least one test result for
+the regimen are included. Pathogens without any test result for a
+regimen do not contribute to its coverage, nor to its `n_total` in
+`long_numeric`. Use `retrieve_wisca_parameters()` to get the parameters
+that were used.
+
+**Rare pathogens:** Since every pathogen receives a prior weight of 1 in
+the Dirichlet distribution, pathogens found only once or a few times are
+given relatively much weight, which pulls the incidence towards a
+uniform distribution. Their very uncertain susceptibility can then
+strongly lower the estimated coverage, without reflecting the clinical
+expectation. A warning is therefore given when this prior weight
+accounts for more than 5% of the pathogen incidence in any regimen (or
+group). Consider limiting the analysis to the most common pathogens
+using
+[`top_n_microorganisms()`](https://amr-for-r.org/reference/top_n_microorganisms.md),
+or grouping rare pathogens before running WISCA.
+
**Interpreting the output:** Overlapping credible intervals between
regimens indicate no significant difference in coverage; if a
narrower-spectrum regimen overlaps with a broader one, the
@@ -814,7 +833,7 @@ wisca(example_isolates,
#> # Simulations: 1000 per stratum
#> `Amoxicillin/clavulanic acid` Amoxicillin/clavulanic …¹ Amoxicillin/clavulan…²
#>
-#> 1 74.3% (72.3-76.2%) 88.8% (87.2-90.4%) 90.8% (89.3-92.2%)
+#> 1 74.9% (72.9-76.9%) 89.7% (88.3-91.1%) 91.9% (90.6-93.1%)
#> # ℹ abbreviated names: ¹`Amoxicillin/clavulanic acid + Ciprofloxacin`,
#> # ²`Amoxicillin/clavulanic acid + Gentamicin`
#> # Use `ggplot2::autoplot()` or base R `plot()` to create a plot of this antibiogram,
@@ -832,7 +851,7 @@ antibiogram(example_isolates,
#> # Simulations: 1000 per stratum
#> `Amoxicillin/clavulanic acid` Amoxicillin/clavulanic …¹ Amoxicillin/clavulan…²
#>
-#> 1 74.3% (72.4-76.2%) 88.9% (87.3-90.4%) 90.9% (89.4-92.3%)
+#> 1 74.9% (72.9-76.9%) 89.7% (88.1-91.1%) 91.9% (90.5-93%)
#> # ℹ abbreviated names: ¹`Amoxicillin/clavulanic acid + Ciprofloxacin`,
#> # ²`Amoxicillin/clavulanic acid + Gentamicin`
#> # Use `ggplot2::autoplot()` or base R `plot()` to create a plot of this antibiogram,
@@ -845,6 +864,13 @@ out <- wisca(top_n_microorganisms(example_isolates, n = 5),
syndromic_group = "ward"
)
#> ℹ Using column mo as input for `col_mo`.
+#> Warning: In 2 of 9 WISCA regimen(s) or group(s), the prior weight of 1 per pathogen
+#> accounts for more than 5% of the pathogen incidence (up to 5.1%), since many
+#> pathogens occur only rarely. Because WISCA gives every pathogen a prior weight
+#> of 1 (Bielicki et al., 2016), such rare pathogens can strongly lower the
+#> estimated coverage without reflecting the clinical expectation. Consider
+#> limiting the analysis to the most common pathogens with
+#> `top_n_microorganisms()`, or grouping rare pathogens before running WISCA.
out
#> # A tibble: 3 × 4
#> # Type: Weighted-Incidence Syndromic Combination Antibiogram (WISCA)
@@ -852,9 +878,9 @@ out
#> # Simulations: 1000 per stratum
#> `Syndromic Group` `Piperacillin/tazobactam` Piperacillin/tazobactam + Gentam…¹
#>
-#> 1 Clinical 76% (68.1-83.3%) 99% (98.2-99.6%)
-#> 2 ICU 53.3% (39.6-68.5%) 98.4% (96.7-99.4%)
-#> 3 Outpatient 62.8% (41.2-84.9%) 96.2% (91.1-99.1%)
+#> 1 Clinical 76.4% (68.6-83.9%) 99% (98.2-99.6%)
+#> 2 ICU 54.4% (45.4-67.2%) 98.4% (96.8-99.4%)
+#> 3 Outpatient 67% (47.6-88.5%) 96.2% (91.4-99%)
#> # ℹ abbreviated name: ¹`Piperacillin/tazobactam + Gentamicin`
#> # ℹ 1 more variable: `Piperacillin/tazobactam + Tobramycin`
#> # Use `ggplot2::autoplot()` or base R `plot()` to create a plot of this antibiogram,
@@ -878,20 +904,27 @@ if (requireNamespace("dplyr")) {
}
#> Warning: Number of tested isolates should exceed 30 for each regimen (and group). WISCA
#> coverage estimates might be inaccurate.
+#> Warning: In 12 of 24 WISCA regimen(s) or group(s), the prior weight of 1 per pathogen
+#> accounts for more than 5% of the pathogen incidence (up to 33.3%), since many
+#> pathogens occur only rarely. Because WISCA gives every pathogen a prior weight
+#> of 1 (Bielicki et al., 2016), such rare pathogens can strongly lower the
+#> estimated coverage without reflecting the clinical expectation. Consider
+#> limiting the analysis to the most common pathogens with
+#> `top_n_microorganisms()`, or grouping rare pathogens before running WISCA.
#> # A tibble: 8 × 5
#> # Type: Weighted-Incidence Syndromic Combination Antibiogram (WISCA)
#> # Cred. interval: 95%
#> # Simulations: 1000 per stratum
#> age_group gender `Piperacillin/tazobactam` Piperacillin/tazobactam + Gentami…¹
#>
-#> 1 0-24 F 57.4% (27.9-82.7%) 71% (49-89.8%)
-#> 2 0-24 M 60% (32.3-84.8%) 75.9% (56.5-90.8%)
-#> 3 25-49 F 66.9% (43.2-90.3%) 93.8% (87.3-98%)
-#> 4 25-49 M 57.4% (25.6-87.4%) 91.2% (82.2-96.9%)
-#> 5 50-74 F 68.5% (54.7-83.1%) 96.9% (94.6-98.6%)
-#> 6 50-74 M 66.8% (55.9-77.4%) 96.8% (94.1-98.6%)
-#> 7 75+ F 73.1% (62.2-83.2%) 97.7% (96-99%)
-#> 8 75+ M 73.9% (63.8-82.7%) 97.8% (96-99%)
+#> 1 0-24 F 75.5% (14.7-100%) 81.6% (54.9-97.3%)
+#> 2 0-24 M 83.2% (45.8-99.5%) 86.6% (65.9-98.2%)
+#> 3 25-49 F 92% (80.3-98.7%) 95.3% (89.1-98.8%)
+#> 4 25-49 M 80.8% (57.8-96.3%) 93.3% (85-98.3%)
+#> 5 50-74 F 75.4% (66.2-86.5%) 97% (94.9-98.7%)
+#> 6 50-74 M 68.4% (58-78.4%) 96.8% (94.2-98.7%)
+#> 7 75+ F 75% (63.9-84.4%) 97.8% (96.1-99%)
+#> 8 75+ M 75% (65.1-83.6%) 97.9% (96-99.1%)
#> # ℹ abbreviated name: ¹`Piperacillin/tazobactam + Gentamicin`
#> # ℹ 1 more variable: `Piperacillin/tazobactam + Tobramycin`
#> # Use `ggplot2::autoplot()` or base R `plot()` to create a plot of this antibiogram,
@@ -1068,6 +1101,13 @@ ureido <- wisca(example_isolates,
syndromic_group = "ward"
)
#> ℹ For `ureidopenicillins()` using column TZP (piperacillin/tazobactam)
+#> Warning: In 2 of 3 WISCA regimen(s) or group(s), the prior weight of 1 per pathogen
+#> accounts for more than 5% of the pathogen incidence (up to 13.3%), since many
+#> pathogens occur only rarely. Because WISCA gives every pathogen a prior weight
+#> of 1 (Bielicki et al., 2016), such rare pathogens can strongly lower the
+#> estimated coverage without reflecting the clinical expectation. Consider
+#> limiting the analysis to the most common pathogens with
+#> `top_n_microorganisms()`, or grouping rare pathogens before running WISCA.
# in an Rmd file, you would just need to return `ureido` in a chunk,
# but to be explicit here:
@@ -1078,9 +1118,9 @@ if (requireNamespace("knitr")) {
#>
#> |Syndromic Group |Piperacillin/tazobactam |
#> |:---------------|:-----------------------|
-#> |Clinical |74.8% (69-80.4%) |
-#> |ICU |57.1% (48.6-65.5%) |
-#> |Outpatient |57.6% (46.5-68.8%) |
+#> |Clinical |77.8% (72.6-83.1%) |
+#> |ICU |59.8% (53.9-67.7%) |
+#> |Outpatient |68.4% (52.2-84.6%) |
# Generate plots with ggplot2 or base R --------------------------------
@@ -1093,6 +1133,13 @@ ab2 <- wisca(example_isolates,
antimicrobials = c("AMC", "CIP", "TZP", "TZP+TOB"),
syndromic_group = "ward"
)
+#> Warning: In 8 of 12 WISCA regimen(s) or group(s), the prior weight of 1 per pathogen
+#> accounts for more than 5% of the pathogen incidence (up to 13.3%), since many
+#> pathogens occur only rarely. Because WISCA gives every pathogen a prior weight
+#> of 1 (Bielicki et al., 2016), such rare pathogens can strongly lower the
+#> estimated coverage without reflecting the clinical expectation. Consider
+#> limiting the analysis to the most common pathogens with
+#> `top_n_microorganisms()`, or grouping rare pathogens before running WISCA.
if (requireNamespace("ggplot2")) {
ggplot2::autoplot(ab1)
diff --git a/reference/antimicrobial_selectors.html b/reference/antimicrobial_selectors.html
index ebe1eda5f..53645c306 100644
--- a/reference/antimicrobial_selectors.html
+++ b/reference/antimicrobial_selectors.html
@@ -17,7 +17,7 @@ my_data_with_all_these_columns %>%
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/antimicrobials.html b/reference/antimicrobials.html
index 44d3013f9..a52cd35ad 100644
--- a/reference/antimicrobials.html
+++ b/reference/antimicrobials.html
@@ -9,7 +9,7 @@ The antibiotics data set has been renamed to antimicrobials. The old name will b
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/as.ab.html b/reference/as.ab.html
index d46cdee20..62e48e5ad 100644
--- a/reference/as.ab.html
+++ b/reference/as.ab.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/as.av.html b/reference/as.av.html
index 506a96e62..1e485e864 100644
--- a/reference/as.av.html
+++ b/reference/as.av.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/as.disk.html b/reference/as.disk.html
index ae4f9007f..1f1a67593 100644
--- a/reference/as.disk.html
+++ b/reference/as.disk.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/as.mic.html b/reference/as.mic.html
index 3197bdf3d..6abe48fb8 100644
--- a/reference/as.mic.html
+++ b/reference/as.mic.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/as.mo.html b/reference/as.mo.html
index 8749effd0..a2e3a5e76 100644
--- a/reference/as.mo.html
+++ b/reference/as.mo.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/as.sir.html b/reference/as.sir.html
index 465be4e1c..065e6b79c 100644
--- a/reference/as.sir.html
+++ b/reference/as.sir.html
@@ -9,7 +9,7 @@ Breakpoints are currently implemented from EUCAST 2011-2026 and CLSI 2011-2026,
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
@@ -469,10 +469,10 @@ Breakpoints are currently implemented from EUCAST 2011-2026 and CLSI 2011-2026,
#># A tibble: 4 × 18#> datetime index method ab_given mo_given host_given input_given#><dttm><int><chr><chr><chr><chr><chr>
-#>1 2026-10-30 09:03:40 1 MIC amoxicillin Escherich… human 8
-#>2 2026-10-30 09:03:40 1 MIC cipro Escherich… human 0.256
-#>3 2026-10-30 09:03:40 1 DISK tobra Escherich… human 16
-#>4 2026-10-30 09:03:40 1 DISK genta Escherich… human 18
+#>1 2026-10-30 11:42:12 1 MIC amoxicillin Escherich… human 8
+#>2 2026-10-30 11:42:12 1 MIC cipro Escherich… human 0.256
+#>3 2026-10-30 11:42:12 1 DISK tobra Escherich… human 16
+#>4 2026-10-30 11:42:12 1 DISK genta Escherich… human 18 #># ℹ 11 more variables: ab <ab>, mo <mo>, host <chr>, input <chr>,#># outcome <sir>, notes <chr>, guideline <chr>, ref_table <chr>, uti <lgl>,#># breakpoint_S_R <chr>, site <chr>
diff --git a/reference/as.sir.md b/reference/as.sir.md
index 784aeb3ab..899d387fe 100644
--- a/reference/as.sir.md
+++ b/reference/as.sir.md
@@ -790,10 +790,10 @@ sir_interpretation_history()
#> # A tibble: 4 × 18
#> datetime index method ab_given mo_given host_given input_given
#>
-#> 1 2026-10-30 09:03:40 1 MIC amoxicillin Escherich… human 8
-#> 2 2026-10-30 09:03:40 1 MIC cipro Escherich… human 0.256
-#> 3 2026-10-30 09:03:40 1 DISK tobra Escherich… human 16
-#> 4 2026-10-30 09:03:40 1 DISK genta Escherich… human 18
+#> 1 2026-10-30 11:42:12 1 MIC amoxicillin Escherich… human 8
+#> 2 2026-10-30 11:42:12 1 MIC cipro Escherich… human 0.256
+#> 3 2026-10-30 11:42:12 1 DISK tobra Escherich… human 16
+#> 4 2026-10-30 11:42:12 1 DISK genta Escherich… human 18
#> # ℹ 11 more variables: ab , mo , host , input ,
#> # outcome , notes , guideline , ref_table , uti ,
#> # breakpoint_S_R , site
diff --git a/reference/atc_online.html b/reference/atc_online.html
index 54b8379ef..d201e0f1a 100644
--- a/reference/atc_online.html
+++ b/reference/atc_online.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/av_from_text.html b/reference/av_from_text.html
index 80003d955..2081e3f91 100644
--- a/reference/av_from_text.html
+++ b/reference/av_from_text.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/av_property.html b/reference/av_property.html
index b71677db0..0a0883e6c 100644
--- a/reference/av_property.html
+++ b/reference/av_property.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/availability.html b/reference/availability.html
index 8c727173f..0ea00f4b0 100644
--- a/reference/availability.html
+++ b/reference/availability.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/bug_drug_combinations.html b/reference/bug_drug_combinations.html
index 57de526b9..b7e34468a 100644
--- a/reference/bug_drug_combinations.html
+++ b/reference/bug_drug_combinations.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/clinical_breakpoints.html b/reference/clinical_breakpoints.html
index 675abeb79..11a839a25 100644
--- a/reference/clinical_breakpoints.html
+++ b/reference/clinical_breakpoints.html
@@ -21,7 +21,7 @@ Use as.sir() to transform MICs or disks measurements to SIR values.">AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/count.html b/reference/count.html
index 33bdb97ca..7ebc0f729 100644
--- a/reference/count.html
+++ b/reference/count.html
@@ -9,7 +9,7 @@ count_resistant() should be used to count resistant isolates, count_susceptible(
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/custom_interpretive_rules.html b/reference/custom_interpretive_rules.html
index dcc7f6672..b572de150 100644
--- a/reference/custom_interpretive_rules.html
+++ b/reference/custom_interpretive_rules.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/custom_mdro_guideline.html b/reference/custom_mdro_guideline.html
index 48ffb6f3d..a21d39f5f 100644
--- a/reference/custom_mdro_guideline.html
+++ b/reference/custom_mdro_guideline.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/dosage.html b/reference/dosage.html
index dd1820e40..e77ae8942 100644
--- a/reference/dosage.html
+++ b/reference/dosage.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/esbl_isolates.html b/reference/esbl_isolates.html
index d1e118530..8dcf1c22c 100644
--- a/reference/esbl_isolates.html
+++ b/reference/esbl_isolates.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/example_isolates.html b/reference/example_isolates.html
index 3027c915e..1c8e343ea 100644
--- a/reference/example_isolates.html
+++ b/reference/example_isolates.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/example_isolates_unclean.html b/reference/example_isolates_unclean.html
index 394112f69..2ec6ea686 100644
--- a/reference/example_isolates_unclean.html
+++ b/reference/example_isolates_unclean.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/export_ncbi_biosample.html b/reference/export_ncbi_biosample.html
index 9a7aacf97..3a73cd1da 100644
--- a/reference/export_ncbi_biosample.html
+++ b/reference/export_ncbi_biosample.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/first_isolate.html b/reference/first_isolate.html
index 9635cf4bb..42e5000a0 100644
--- a/reference/first_isolate.html
+++ b/reference/first_isolate.html
@@ -9,7 +9,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/g.test.html b/reference/g.test.html
index 7547ad1d0..ed6521ad1 100644
--- a/reference/g.test.html
+++ b/reference/g.test.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/get_episode.html b/reference/get_episode.html
index 2b25757df..870da1f7d 100644
--- a/reference/get_episode.html
+++ b/reference/get_episode.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
@@ -154,27 +154,27 @@
df<-example_isolates[sample(seq_len(2000), size =100), ]get_episode(df$date, episode_days =60)# indices
-#> [1] 17 10 30 5 49 3 10 46 49 35 36 38 41 2 13 15 18 27 37 29 7 31 42 28 21
-#> [26] 27 43 22 11 23 47 45 26 10 45 20 23 24 48 5 45 33 12 48 7 32 34 34 24 44
-#> [51] 1 31 40 13 44 24 25 14 31 38 43 23 15 48 48 12 43 40 14 10 12 50 14 43 21
-#> [76] 18 46 8 11 9 6 40 26 24 17 2 12 26 48 17 39 44 48 42 15 48 16 19 42 4
+#> [1] 47 42 29 42 34 46 24 12 12 45 22 36 43 12 8 15 36 39 24 16 32 32 46 13 35
+#> [26] 5 18 39 23 40 11 13 40 49 41 47 12 15 19 27 7 5 47 2 23 21 6 48 16 27
+#> [51] 48 37 9 31 44 36 4 2 7 27 47 30 10 28 20 19 9 26 47 25 23 25 48 33 47
+#> [76] 9 17 2 46 24 47 27 43 38 26 41 6 9 25 43 1 5 3 48 14 5 21 17 28 48is_new_episode(df$date, episode_days =60)# TRUE/FALSE
-#> [1] TRUE TRUE TRUE TRUE TRUE TRUE FALSE TRUE FALSE TRUE TRUE TRUE
-#> [13] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
-#> [25] TRUE FALSE TRUE TRUE TRUE TRUE TRUE TRUE TRUE FALSE FALSE TRUE
-#> [37] FALSE TRUE TRUE FALSE FALSE TRUE TRUE FALSE FALSE TRUE TRUE FALSE
-#> [49] FALSE TRUE TRUE FALSE TRUE FALSE FALSE FALSE TRUE TRUE FALSE FALSE
-#> [61] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE
-#> [73] FALSE FALSE FALSE FALSE FALSE TRUE FALSE TRUE TRUE FALSE FALSE FALSE
-#> [85] FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE
-#> [97] TRUE TRUE FALSE TRUE
+#> [1] TRUE TRUE TRUE FALSE TRUE TRUE TRUE TRUE FALSE TRUE TRUE TRUE
+#> [13] TRUE FALSE TRUE TRUE FALSE TRUE FALSE TRUE TRUE FALSE FALSE TRUE
+#> [25] TRUE TRUE TRUE FALSE TRUE TRUE TRUE FALSE FALSE TRUE TRUE FALSE
+#> [37] FALSE FALSE TRUE TRUE TRUE FALSE FALSE TRUE FALSE TRUE TRUE TRUE
+#> [49] FALSE FALSE FALSE TRUE TRUE TRUE TRUE FALSE TRUE FALSE FALSE FALSE
+#> [61] FALSE TRUE TRUE TRUE TRUE FALSE FALSE TRUE FALSE TRUE FALSE FALSE
+#> [73] FALSE TRUE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE FALSE TRUE
+#> [85] FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE TRUE FALSE TRUE FALSE
+#> [97] FALSE FALSE FALSE FALSE# filter on results from the third 60-day episode only, using base Rdf[which(get_episode(df$date, 60)==3), ]#># A tibble: 1 × 46#> date patient age gender ward mo PEN OXA FLC AMX #><date><chr><dbl><chr><chr><mo><sir><sir><sir><sir>
-#>1 2003-01-25 088256 73 F ICU B_STPHY_HMNS R NA R R
+#>1 2002-11-14 058917 76 F ICU B_STPHY_HMNS R NA S NA#># ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,#># CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,#># TOB <sir>, AMK <sir>, KAN <sir>, TMP <sir>, SXT <sir>, NIT <sir>,
@@ -211,16 +211,16 @@
#># Groups: patient, condition [98]#> patient date condition new_episode#><chr><date><chr><lgl>
-#> 1 006606 2011-10-30 C TRUE
-#> 2 05B00F 2004-05-11 C TRUE
-#> 3 067927 2002-02-14 B TRUE
-#> 4 083080 2012-04-16 A TRUE
-#> 5 088256 2003-01-25 B TRUE
-#> 6 097186 2015-10-28 B TRUE
-#> 7 0DBB93 2009-05-08 B TRUE
-#> 8 0E2483 2007-11-10 A TRUE
-#> 9 114570 2003-04-08 C TRUE
-#>10 13DF24 2011-08-14 C TRUE
+#> 1 008218 2009-04-27 A TRUE
+#> 2 058917 2002-11-14 B TRUE
+#> 3 074321 2015-09-20 B TRUE
+#> 4 078381 2014-08-17 A TRUE
+#> 5 080086 2007-10-26 C TRUE
+#> 6 0D7D34 2011-03-16 C TRUE
+#> 7 0DBB93 2003-10-02 A TRUE
+#> 8 110918 2016-05-08 A TRUE
+#> 9 156730 2012-04-12 C TRUE
+#>10 175532 2010-04-10 C TRUE #># ℹ 90 more rowsif(require("dplyr")){
@@ -234,19 +234,19 @@
arrange(patient, ward, date)}#># A tibble: 100 × 5
-#># Groups: ward, patient [94]
+#># Groups: ward, patient [95]#> ward date patient new_index new_logical#><chr><date><chr><int><lgl>
-#> 1 Clinical 2011-10-30 006606 1 TRUE
-#> 2 ICU 2004-05-11 05B00F 1 TRUE
-#> 3 ICU 2002-02-14 067927 1 TRUE
-#> 4 Clinical 2012-04-16 083080 1 TRUE
-#> 5 ICU 2003-01-25 088256 1 TRUE
-#> 6 Clinical 2015-10-28 097186 1 TRUE
-#> 7 Clinical 2009-05-08 0DBB93 1 TRUE
-#> 8 Clinical 2007-11-10 0E2483 1 TRUE
-#> 9 ICU 2003-04-08 114570 1 TRUE
-#>10 Clinical 2011-08-14 13DF24 1 TRUE
+#> 1 Clinical 2009-04-27 008218 1 TRUE
+#> 2 ICU 2002-11-14 058917 1 TRUE
+#> 3 ICU 2015-09-20 074321 1 TRUE
+#> 4 ICU 2014-08-17 078381 1 TRUE
+#> 5 Clinical 2007-10-26 080086 1 TRUE
+#> 6 ICU 2011-03-16 0D7D34 1 TRUE
+#> 7 ICU 2003-10-02 0DBB93 1 TRUE
+#> 8 ICU 2016-05-08 110918 1 TRUE
+#> 9 Clinical 2012-04-12 156730 1 TRUE
+#>10 ICU 2010-04-10 175532 1 TRUE #># ℹ 90 more rowsif(require("dplyr")){
@@ -262,9 +262,9 @@
#># A tibble: 3 × 5#> ward n_patients n_episodes_365 n_episodes_60 n_episodes_30#><chr><int><int><int><int>
-#>1 Clinical 58 12 37 45
-#>2 ICU 33 11 23 29
-#>3 Outpatient 3 2 2 3
+#>1 Clinical 58 13 37 42
+#>2 ICU 29 11 21 26
+#>3 Outpatient 8 5 8 8# grouping on patients and microorganisms leads to the same# results as first_isolate() when using 'episode-based':
@@ -294,18 +294,18 @@
}#># A tibble: 100 × 4#># Groups: patient, mo, ward [96]
-#> patient mo ward flag_episode
-#><chr><mo><chr><lgl>
-#> 1 E31163 B_STPHY_CONS ICU TRUE
-#> 2 4047F6 B_ESCHR_COLI ICU TRUE
-#> 3 329273 B_STRPT_GRPG ICU TRUE
-#> 4 F35553 B_ENTRBC_CLOC ICU TRUE
-#> 5 F50400 B_STPHY_EPDR Clinical TRUE
-#> 6 088256 B_STPHY_HMNS ICU TRUE
-#> 7 E48302 B_STRPT_PNMN ICU TRUE
-#> 8 B77047 B_STPHY_AURS ICU TRUE
-#> 9 D20588 B_STPHY_HMNS ICU TRUE
-#>10 ECF823 B_STPHY_AURS Clinical TRUE
+#> patient mo ward flag_episode
+#><chr><mo><chr><lgl>
+#> 1 340066 B_ESCHR_COLI Clinical TRUE
+#> 2 904640 B_PROTS_MRBL Clinical TRUE
+#> 3 E31724 B_STPHY_CONS ICU TRUE
+#> 4 074321 B_STPHY_HMLY ICU TRUE
+#> 5 660761 B_STRPT_DYSG Clinical TRUE
+#> 6 D39422 B_KLBSL_PNMN Clinical TRUE
+#> 7 408807 B_STPHY_CONS Clinical TRUE
+#> 8 438596 B_HMPHL_INFL ICU TRUE
+#> 9 964998 B_STRPT_PNMN Clinical TRUE
+#>10 D08278 B_ESCHR_COLI ICU TRUE #># ℹ 90 more rows# }
diff --git a/reference/get_episode.md b/reference/get_episode.md
index 639df29a6..ead6bd152 100644
--- a/reference/get_episode.md
+++ b/reference/get_episode.md
@@ -178,27 +178,27 @@ x
df <- example_isolates[sample(seq_len(2000), size = 100), ]
get_episode(df$date, episode_days = 60) # indices
-#> [1] 17 10 30 5 49 3 10 46 49 35 36 38 41 2 13 15 18 27 37 29 7 31 42 28 21
-#> [26] 27 43 22 11 23 47 45 26 10 45 20 23 24 48 5 45 33 12 48 7 32 34 34 24 44
-#> [51] 1 31 40 13 44 24 25 14 31 38 43 23 15 48 48 12 43 40 14 10 12 50 14 43 21
-#> [76] 18 46 8 11 9 6 40 26 24 17 2 12 26 48 17 39 44 48 42 15 48 16 19 42 4
+#> [1] 47 42 29 42 34 46 24 12 12 45 22 36 43 12 8 15 36 39 24 16 32 32 46 13 35
+#> [26] 5 18 39 23 40 11 13 40 49 41 47 12 15 19 27 7 5 47 2 23 21 6 48 16 27
+#> [51] 48 37 9 31 44 36 4 2 7 27 47 30 10 28 20 19 9 26 47 25 23 25 48 33 47
+#> [76] 9 17 2 46 24 47 27 43 38 26 41 6 9 25 43 1 5 3 48 14 5 21 17 28 48
is_new_episode(df$date, episode_days = 60) # TRUE/FALSE
-#> [1] TRUE TRUE TRUE TRUE TRUE TRUE FALSE TRUE FALSE TRUE TRUE TRUE
-#> [13] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
-#> [25] TRUE FALSE TRUE TRUE TRUE TRUE TRUE TRUE TRUE FALSE FALSE TRUE
-#> [37] FALSE TRUE TRUE FALSE FALSE TRUE TRUE FALSE FALSE TRUE TRUE FALSE
-#> [49] FALSE TRUE TRUE FALSE TRUE FALSE FALSE FALSE TRUE TRUE FALSE FALSE
-#> [61] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE
-#> [73] FALSE FALSE FALSE FALSE FALSE TRUE FALSE TRUE TRUE FALSE FALSE FALSE
-#> [85] FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE
-#> [97] TRUE TRUE FALSE TRUE
+#> [1] TRUE TRUE TRUE FALSE TRUE TRUE TRUE TRUE FALSE TRUE TRUE TRUE
+#> [13] TRUE FALSE TRUE TRUE FALSE TRUE FALSE TRUE TRUE FALSE FALSE TRUE
+#> [25] TRUE TRUE TRUE FALSE TRUE TRUE TRUE FALSE FALSE TRUE TRUE FALSE
+#> [37] FALSE FALSE TRUE TRUE TRUE FALSE FALSE TRUE FALSE TRUE TRUE TRUE
+#> [49] FALSE FALSE FALSE TRUE TRUE TRUE TRUE FALSE TRUE FALSE FALSE FALSE
+#> [61] FALSE TRUE TRUE TRUE TRUE FALSE FALSE TRUE FALSE TRUE FALSE FALSE
+#> [73] FALSE TRUE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE FALSE TRUE
+#> [85] FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE TRUE FALSE TRUE FALSE
+#> [97] FALSE FALSE FALSE FALSE
# filter on results from the third 60-day episode only, using base R
df[which(get_episode(df$date, 60) == 3), ]
#> # A tibble: 1 × 46
#> date patient age gender ward mo PEN OXA FLC AMX
#>
-#> 1 2003-01-25 088256 73 F ICU B_STPHY_HMNS R NA R R
+#> 1 2002-11-14 058917 76 F ICU B_STPHY_HMNS R NA S NA
#> # ℹ 36 more variables: AMC , AMP , TZP , CZO , FEP ,
#> # CXM , FOX , CTX , CAZ , CRO , GEN ,
#> # TOB , AMK , KAN , TMP , SXT , NIT ,
@@ -235,16 +235,16 @@ if (require("dplyr")) {
#> # Groups: patient, condition [98]
#> patient date condition new_episode
#>
-#> 1 006606 2011-10-30 C TRUE
-#> 2 05B00F 2004-05-11 C TRUE
-#> 3 067927 2002-02-14 B TRUE
-#> 4 083080 2012-04-16 A TRUE
-#> 5 088256 2003-01-25 B TRUE
-#> 6 097186 2015-10-28 B TRUE
-#> 7 0DBB93 2009-05-08 B TRUE
-#> 8 0E2483 2007-11-10 A TRUE
-#> 9 114570 2003-04-08 C TRUE
-#> 10 13DF24 2011-08-14 C TRUE
+#> 1 008218 2009-04-27 A TRUE
+#> 2 058917 2002-11-14 B TRUE
+#> 3 074321 2015-09-20 B TRUE
+#> 4 078381 2014-08-17 A TRUE
+#> 5 080086 2007-10-26 C TRUE
+#> 6 0D7D34 2011-03-16 C TRUE
+#> 7 0DBB93 2003-10-02 A TRUE
+#> 8 110918 2016-05-08 A TRUE
+#> 9 156730 2012-04-12 C TRUE
+#> 10 175532 2010-04-10 C TRUE
#> # ℹ 90 more rows
if (require("dplyr")) {
@@ -258,19 +258,19 @@ if (require("dplyr")) {
arrange(patient, ward, date)
}
#> # A tibble: 100 × 5
-#> # Groups: ward, patient [94]
+#> # Groups: ward, patient [95]
#> ward date patient new_index new_logical
#>
-#> 1 Clinical 2011-10-30 006606 1 TRUE
-#> 2 ICU 2004-05-11 05B00F 1 TRUE
-#> 3 ICU 2002-02-14 067927 1 TRUE
-#> 4 Clinical 2012-04-16 083080 1 TRUE
-#> 5 ICU 2003-01-25 088256 1 TRUE
-#> 6 Clinical 2015-10-28 097186 1 TRUE
-#> 7 Clinical 2009-05-08 0DBB93 1 TRUE
-#> 8 Clinical 2007-11-10 0E2483 1 TRUE
-#> 9 ICU 2003-04-08 114570 1 TRUE
-#> 10 Clinical 2011-08-14 13DF24 1 TRUE
+#> 1 Clinical 2009-04-27 008218 1 TRUE
+#> 2 ICU 2002-11-14 058917 1 TRUE
+#> 3 ICU 2015-09-20 074321 1 TRUE
+#> 4 ICU 2014-08-17 078381 1 TRUE
+#> 5 Clinical 2007-10-26 080086 1 TRUE
+#> 6 ICU 2011-03-16 0D7D34 1 TRUE
+#> 7 ICU 2003-10-02 0DBB93 1 TRUE
+#> 8 ICU 2016-05-08 110918 1 TRUE
+#> 9 Clinical 2012-04-12 156730 1 TRUE
+#> 10 ICU 2010-04-10 175532 1 TRUE
#> # ℹ 90 more rows
if (require("dplyr")) {
@@ -286,9 +286,9 @@ if (require("dplyr")) {
#> # A tibble: 3 × 5
#> ward n_patients n_episodes_365 n_episodes_60 n_episodes_30
#>
-#> 1 Clinical 58 12 37 45
-#> 2 ICU 33 11 23 29
-#> 3 Outpatient 3 2 2 3
+#> 1 Clinical 58 13 37 42
+#> 2 ICU 29 11 21 26
+#> 3 Outpatient 8 5 8 8
# grouping on patients and microorganisms leads to the same
# results as first_isolate() when using 'episode-based':
@@ -318,18 +318,18 @@ if (require("dplyr")) {
}
#> # A tibble: 100 × 4
#> # Groups: patient, mo, ward [96]
-#> patient mo ward flag_episode
-#>
-#> 1 E31163 B_STPHY_CONS ICU TRUE
-#> 2 4047F6 B_ESCHR_COLI ICU TRUE
-#> 3 329273 B_STRPT_GRPG ICU TRUE
-#> 4 F35553 B_ENTRBC_CLOC ICU TRUE
-#> 5 F50400 B_STPHY_EPDR Clinical TRUE
-#> 6 088256 B_STPHY_HMNS ICU TRUE
-#> 7 E48302 B_STRPT_PNMN ICU TRUE
-#> 8 B77047 B_STPHY_AURS ICU TRUE
-#> 9 D20588 B_STPHY_HMNS ICU TRUE
-#> 10 ECF823 B_STPHY_AURS Clinical TRUE
+#> patient mo ward flag_episode
+#>
+#> 1 340066 B_ESCHR_COLI Clinical TRUE
+#> 2 904640 B_PROTS_MRBL Clinical TRUE
+#> 3 E31724 B_STPHY_CONS ICU TRUE
+#> 4 074321 B_STPHY_HMLY ICU TRUE
+#> 5 660761 B_STRPT_DYSG Clinical TRUE
+#> 6 D39422 B_KLBSL_PNMN Clinical TRUE
+#> 7 408807 B_STPHY_CONS Clinical TRUE
+#> 8 438596 B_HMPHL_INFL ICU TRUE
+#> 9 964998 B_STRPT_PNMN Clinical TRUE
+#> 10 D08278 B_ESCHR_COLI ICU TRUE
#> # ℹ 90 more rows
# }
```
diff --git a/reference/ggplot_pca.html b/reference/ggplot_pca.html
index bf2d13bca..2381cfe90 100644
--- a/reference/ggplot_pca.html
+++ b/reference/ggplot_pca.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/ggplot_sir.html b/reference/ggplot_sir.html
index 9bbb996af..07bedf5a9 100644
--- a/reference/ggplot_sir.html
+++ b/reference/ggplot_sir.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/guess_ab_col.html b/reference/guess_ab_col.html
index 97c80eb6f..87030111b 100644
--- a/reference/guess_ab_col.html
+++ b/reference/guess_ab_col.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/index.html b/reference/index.html
index 1c7cbc404..daba0d018 100644
--- a/reference/index.html
+++ b/reference/index.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/interpretive_rules.html b/reference/interpretive_rules.html
index 29a5f97f4..c90249d45 100644
--- a/reference/interpretive_rules.html
+++ b/reference/interpretive_rules.html
@@ -9,7 +9,7 @@ To improve the interpretation of the antibiogram before CLSI/EUCAST interpretive
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/intrinsic_resistant.html b/reference/intrinsic_resistant.html
index e3e2823f7..da53e914c 100644
--- a/reference/intrinsic_resistant.html
+++ b/reference/intrinsic_resistant.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/italicise_taxonomy.html b/reference/italicise_taxonomy.html
index b3068a2d0..f6c2e7ec5 100644
--- a/reference/italicise_taxonomy.html
+++ b/reference/italicise_taxonomy.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/join.html b/reference/join.html
index 271aef3a6..b36b4b5c2 100644
--- a/reference/join.html
+++ b/reference/join.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/key_antimicrobials.html b/reference/key_antimicrobials.html
index 2afc5eb45..cb4b2f189 100644
--- a/reference/key_antimicrobials.html
+++ b/reference/key_antimicrobials.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
diff --git a/reference/kurtosis.html b/reference/kurtosis.html
index b2a615acb..ec5721aeb 100644
--- a/reference/kurtosis.html
+++ b/reference/kurtosis.html
@@ -7,7 +7,7 @@
AMR (for R)
- 3.1.0.9009
+ 3.1.0.9010
@@ -91,9 +91,9 @@