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


From   Nick Cox <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: RE: xml_tab with interactions
Date   Fri, 21 Jan 2011 12:54:07 +0000

-xml_tab- is a user-written program from SJ and SSC. Please remember to specify where user-written programs you specify come from. This request has long been prominent in the FAQ. 

-estout-: similar comments. 

In this case, although I have not used -xml_tab- or looked carefully inside it, I note that -xml_tab- was written for Stata 8 and was last updated 24 June 2008. It doesn't surprise me that it fails to recognise features, specifically factor variables, introduced in Stata 11. 

It might therefore be surprising that -estout- does what you want here. The difference is that -estout- has been updated to support factor variables, as is documented at http://repec.org/bocode/e/estout/history.html


Nick 
[email protected] 

Ben Hoen

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


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