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
How to plot regression in an intervalHi all, can any of you tell me if the below representation of regression analysis is possible in ST…
Setting e(sample) to compute boostrap standard errorsHello, I am trying to obtain direct and indirect effects for multiple mediators with multiply imput…
Homogeneity test (Hsiao test) on panel data balanced with many missing valuesDear all, I'm new on Stata community and I'm using stata 12. I'm trying to determine whether governa…
Interpreting coefficient vs. margins from three-way interactionHello, I have a question regarding the interpretation of a three-way interaction in a GEE model wit…
multiple fixed effect wiith areghi. a run this code, but i faced with an error. please help me. xi: areg inv RE_value index_state yr…
Subscribe to:
Post Comments (Atom)
0 Response to Combination of If and or Clauses
Post a Comment