Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: esttab problem with time-series operators

From   "Martin Weiss" <>
To   <>
Subject   st: AW: esttab problem with time-series operators
Date   Fri, 4 Jun 2010 13:09:02 +0200


Capitalize the "lag L" and it works without duplication:


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)


-----Ursprüngliche Nachricht-----
[] Im Auftrag von Johannes Geyer
Gesendet: Freitag, 4. Juni 2010 12:34
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 



*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index