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
Use a substring of a variable name to refer to likewise named variablesDear forum, I have a number of datasets, each consisting of various years. On each file I run the sa…
Find min/max*length of variableDearest StataList I have had a problem when trying to find the maximum and minimum length of every …
Time series means of coefficient estimates from cross-sectional regressions.Hi all, I have 29 annual cross-sectional regressions that I want to summarise the findings in a sin…
Difference between estimated coefficientsDear Colleagues I'm running a mediation analysis in which I run two OLS regressions. They are simil…
Mistake in loop for renaming variables of several datafilesDear Statalists, I have ten identically structured excel files which correspond to ten different yea…
Subscribe to:
Post Comments (Atom)
0 Response to selection Problem out of huge amount of occupations
Post a Comment