Dear all,
how can I export the output of a margins call including pwcompare(groups) to a LaTeX table?
Specifically, this command saves strings into "r(group#)" which would need to be contained in the table, also.
I tried saving the "r(group#)"'s into a matrix (as recommended here: http://repec.org/bocode/e/estout/adv...ml#advanced906).
But this did not work, as matrices only allow numeric values.
I tried using the option ", post", which seemingly does not save the results of "r(group#)" into some "e(group#)" that I could call with esttab.
A reproducible example:
How now to save the last output including the strings from the column "unadjusted groups" into a publication-style TeX-table?
Thanks so much,
Max
how can I export the output of a margins call including pwcompare(groups) to a LaTeX table?
Specifically, this command saves strings into "r(group#)" which would need to be contained in the table, also.
I tried saving the "r(group#)"'s into a matrix (as recommended here: http://repec.org/bocode/e/estout/adv...ml#advanced906).
But this did not work, as matrices only allow numeric values.
I tried using the option ", post", which seemingly does not save the results of "r(group#)" into some "e(group#)" that I could call with esttab.
A reproducible example:
Code:
sysuse auto reg i.rep78##i.foreign, r margins i.rep78#i.foreign, pwcompare(groups)
Thanks so much,
Max
Comment