Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Three backslashes in outreg2 tex tables?

Tags:

latex

stata

I'm having trouble with the user-written outreg2 package used in Stata. When I build the output with the tex(frag) option, the resulting tables have three backslashes at the end of each line rather than just two, resulting in a "misplaced alignment character" error for each line. Any ideas on what I'm doing wrong or how to fix this?

(first regression specification)
outreg2 d.lntau_sh d.lntau_sf using Table_1.tex, nocons replace
(second regression second regression specification)
outreg2 d.lntau_ht d.lntau_th using Table_1.tex, tex(frag) se coefastr symb(***,**,*) rdec(3) bdec(3) r2 nocons append
like image 792
Nils Gudat Avatar asked Jun 19 '13 06:06

Nils Gudat


1 Answers

This answer is specific to Windows. I encountered the same problem. It seems to be specific to the most recent version of outreg2 (outreg2 2.2.5 19mar2012). I fixed the problem as follows: open "C:\ado\plus\o\outreg2.ado" in Notepad; use CTRL+H to replace all instances of three backslashes into two backslashes (there should be three instances replaced); save (CTRL+S).

like image 120
Alexei Karas Avatar answered Nov 15 '22 11:11

Alexei Karas