mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 04:20:53 +01:00
improvement for forecasting resistance
This commit is contained in:
1 parent
d9e204031d
commit
498e88b5cf
13 files changed
+438
-145
No files matched your search
@@ -92,13 +92,13 @@ A <- my_patients \%>\%
|
||||
resistance = resistance(gent))
|
||||
|
||||
B <- my_patients \%>\%
|
||||
filter(first_isolate == TRUE) \%>\%
|
||||
filter(first_isolate == TRUE) \%>\% # the 1st isolate filter
|
||||
group_by(hospital_id) \%>\%
|
||||
summarise(count = n_rsi(gent), # gentamicin
|
||||
summarise(count = n_rsi(gent),
|
||||
resistance = resistance(gent))
|
||||
|
||||
# Have a look at A and B. B is more reliable because every isolate is
|
||||
# counted once. Gentamicin resitance in hospital D seems to be 5\%
|
||||
# counted once. Gentamicin resitance in hospital D appears to be 5\%
|
||||
# higher than originally thought.
|
||||
|
||||
## OTHER EXAMPLES:
|
||||
|
||||
Reference in new issue
Block a user