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
Effect of Endogeneity on SignificanceDear Statalist, I have a fairly simple doubt, forgive me if it's rather basic, but I was wondering …
How to test if the sum of two parameters are zero when we use mlogit command?Hi I want to know how to test if the sum of two parameters are zero in the mlogit context. <Nota…
Problem with command "reshape" (Stata 14)I have used the command "reshape" for years very frequently. However, when I tried to ran it again t…
mixed variance decomposition using nested and crossed panel dataI want to decompose the variation of what I characterize as "concordance scores" by applying the mix…
Does ipfweight generate analytical or sampling weight?Hello, I have generated weight in my dataset using 'ipfweight' (https://fmwww.bc.edu/repec/bocode/i…
Subscribe to:
Post Comments (Atom)
0 Response to selection Problem out of huge amount of occupations
Post a Comment