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: esttab with svy: tabulate


From   [email protected]
To   statalist <[email protected]>
Subject   st: esttab with svy: tabulate
Date   Tue, 12 Nov 2013 23:12:56 +0000 (UTC)

Dear list 

I would like to output the contingency table and associated statistics generated by svy: tabulate to an Excel file using esttab. For instance: 

[After calling svyset]... 

eststo: svy: tabulate gender race_3grp, row column count 
esttab using "myfile.xls", wide nose scalars(ll chi2) 

The first command produces a 2 x 3 table, with each cell containing the frequency, row percent and column percent. the esttab command generates an excel file containing 5 rows and 5 columns. Each column is labeled "mean" I realize one row and one column is for the total, but I can't figure out what the other columns/rows represent, nor how one gets row/column percentages to appear in the excel table. Is it possible to do this with esttab or is there a better alternative? 

Thanks in advance 

Barth 

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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