Hi, I'm having problems using outreg2 to export the results from a Heckman model to LaTeX (same problem occurs when exporting to a .doc file). The following code produces a hypothetical Heckman model and exports the results to LaTex. For some reason, the 3rd column replicates the 2nd column. I would like to only keep column 1 and 2.
A similar problem, but no solution, was posted here: https://www.statalist.org/forums/for...ach-regression
clear
input yvar xvar1 xvar2
3 2 1
4 0 3
. 3 1
. 1 2
2 7 0
6 0 1
. 3 7
0 1 1
. 2 2
1 1 5
end
heckman yvar xvar1 xvar2, select (xvar1 xvar2) vce(robust) iterate(10)
outreg2 using "test_outreg2.tex", replace tex(pretty) keep(xvar1 xvar2)
Related Posts with Using outreg2 to export Heckman results to LaTeX
Exporting Test Results to word from xttest0 and xttest3Dear all, may someone clarify, how I can export the results from xttest0 to word? If I write: xtre…
string variable input for nss() or noccur()Hello! It seems that the command .egen newvar = nss(myvariable ) , find (string) does not seem to t…
Metan (no box)Hi, I am using stata 17 and using the following code for a meta analysis to create a forest plot. I …
Endogeneity problemDear all, I need your help regarding endogeneity. I am running an OLS model like the following: D…
esttab exporting an extra "\" to .texHello! When assigning coefficient labels on esttab, I'm writing the following: (...) Code: coefla…
Subscribe to:
Post Comments (Atom)
0 Response to Using outreg2 to export Heckman results to LaTeX
Post a Comment