asdocx: Export from Stata to Word, Excel, LaTeX & HTML › Forums › asdocx Forum › Change the column headers with asdocx using cnames() › Reply To: Change the column headers with asdocx using cnames()
Hello Ben
I have fixed the issue of cnames(). You can update the asdocx by
asdocx_update
Following is an example and the output generated by asdocx
sysuse auto, clear
asdocx reg price mpg rep78, nest replace cnames(Base) replace label
* Add variable headroom and then nest with existing table
asdocx reg price mpg rep78 headroom, nest label cnames(Headroom)
* Add variable weight and then nest with existing table
asdocx reg price mpg rep78 headroom weight, nest label cnames(Weight)