【方法】
ivregress2
ivregress2 provides a fast and easy way to export both the first-stage and the second-stage results similar to ivregress, on which it is based.
【例子】
* ivregress to be duplicated
sysuse auto, clear
ivregress 2sls mpg weight (length=displacement), first
* export them (with table-making programs of your choice)
ivregress2 2sls mpg weight (length=displacement), first
est restore first
outreg2 using myfile, cttop(first) replace
est restore second
outreg2 using myfile, cttop(second) excel
* use version control to make it future-proof against Stata 13 and beyond
version 12: ivregress2 2sls mpg weight (length=displacement), first