Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.

# Antwort: st: AW: esttab problem with time-series operators

 From Johannes Geyer To statalist@hsphsun2.harvard.edu Subject Antwort: st: AW: esttab problem with time-series operators Date Mon, 7 Jun 2010 09:56:22 +0200

```Thank you Martin - it works perfectly!

I'll use capitalized operators in the future - but I do not think that
there is a functional
difference between "L.x" and "l.x." . I guess the reason for my problem
can be found
in -esttab- and is not generalizable.

Johannes

owner-statalist@hsphsun2.harvard.edu schrieb am 04/06/2010 13:09:02:

>
> <>
>
> Capitalize the "lag L" and it works without duplication:
>
>
>
> *************
> clear*
>
> set obs 1000
> gen var1=rnormal()
> gen var2=rnormal()
> gen int time=_n
> tsset time
>
> gen y=1+2*var1-3*var2+rnormal()
>
> reg y var? L.y
>
> esttab,  order(var2 var1 L.y)
> *************
>
>
>
> HTH
> Martin
>
> -----Ursprüngliche Nachricht-----
> Von: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Johannes
Geyer
> Gesendet: Freitag, 4. Juni 2010 12:34
> An: statalist@hsphsun2.harvard.edu
> Betreff: st: esttab problem with time-series operators
>
> Dear List,
>
> I noticed that -esttab- had some problems dealing with time-series
> operators. But hopefully I miss something.
>
> I wanted the change the order of variables. When I do something like
> -----------------------------------------------
> eststo test: reg y l.y var1 var2
> esttab test using c:\temp\help.tex, replace order(var2 var1 l.y)
>
> I get an output that doubles the rows for "l.y" with empty entries. like
>
> l.y     &       SOME NUMBER     \\
>                 &       SOME NUMBER     \\
> l.y             &                               \\
>                 &                               \\
> -----------------------------------------------
>
> Does anyone know a workaround? (Of course, this example is
> oversimplified...)
>
> Thanks,
>
> Johannes
>
>
> *
> *   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/
```