Thanks, Maarten.
I would be grateful, if anyone would l me know the command for mean workplace years of education: based on percentage of the workforce in each of k occupations times average years of education for that occupation from worker respondents, say,
(%OCCjk) * (Sum eijk/nk) k=1, ...,9
where j is the jth workplace, i is the ith individual
Thanks
--- peter harper <[email protected]> wrote:
> I am using a cross-section data with different individuals and
> different firm. I would ge grateful if anyone woul let me know
> the the command for the mean workplace years of education: based
> on mean of workers years of education, say eij across workpace.
Assuming that the variable that identifies workplace is called
workplace and the variable that identifies the years of education is
called ed:
by workplace: egen meaned = mean(ed)
-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands
*
* 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/