Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Using xml_tab


From   Alan Neustadtl <[email protected]>
To   Statalist <[email protected]>
Subject   st: Using xml_tab
Date   Mon, 2 Mar 2009 14:58:50 -0500

I am using version 3.50 (24Jun2008) of xml_tab from SSC and am looking
fo rhelp from more experienced users.

Is there a way to 1) only output the coefficients (and drop the std.
errors, t-statistics, and/or pvalues), 2) rename the variable names
(e.g.  "Mileage (mpg)" becomes "MPG"), and 3) add line underneath the
table title (not the first row of coefficients).

Here is a simple example where I changed "_cons" to "Constant".  While
I have played around with the lines options I have not figured out how
to do the rest.

***** START OF CODE *****
sysuse auto, clear
quietly regress mpg weight
estimates store m1
quietly regress mpg weight foreign displacement
estimates store m2

#delimit ;
xml_tab m1 m2, replace
   format((S3120) (N2304))
   constant(Constant)
;
#delimit cr
estimates clear
*****  END OF CODE ****

Best,
Alan
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index