Statalist


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

st: AW: xml_tab


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: AW: xml_tab
Date   Fri, 23 Jan 2009 10:18:16 +0100

Line for the server

Combining the insights from
http://www.stata-journal.com/article.html?article=st0137
http://www.stata.com/meeting/fnasug08/baum_StataMata.beamer.FNASUG08.pdf
and -h m1_interactive-, it is possible to assemble the desired results in a
matrix and then have -xml_tab- turn this into an xml file

*****
sysuse auto, clear
reg p mp f

mata
b = st_matrix("e(b)")' 
V = st_matrix("e(V)")
se = diagonal(cholesky(diag(V)))
df = st_numscalar("e(df_r)")
st_matrix("mymat",(b, se, b:/se, 2*ttail(df, abs(b:/se)),b :-
invttail(df,0.025):*se, b :+ invttail(df,0.025):*se))
end

xml_tab mymat, replace
*****

HTH
Martin

-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von john metcalfe
Gesendet: Freitag, 23. Januar 2009 03:42
An: [email protected]
Betreff: st: xml_tab

Statalist,
Is it possible to output confidence intervals instead of SE's using xml_tab?
Is there something better than xml_tab for creating tables comparing
serial regression models?

I am using the following:
xml_tab r3 r2 r1 full, stats(aic) eform t(Title) save("model") replace

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