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
Twoway graph generates vertical lines at min/max values of predictorDear Statalist, Why does my twoway graph generate vertical lines at the minimum and maximum values …
Logit: illustrating interaction effectsDear Statalist, I am using Stata 14.2 with Windows 10. I have a logit model on partner acquisition …
Export xtsum and tabstat into Microsoft WordHi everybody! I am trying to export two tables (xtsum and tabstat) into Word, but I have not succee…
IV estimationI have a dummy dependent variable and one instrument. How do I operate IV estimation? What tests are…
What tests to perform on a Panel Data set?Hello, I have a panel data set of 4500 firms for the years 2000 - 2017 (around 42,000 firm-year obs…
Subscribe to:
Post Comments (Atom)
0 Response to Using outreg2 to export Heckman results to LaTeX
Post a Comment