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
lclogit2: Problem with [if] conditionDear Prof. Yoo (and all others), I am currently trying to use lclogit2 to conduct a Latent Class An…
How to overcome problems in fuzzy match via matchit and reclink?Hi Statalisters, I try to use fuzzy match commands matchit and reclink to merge two datasets. Here…
egen function xtile() not found even with egenmore installedHello everyone, I am not a pro on Stata but need to use it for a research paper in Finance for my d…
Fixed effect model with more than two categorical variablesHi I am studying how company specific features are impacting reinsurance purchasing behavior in Kor…
connecting several coefficients across sub-graphs - CoefplotHi statalister, I have an issue with connecting coeficients results using coefplot (Stata journal v…
Subscribe to:
Post Comments (Atom)
0 Response to Calculating the Employment-Weighted Mean Differential
Post a Comment