Hi Everyone,
I am using Stata 17.0. On a daily basis, I need to create descriptive and comparison tables using Stata. I normally use the following command to generate table and exporting it to word.
table () ( group ) (), nototals statistic(fvrawfrequency agegroup gender bmicat surgery) statistic(fvrawpercent agegroup gender bmicat surgery) nformat(%9.3g) style(table-1)
collect export "xxx", as(docx) replace
This command creates a MS Word file that has frequency in the first few rows followed by % in the next rows. Thereafter, I have to manually edit the table to place the % next to the frequency column. Is there a simpler and automatic way of doing it?
I want the % column placed next to the corresponding 'frequency' column.
I am using Stata 17.0. On a daily basis, I need to create descriptive and comparison tables using Stata. I normally use the following command to generate table and exporting it to word.
table () ( group ) (), nototals statistic(fvrawfrequency agegroup gender bmicat surgery) statistic(fvrawpercent agegroup gender bmicat surgery) nformat(%9.3g) style(table-1)
collect export "xxx", as(docx) replace
This command creates a MS Word file that has frequency in the first few rows followed by % in the next rows. Thereafter, I have to manually edit the table to place the % next to the frequency column. Is there a simpler and automatic way of doing it?
I want the % column placed next to the corresponding 'frequency' column.

Comment