Hey there,
I am original a python programmer and must use Stata to access the Data of a research Institute.
So, I have to apologize that my question and Code will read like its written in R or Python.
To my Question, I try to access the mean of a factor (group in stata?)
Agrad = automation potential : Number between 1 and 0 for german classification of labor
AO_Kreis = Working region
My Code snippet works when it’s the simple Case:
mean Agrad if beruf2010_2 == 11 & ao_kreis == 5358
But produces illogical outcomes when I try to stack these conditions onto each other
mean Agrad if beruf2010_2 == 11 & ao_kreis == 5315 | ao_kreis == 5362 | ao_kreis == 5378
The code seems to represent several “OR´s” and not one If and several “OR´s” like I intended.
Best regards
Clemens Schiewek
Related Posts with Combination of If and or Clauses
repeated time values within panel r(451)Hey guys, I got the error: repeated time values within panel r(451), when I set the list of firms of…
Creating a variable for a "life event" in panel data which occurred in different waves for different individualsHi there, I am using the BHPS and testing how quickly respondents' happiness measures revert back to…
Gravity equation estimated through Bonus Vetus OLSDear Stata users, Following Agostino and Trivieri (2014), I would like to adopt the Bonus Vetus OLS…
Excel files: Merge worksheets within Excel files and append Excel files with a loopDear Statalist, We have collected annual data on minorities in several countries for 25 years. Now …
working of egen groupHello, I've data were I have for one reporting date several observations, but I only want keep the f…
Subscribe to:
Post Comments (Atom)
0 Response to Combination of If and or Clauses
Post a Comment