Statalist The Stata Listserver


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

Re: st: Dispersion of workplace years of education


From   "Austin Nichols" <austinnichols@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Dispersion of workplace years of education
Date   Mon, 15 May 2006 11:40:04 -0400

peter harper:
One measure of dispersion of years of education by workplace would be
. egen sde=sd(educ), by(workplace)
but if you want the mean absolute difference (AD), you can code:
. egen ej=mean(educ), by(workplace)
. gen ad=abs(educ-ej)
. egen ei=mean(ad), by(workplace)
for example.

On 5/15/06, peter harper <pharper11@yahoo.co.uk> wrote:
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 a dispersion of workplace years of education: absolute mean diff. across workers based on mean worker years of education, say, Ei.

I already have a variable for mean workplace years of education called Ej: 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.

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