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
calculating a ratioDear All, The question is from here. The data is Code: clear input byte(familyid gender) int incom…
Exporting Stata Regression Results to LatexHi Everyone, I am using tex (online version) to present my work. I would like to export my stata-re…
Merge households and individuals datasetsI am using a dataset divided into several different files, some of those are at the household level …
"Un-panelling" of a datasetHi, To tell stata you're dealing with a panel data set you use the command 'xtset'. I've saved the …
Problem using Hoechle's Hausman test for Driscoll-Kraay standard errorsHi, guys! So I have a problem. I'm trying to use the Wooldridge/Hausman test that Hoechle suggests i…
Subscribe to:
Post Comments (Atom)
0 Response to And/Or
Post a Comment