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
combine four categorical variables altogether and generate new variableDear Stata forum, I would like to calculate a median and I know that Stata provides the code for MAD…
Interpretation of grand mean centered versus original form level-2 variables in multilevel logistic regressionHello, I have a random intercept multilevel logistic regression model with cross-level interactions…
Is there an arbitrary scaling factor in logistic regression in Stata?Hi, Norton et al state in a recent JAMA guide that the magnitude of the odds ratio from a logistic …
How to calculate Jaccard SimilarityDear Statlisters, I am trying to calculate a pairwise Jaccard similarity measure and have trouble f…
How to graph hours worked and wage assimilation profiles for immigrants?Dear Stata Forum, I have an unbalanced panel data set with observations at the individual level. I r…
Subscribe to:
Post Comments (Atom)
0 Response to Combination of If and or Clauses
Post a Comment