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
Export entire regression output with estoutHi, I am trying without success to export the entire output of a simple regression (such as the one…
panel unit root test fixed effect random effect1. In what bases of Unit root test result I can go for fixed and random effect modelling? 2. Can I g…
Problem with the Stata GraphHey guys, I'm quit new to Stata and want to give out a graph in Stata. I have import and export Dat…
Difficulty with egenHi all, I usually have no problem with egen but I am finding it impossible to complete a relatively…
Finding the game that your friend also play for network analysisHello, statalist community! Currently I am trying to manipulate my dataset so that I can use it to …
Subscribe to:
Post Comments (Atom)
0 Response to Combination of If and or Clauses
Post a Comment