Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[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

[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

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

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

*   For searches and help try:

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