Hi,
I'm printing my regression tables using esttab and TeX. mgroups() allows me to create column headers combining multiple columns. In particular when I use
the resulting tables look very appealing with horizontal lines spanning all the columns bundeled under one heading.
Unfortunately, once I use labcol2(), @span gets confused and doesn not count the additional column.
Is there an easy fix for that? Something like; @span+1 ?
Full example
Best,
S
I'm printing my regression tables using esttab and TeX. mgroups() allows me to create column headers combining multiple columns. In particular when I use
Code:
prefix(\multicolumn{@span}{c}{) suffix(}) span erepeat(\cmidrule(lr){@span}))
Unfortunately, once I use labcol2(), @span gets confused and doesn not count the additional column.
Is there an easy fix for that? Something like; @span+1 ?
Full example
Code:
esttab est1 est2 est3, mgroups("first two" "last one", pattern(1 0 1) prefix(\multicolumn{@span}{c}{) suffix(}) span erepeat(\cmidrule(lr){@span})) labcol2("var1" "var2" "var3")
S
Comment