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
logistic regression: outcome does not varyMy research topic is about child mortality and risk factors, including education, age, child with fu…
Loop to summarize multiple variables in oneHello all, I am trying to create a variable that combines the school district identifiers listed be…
Counting words but dependence on 2 VariablesHello, I am new here and trying to open the topic the right way. I hope I implemented the code corr…
Displaying Arabic text in Stata 15Hello experts, here is a problem: When I import data from excel or SPSS in Stata 15, I see that all …
nested loop for cycling over observations by groupHi everyone, I have a dataset with 14 million observations and 22 variables. The variables of inter…
Subscribe to:
Post Comments (Atom)
0 Response to And/or symbol
Post a Comment