I'm exporting descriptive statistics using putexcel in Stata 14 and have been struggling to export variable labels. Based on advice on this forum and elsewhere, I'm using the following code but get an error "(: expression must be enclosed in ()".
Code:
local row = 4 foreach x of varlist $varlist { ... local varlabel : var label `x' putexcel A`row' = ("`varlabel'") ... }
Many thanks,
Ioana
0 Response to Exporting variable label with putexcel
Post a Comment