Bookmark and Share

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]

st: AW: esttab problem with time-series operators


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
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:



*************
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: [email protected]
[mailto:[email protected]] Im Auftrag von Johannes Geyer
Gesendet: Freitag, 4. Juni 2010 12:34
An: [email protected]
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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index