Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AW: st: RE: RE: estimation with a time trend.
From
"Martin Weiss" <[email protected]>
To
<[email protected]>
Subject
AW: st: RE: RE: estimation with a time trend.
Date
Mon, 5 Jul 2010 13:44:47 +0200
<>
You can just subtract the mean/median from your years to center the
variable:
*************
use http://www.stata-press.com/data/r11/nlswork.dta, clear
su year, d
gen centeredyear=year-r(p50)
su centeredyear year
*************
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von natasha agarwal
Gesendet: Montag, 5. Juli 2010 13:38
An: [email protected]
Betreff: Re: st: RE: RE: estimation with a time trend.
On Mon, Jul 5, 2010 at 11:03 AM, Nick Cox <[email protected]> wrote:
> As -egen, group()- maps to 1 ... whatever regardless of gaps, this might
> in fact make things worse. What's wrong with -year- (or -year- MINUS
> midpoint) for interpretability?
I am afraid I did not understand "year- (or -year- MINUS> midpoint)
for interpretability?"
Thanks
Natasha
> Nick
> [email protected]
>
> Martin Weiss
>
> Your code maps years in your dataset to integer numbers, and I am not
> sure
> that it gets you any closer to your final destination. So far, it has
> not
> hurt either...
>
> natasha agarwal
>
> I was trying to estimate a production function with an unbalanced
> firm-year panel data and wanted to include a time trend. However I was
> not sure if the time trend was created correctly.
>
> egen t=group(year)
>
> I was wondering if anyone could please tell me if this was correct?
>
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
>
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/