Dear Statalist
Clarification of my question on dispersion of workplace years of education: The dispersion measure is the average of absolute differences between own education (across random sample of workers) and mean workplace education.
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 Ei. The dispersion measure is the average of absolute differences between own education, eij (across the random sample of workers) and mean workplace education, Ej.
Sigma (this is the greek letter for sum)|(Ej - eij)|/nj
where eij = workers years of education, i = worker and j = firm and Ej is given below.
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.
Thanks
*
* 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/