Hello everyone,
I'm exporting some regression results into Latex with etable + collect. I added a few labels as I want them to appear in the .tex file, but the result has the "$" and "_" characters escaped.
Example:
The resulting line in the .tex output becomes
Which won't format correctly. Is there any way to prevent the escaping?
I tried
1. Escaping it in the label collect label levels colname mpg "\$\beta\_{mpg}\$", modify --- no difference
2. Looked it up, found a question from someone using esttab, but there is no substitute option for the collect label and collect export commands.
Best,
Clara
I'm exporting some regression results into Latex with etable + collect. I added a few labels as I want them to appear in the .tex file, but the result has the "$" and "_" characters escaped.
Example:
Code:
sysuse auto reg price mpg weight estimates store first reg price mpg length estimates store second etable, estimates(first second) collect label levels colname mpg "$\beta_{mpg}$", modify collect export reg_results, name(ETable) as (tex) replace
Code:
\multicolumn{1}{l}{\$\beta\_{mpg}\$} &
I tried
1. Escaping it in the label collect label levels colname mpg "\$\beta\_{mpg}\$", modify --- no difference
2. Looked it up, found a question from someone using esttab, but there is no substitute option for the collect label and collect export commands.
Best,
Clara
Comment