Dear Stata Community,
Iam almost new to stata and Iam kind of stuck with a problem. May someone can help.
The general task iam doing is to keep the 95 richest occupations out of my 430 in total. Therefor I need the average Income by each occupation.
To do it single handly for each occupation would cost alot of time and creates a huge code with the same and repeating commands.
mean "wage-variable" if "occuaption-variable" == "teacher"
I would like to say stata to search in my occupation variable for each individual occupation and to calculate the mean. After that I want stata to keep the 95 highest ones in a list.
Thanks in advance,
Moritz
Related Posts with selection Problem out of huge amount of occupations
Help with understanding country-specific time trendsHi all, I am running a regression using data on individuals from different countries. All variables…
Future/out of sample predictionsHello, my question is concerning commands that could be used to make out of sample predictions. Spec…
synthetic control errorHello, I am new at the synth command. I am using Stata 15. I want to estimate a treatment effect us…
3200 conformability errorDear statalist, I am estimating spatial durbin model with two spatial weights using spm package foll…
Counting observations with an 'if'Hello all, For a large sample of firms, I need to count the number of (1) business segments and (2)…
Subscribe to:
Post Comments (Atom)
0 Response to selection Problem out of huge amount of occupations
Post a Comment