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
Replacing missing valuesDear All, I have the following (maybe silly) problem, which I cannot solve. I have the following d…
Testing difference between the odds ratios of two testsHello I am trying to predict a binary disease outcome (AD). I have two 'tests' that I would like to…
Exporting Covariance Structure to Excel by YearHi All, I am running models using the GSEM command for three outcomes (gender wage gap, migrant wag…
Generate summed variablesDear Statlists, I have a dataset consisting of a large number of different products and their month…
Year and month from cumulative number of months by groupDear all, I have a panel data with a large number of groups and the cumulative number of months (1 …
Subscribe to:
Post Comments (Atom)
0 Response to selection Problem out of huge amount of occupations
Post a Comment