I could really need some help with a new variable.
I have data on patients who had antibiotics and patients who had a culture taken.
I want a variable containing patients who had antibiotics and/or had a culture taken.
Can anyone tell me if this will contain the right patients?
gen CulAnt=1 if Cult==1| ant==1
I can't seem to get it to work with both &|.
Thank you!
Related Posts with And/Or
Synth execution for missing time seriesHi, I have a time series from 1998-2013 without any observation for 2002. Can you please tell how t…
Transferring coefficients across multiple datasetsHi Everyone, I have the following problem: I have dataset A and B. I am running several (like 5 va…
Creating panel out of excel filesHi all, Not my first choice of format, but I've got excel files of the following format for years 2…
calculating unique occurrence of variableHello everyone, I have got a panel data set consisting of 12 waves. Every individual has got a uniq…
Variability over time of positive and negative valuesHello, I'm interested in calculating the variability over time of a variable that can takes either …
Subscribe to:
Post Comments (Atom)
0 Response to And/Or
Post a Comment