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