Putdocxcrosstab is a crosstabulation tool for putdocx like tabulate two-way.
Options:row/column percentages, turn off/on row/columns, missingness, percent % format, table header
(Submitted to SSC should be up soon)
Example output:





(can't post image, only five allowed)
(can't post image, only five allowed)
(can't post image, only five allowed)
Options:row/column percentages, turn off/on row/columns, missingness, percent % format, table header
(Submitted to SSC should be up soon)
PHP Code:
capture program drop putdocxcrosstab
ssc install putdocxcrosstab
sysuse auto , clear
egen pricecat = cut(price), at(0,5000,10000,999999) label
label variable pricecat "Price (categorical)"
tab pricecat foreign
putdocx clear
putdocx begin
putdocxcrosstab pricecat foreign
putdocxcrosstab pricecat foreign , norowsum
putdocxcrosstab pricecat foreign , nocolsum
putdocxcrosstab pricecat foreign , norowsum nocolsum
putdocxcrosstab pricecat foreign , row
putdocxcrosstab pricecat foreign , col
putdocxcrosstab pricecat foreign , row nofreq
putdocxcrosstab pricecat foreign , col nofreq
putdocx save "auto.docx", replace
PHP Code:
putdocxcrosstab pricecat foreign
PHP Code:
putdocxcrosstab pricecat foreign , norowsum
PHP Code:
putdocxcrosstab pricecat foreign , nocolsum
PHP Code:
putdocxcrosstab pricecat foreign , norowsum nocolsum
PHP Code:
putdocxcrosstab pricecat foreign , row
PHP Code:
putdocxcrosstab pricecat foreign , col
PHP Code:
putdocxcrosstab pricecat foreign , row nofreq
PHP Code:
putdocxcrosstab pricecat foreign , col nofreq
Comment