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!
0 Response to And/Or
Post a Comment