mirror of
https://github.com/msberends/AMR.git
synced 2026-11-29 01:26:13 +01:00
Built site for AMR@3.1.0.9022: 4547a87
This commit is contained in:
1 parent
cb5a827905
commit
26fe25720d
93 files changed
+176
-136
No files matched your search
@@ -324,6 +324,28 @@ taking into account all antimicrobial test results. If no antimicrobial
|
||||
test results are available in the data set, only the episode-based
|
||||
method is applied at default.
|
||||
|
||||
### First isolates per additional variable
|
||||
|
||||
To determine first isolates separately for the values of any additional
|
||||
variable, such as a ward, a specimen group, a molecular marker or a
|
||||
locally defined classification, group the data with
|
||||
[`dplyr::group_by()`](https://dplyr.tidyverse.org/reference/group_by.html)
|
||||
before calling `first_isolate()`. Every group is then handled as a
|
||||
separate data set, so the selection, including the start of every
|
||||
episode, is determined per patient, genus-species combination and group
|
||||
value. This works with all methods described above:
|
||||
|
||||
your_data %>%
|
||||
group_by(ward) %>%
|
||||
mutate(first = first_isolate())
|
||||
|
||||
Be aware that grouping on a variable that is related to antimicrobial
|
||||
resistance, such as a resistance mechanism or the output of
|
||||
[`mdro()`](https://amr-for-r.org/reference/mdro.md), retains more
|
||||
isolates of patients whose isolates change category. This deviates from
|
||||
CLSI M39 and generally leads to an overestimation of resistance, as the
|
||||
selection then depends on the outcome that is being estimated.
|
||||
|
||||
## References
|
||||
|
||||
Methodology of these functions is strictly based on:
|
||||
|
||||
Reference in new issue
Block a user