Rafa
Thanks for confirming. This is what I had done.
Peter,
You can try:
bys firm: egen dispEdu = mean(abs(Edu_firm_level - Edu_ind_level))
Best,
Rafa
----- Original Message -----
From: "peter harper" <[email protected]>
To: <[email protected]>
Sent: Sunday, June 04, 2006 8:07 PM
Subject: st: Dispersion of workplace years of education
> 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/
>
*
* 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/
Do you know how I can avoid having the collinearity. I do want to show the dispersion of education and education amongst workplaces.
Many Thanks
Well, maybe it was defined by occupational groups ? Then it would vary
between occupations.
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of peter harper
Sent: 03 June 2006 19:06
To: [email protected]
Subject: st: mean and median deviation
Richard
But another pper hd reported mean_deviation of education. This is just a
variable for dispersion of workplace education.
Thanks
At 11:11 AM 6/3/2006, you wrote:
>Dear Statalist
>
>Can anyone please tell me why when two median_deviations', that is,
>median_deviationeducation and median_deviationtraining are used they
>are dropped from a regression.
Are they constants?
Dear Peter
We need a little more info to help you. E.g. what model are you
estimating ? With which data ? Which regression command ?
Best
Justina
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of peter harper
Sent: 03 June 2006 17:12
To: [email protected]
Subject: st: median_deviation
Dear Statalist
Can anyone please tell me why when two median_deviations', that is,
median_deviationeducation and median_deviationtraining are used they are
dropped from a regression.
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/