I am currently investigating wage differentials by industry in Germany. My dataset gives me cross-sectional data per individual, with information such as industry, wage, etc. To find the uncontrolled wage differentials per industry, I ran the following command:
reg lnwage i.industry
Stata then returns coefficients for each industry (which represent the wage differential of that industry). I now wish to calculate the employment-weighted mean differential. I obtain the number of employed people in each industry with the following command:
tab industry
Now, I want to weight each coefficient obtained from the regression by its frequency, to get the weighted average differential across all industries. For example, if the industry "Farming" has a coefficient of 0.4 and employs 30% of individuals, while "Mining" has a coefficient of -0.2 and employs 70% of the individuals, then the employment-weighted mean differential is (0.4 * 0.3) + (-0.2 * 0.7) = -0.02
Ideally, I then want to present the difference between each industry's coefficient and the employment-weighted mean differential in a table.
Does anybody have an idea how I can execute this?
Related Posts with Calculating the Employment-Weighted Mean Differential
Multiple line graphs 2 yaxisDear STATA users, Once again I need guidance to construct a multiple line graph with 2 y-axes. The …
Need Help Handling Duplicates When Making Panel Data SetI am constructing panel data from 2 sets of surveys administered monthly for 7 years. The first is c…
Time series dataHi again, If I hava time series data with say for instance 1500 numeric observations reflecting pri…
Calculating Institutional investor churn rateHello, Sorry, am new to stata and my question might seem too simple but just know am helpless and gu…
Restricted cubic splines (uvrs fracplot) - plotting scale issues and how to pull out specific data points on spline?Hi folks - minor (I hope) but somewhat annoying question RE. uvrs fracplot functions in Stata, and a…
Subscribe to:
Post Comments (Atom)
0 Response to Calculating the Employment-Weighted Mean Differential
Post a Comment