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
drop observationsHello everyone, I want to drop the following observations: If a person has written several articles…
Panel data with missing valuesHi everyone, I am wondering if anyone can suggest a method to analyze data in the following format: …
Trend graphs for repeated cross-sectional dataHi, I'm a student and I'm working with a repeated cross-sectional dataset. I would like to create so…
What is the difference between" i.county|trend " and " i.county##c.trend "?In the process of learning the code, I found this way of writing: "i.county|trend" (county is the co…
drop observationspost should be deleted …
Subscribe to:
Post Comments (Atom)
0 Response to selection Problem out of huge amount of occupations
Post a Comment