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
Problem with saving graphs with wildcard in namesHi there! I'm having some difficulties saving and combining graphs that I have created using a fore…
Stata evalautes what comes after an if statement that it's not trueHi all, I have a do-file (Testing ceqef.do, attached) which I'm using to test an ado-file (ceqef.ad…
xtreghello, I have a dataset on which I want to perform an OLS. The dataset looks like this: dependent v…
Removing duplicates across several variables in panel data and keep the dup with non-missing valuesHi As the title suggests, I am trying to remove duplicate values across several variables (c30) in …
Writing GMM moment conditions for IPWHi all, I am trying to estimate the ATE of an IPW model by writing a GMM code. I am having trouble …
Subscribe to:
Post Comments (Atom)
0 Response to Using outreg2 to export Heckman results to LaTeX
Post a Comment