You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
combining SIR for multiple antibiotics into one variable
#304
Is there a way using the AMR package to create a new SIR variable based on combining two (or more) variables?
For example, we have a variable of TZP (pip-tazo) and another for GEN (gentamicin) and we want to have a combined TZP_GEN variable.
We know that we can count or calculate the prop of combined SI and/or R with the existing functions, but the only way I have been able to make combined variables is to use a case_when, but now with the inclusion of SDD and NI the coding of all the different combinations is rather long.
We'd want to follow the rules as per the "Combination Therapy" table (link)
By being able to generate a variable we can then use that in future analyses throughout the project
Thanks in advance
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Is there a way using the AMR package to create a new SIR variable based on combining two (or more) variables?
For example, we have a variable of TZP (pip-tazo) and another for GEN (gentamicin) and we want to have a combined TZP_GEN variable.
We know that we can count or calculate the prop of combined SI and/or R with the existing functions, but the only way I have been able to make combined variables is to use a case_when, but now with the inclusion of SDD and NI the coding of all the different combinations is rather long.
We'd want to follow the rules as per the "Combination Therapy" table (link)
By being able to generate a variable we can then use that in future analyses throughout the project
Thanks in advance
All reactions