Is there an and/or command in Stata? I would like to generate a variable (recoverev) that would equal 1 if one or both variables (gaf11 and/or gaf12) is greater than or equal to 61. This is the code I have so far
gen recoverev=1 if gaf11>=61 | gaf12>=61
replace recoverev=0 if recoverev!=1
Where I currently have an or symbol in between gaf11>=61 and gaf12>=61, I need a symbol for and/or
Related Posts with And/or symbol
Shorten variable labels using foreachHello I am trying to shorten the labels of the variable in my dataset. Eg: storage display value …
Please help with overlaying xtline.Dear Stata Experts, I am a not-Stata-savvy researcher. My simple goal is to produce a time-graph ove…
Moderation in ordered regressionHello! For my thesis, I have to do some regressions in STATA. I am not very good with STATA at the …
Table CreationHii, I have a hospitals data. There is variable named districts, blocks and hospital_name, there are…
Equation notation logistic regressionDear colleagues, For my thesis, I would like to write an equation showing the final Model for a bino…
Subscribe to:
Post Comments (Atom)
0 Response to And/or symbol
Post a Comment