Dear all,
I want to export table in Excel, but to have nice and funcional table. I have categorical variable lwi, and I tabulate the variable. Also I need wieghted data, therefore I use [iw=rb050] option, where rb050 are cross-sectional weights.
tab lwi [iw=rb050]
logout, save(lwi) excel replace: tab lwi [iw=rb050]
My variable has long value labels, and therefore labels of categories are exported in Excel into several columns. I experimented with fix option, but the results are again not nicely displayed. Also both dec and auto options for decimals remove the decimals, and do not round it, therefore when I put dec(1) option, I get 12.95 rounded to 12.9 instead of 13.0.
Could anyone please help me get some nice excel table. Btw, I have many tab tables, it will be quite time consuming to arrange them by hand. Please find attached the Excel document.
Thank you
Best,
Aleksandra
Related Posts with logout nicely formatted tables
Best way to write "input files" at top of .do file (macros?)I am interested in listing all of my "input" and "output" files early in my code so that the list is…
Changing date format in Stata graphsHello, I have daily data from jan 2004 to sep 2017 and I want to have on the x-axis the dates showi…
How to calculate MSE and MAPE via the do-file or commands?So this is my question: Array …
Graphing different variations of x variable age [age_squared; ln(age); age] on one graphHello, Does anyone know how to recreate this graph (image attached) through Stata? I am basically …
Survey weights in Canadian Community Health Survey Public-Use Microfiles.Hi Forum, This is a bit of a Hail Mary, but Statistics Canada literally recommended that I ask you …
Subscribe to:
Post Comments (Atom)
0 Response to logout nicely formatted tables
Post a Comment