Closed luizaandrade closed 3 years ago
Exactly. Technically, the whole matrix is a single "model". I see no other solution to get what you want other then putting together the header manually as in your example. Alternatively, use option -fragment- to write only the table contents and take care of the latex code around the contents directly in LaTeX.
I see. Thank you!
I'm trying to export a LaTeX table with a custom matrix using
esttab
. I just wanted to confirm that the optionmgroups()
cannot be used with matrices.It makes some sense, since matrix columns are not necessarily models, but would be a nice feature to add so it's easier to create custom tables.
(Big fan of your commands, btw. Thank you for developing them!)
Reproducible example
Create a mock matrix
I would expect to write something like this
mat-test.tex looks like this:
This one creates the table I want
mat-works.tex looks like this: