mirror of
https://github.com/msberends/AMR.git
synced 2025-09-06 06:49:41 +02:00
new antibiotics
This commit is contained in:
@@ -124,14 +124,14 @@ septic_patients \%>\%
|
||||
# Now let's see if first isolates matter:
|
||||
A <- septic_patients \%>\%
|
||||
group_by(hospital_id) \%>\%
|
||||
summarise(count = n_rsi(gent), # gentamicin availability
|
||||
resistance = portion_IR(gent)) # gentamicin resistance
|
||||
summarise(count = n_rsi(GEN), # gentamicin availability
|
||||
resistance = portion_IR(GEN)) # gentamicin resistance
|
||||
|
||||
B <- septic_patients \%>\%
|
||||
filter_first_weighted_isolate() \%>\% # the 1st isolate filter
|
||||
filter_first_weighted_isolate() \%>\% # the 1st isolate filter
|
||||
group_by(hospital_id) \%>\%
|
||||
summarise(count = n_rsi(gent), # gentamicin availability
|
||||
resistance = portion_IR(gent)) # gentamicin resistance
|
||||
summarise(count = n_rsi(GEN), # gentamicin availability
|
||||
resistance = portion_IR(GEN)) # gentamicin resistance
|
||||
|
||||
# Have a look at A and B.
|
||||
# B is more reliable because every isolate is only counted once.
|
||||
|
Reference in New Issue
Block a user