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 at the end of May, and its replacement, statalist.org 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" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
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: 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/


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