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
lag regression: Not sorted errorHi, I have tried to run lagged regressions but the error keeps coming up as not sorted. I have sorte…
Repeated time values within panel helpHi All, I am having some trouble with understanding the xtset command even after reading through so…
Collapsing multiple variables using the count optionHi all, I have a dataset where every row represents a study. Each row contains a column describing …
Replacing missing values with draws from a subset of nonmissing valuesI am replicating an imputation procedure for a household survey, and I'm struggling to find a elegan…
Retaining the entire ID if there are certain variables in the panel dataGood Morning world English is not my language so google help me. Please understand me. I have stat…
Subscribe to:
Post Comments (Atom)
0 Response to And/or symbol
Post a Comment