Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Mean workplace years of education


From   "Scinicariello, Franco (ATSDR/OA/OD)" <fes6@CDC.GOV>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Mean workplace years of education
Date   Wed, 21 Jun 2006 12:52:42 -0400

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of peter harper
Sent: Wednesday, June 21, 2006 12:29 PM
To: statalist@hsphsun2.harvard.edu
Subject: st: Mean workplace years of education

Dear Statalist
 
I am working on a cross-section dataset, with different firms and
different individuals. How would one generate a variable which would
provide mean workplace years of education:
which is based on percentage of the workforce in each of the k
occupations times average years of education for that occupation from
worker respondents.
 
(%OCCjk)*(Greek letter sigma eijk/nk)   k = 1, ..., 9
 
where eij is workers years of education, i is the individual and j is
the workplace and k is the occupation.
 
I generated this variable, call it Ej by egen before. But now I want to
run a workplace-level regression on the RHS. So I need to retreive the
mean workplace education from the employee dataset which was merged with
the employer dataset. Since I am only using the employer-level data now.

 
Can anyone tell me how I could create this variable mean workplace
education, Ej, using "collapse". That way I can retrieve that variable
and merge it with the employer data.
 
 
Many Thanks in advance
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index