Statalist The Stata Listserver


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

st: mean workplace years of education: based on percentage of the workforce in each of k occupations


From   peter harper <[email protected]>
To   [email protected]
Subject   st: mean workplace years of education: based on percentage of the workforce in each of k occupations
Date   Sun, 21 May 2006 09:43:00 +0000 (GMT)

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/



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