mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 03:40:48 +01:00
Merge remote-tracking branch 'origin/main' into breakpoints
This commit is contained in:
commit
d904ea5afb
23 files changed
+288
-83
No files matched your search
+9
-4
@@ -268,6 +268,10 @@ It does so by combining two quantities: the relative incidence of each pathogen
|
||||
|
||||
\strong{Prior distributions:} Pathogen incidence uses a non-informative \eqn{Dirichlet(1, 1, \ldots, 1)} prior. Susceptibility proportions use the Jeffreys prior, \eqn{\beta(0.5, 0.5)}, except for pathogen-drug combinations with known intrinsic resistance, which use a strongly informative \eqn{\beta(1, 9999)} prior that forces near-zero susceptibility regardless of observed data. Intrinsic resistance is determined using the \link{intrinsic_resistant} data set, which is based on \href{https://www.eucast.org/bacteria/important-additional-information/expert-rules/}{'EUCAST Expected Resistant Phenotypes' v1.2} (2023).
|
||||
|
||||
\strong{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 \code{n_total} in \code{long_numeric}. Use \code{\link[=retrieve_wisca_parameters]{retrieve_wisca_parameters()}} to get the parameters that were used.
|
||||
|
||||
\strong{Rare pathogens and small groups:} Since every pathogen receives a prior weight of 1 in the Dirichlet distribution, the prior weighs heavily when there are few isolates relative to the number of pathogens, i.e., with pathogens found only once or a few times, or in small groups. This pulls the incidence towards a uniform distribution, and the very uncertain susceptibility of rare pathogens 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 \code{\link[=top_n_microorganisms]{top_n_microorganisms()}}, or using fewer and larger groups.
|
||||
|
||||
\strong{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 \emph{et al.}, 2016).
|
||||
|
||||
For the full mathematical derivation and worked examples, see the \href{https://amr-for-r.org/articles/WISCA.html}{WISCA vignette}.
|
||||
@@ -353,12 +357,13 @@ example_isolates
|
||||
|
||||
# basic WISCA: empirical coverage per regimen, weighted by pathogen
|
||||
# incidence, with 95\% credible intervals
|
||||
wisca(example_isolates,
|
||||
# (10 most common species, since rare species can distort coverage estimates)
|
||||
wisca(top_n_microorganisms(example_isolates, n = 10),
|
||||
antimicrobials = c("AMC", "AMC+CIP", "AMC+GEN")
|
||||
)
|
||||
|
||||
# equivalent using antibiogram():
|
||||
antibiogram(example_isolates,
|
||||
antibiogram(top_n_microorganisms(example_isolates, n = 10),
|
||||
antimicrobials = c("AMC", "AMC+CIP", "AMC+GEN"),
|
||||
wisca = TRUE
|
||||
)
|
||||
@@ -443,7 +448,7 @@ antibiogram(ex1,
|
||||
|
||||
# Print the output for R Markdown / Quarto -----------------------------
|
||||
|
||||
ureido <- wisca(example_isolates,
|
||||
ureido <- wisca(top_n_microorganisms(example_isolates, n = 10),
|
||||
antimicrobials = ureidopenicillins(),
|
||||
syndromic_group = "ward"
|
||||
)
|
||||
@@ -461,7 +466,7 @@ ab1 <- antibiogram(example_isolates,
|
||||
antimicrobials = c("AMC", "CIP", "TZP", "TZP+TOB"),
|
||||
mo_transform = "gramstain"
|
||||
)
|
||||
ab2 <- wisca(example_isolates,
|
||||
ab2 <- wisca(top_n_microorganisms(example_isolates, n = 10),
|
||||
antimicrobials = c("AMC", "CIP", "TZP", "TZP+TOB"),
|
||||
syndromic_group = "ward"
|
||||
)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
\alias{intrinsic_resistant}
|
||||
\title{Data Set Denoting Bacterial Intrinsic Resistance}
|
||||
\format{
|
||||
A \link[tibble:tibble]{tibble} with 307 684 observations and 3 variables:
|
||||
A \link[tibble:tibble]{tibble} with 307 746 observations and 3 variables:
|
||||
\itemize{
|
||||
\item \code{mo}\cr Microorganism ID which occurs in \code{\link[=microorganisms]{microorganisms$mo}}. Names can be retrieved using \code{\link[=mo_name]{mo_name()}}.
|
||||
\item \code{ab}\cr Antimicrobial ID which occurs in \code{\link[=antimicrobials]{antimicrobials$ab}}. Names can be retrieved using \code{\link[=ab_name]{ab_name()}}.
|
||||
|
||||
Reference in new issue
Block a user