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: xml_tab with interactions


From   "Ben Hoen" <[email protected]>
To   <[email protected]>
Subject   st: xml_tab with interactions
Date   Fri, 21 Jan 2011 07:37:46 -0500

Hello Stata Listers,

I have a question about xml_tab.  I am having trouble getting it to export
interacted terms.  Does anyone have a solution or a workaround?

Here is some problematic example code:
sysuse auto, replace
reg price c.mpg#foreign weight
eststo model1
xml_tab model1

Which returns:
. xml_tab model1

foreign#c:  operator invalid
r(198);

yet when I use estout I get:
. estout model1, var(17)

------------------------------
                        Model1
                             b
------------------------------
0b.foreign#c.mpg     -87.42007
1.foreign#c.mpg       36.07147
weight                 2.70761
_cons                -1057.949
------------------------------

Any suggestions?  

Ben

Ben Hoen
Principal Research Associate
Lawrence Berkeley National Laboratory
Office: 845-758-1896
Cell: 718-812-7589
[email protected]


*
*   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