I am trying to make the most of stata16's new automated reporting functions, and playing around with generating summary statistics. I'm currently using the following code but struggling figuring out how to use the variable labels rather than variables themselves
Code:
putexcel set report.xlsx, replace putexcel A1= "Sum Test" putexcel A1:F1, border(bottom) merge hcenter tabstat age height weight, stat(n mean sd min max) save return list putexcel A2= matrix(r(StatTotal)'), names nformat(number_d2)
Any help would be really useful!
Thanks in advance.
Chris Burningham
0 Response to Export Summary Stats with variable labels using putexcel
Post a Comment