Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: Re: 2 elasticity questions


From   "Eric Strobl" <estrobl@indigo.ie>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: Re: 2 elasticity questions
Date   Sun, 21 Jul 2002 11:09:32 -0400

Hi,


I have the following problem and was wondering whether anybody could help
me.

I am calculating share (employment in an industry by a county) variables and
their deviation from the mean, my data are employment levels aggregated up
to sector/county units:


egen empl_sector=sum(empl_sector_county), by(sector year)
share_empl=empl_sector_county/empl_sector
egen share_empl_mean=mean(share_empl), by(year county)

gen share_deviation_mean=share_empl-share_empl_mean

For my regression analysis (simple OLS) I need the mean of this variable,
share_deviation_mean, to be exactly zero .  But summary statistics show that
it is only very close to zero.  How can I ensure that it is equal to zero?
(I know that this has to do with the way STATA uses data formats, but am not
sure what to do about it)

Also, how about other variables that are not deviations from the mean, but
again that I know should be equal to zero theoretically, but when I look at
summary statistics they are not.

Any help would be greatly appreciated.  Please send emails to:

estrobl@indigo.ie


Thanks

Eric

*
*   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