Full disclosure: My question is motivated by a homework assignment. However, this is regarding automation of my regression output to LaTeX with outreg2, which is purely optional as far as the assignment is concerned. The problems where we're actually learning something new regarding econometrics come later.
I am working on an assignment, and one of the problems involves taking a supply/demand system [p = f(q, exogenous vars) and q = g(p, exogenous vars)] and running OLS, 2SLS, and 3SLS regressions on them for comparison. Simple enough: use regress, ivregress, and reg3; then store the estimates from each regression.My difficulty is in the follow-up using outreg2. As the estimates from the 3SLS regression have equation names associated with them, it seems that outreg2 doesn't exactly know what to do with the results if they are being put in the same table as regular OLS or 2SLS results.
When I run outreg2 and request all of my results in one table, I get a table with the OLS and 2SLS results formatted perfectly, but with a single 3SLS containing only the results from the second equation. Even stranger, the constant row and its standard error display are doubled up.
The output is perfect if I output the OLS and 2SLS results as one table, and then the 3SLS results as another, but I'm curious as to whether anyone knows any tricks for working with this. I've considered extracting the e(b) and e(V) results myself and manipulating them to get columns that can line up neatly with each other, but then I don't get automatic parentheses around my standard errors. Besides, that seems overkill and I suspect somebody already knows how to circumvent the problem I'm having.
Any ideas? I've attached my files here in case anyone would like to take a look. Not much to them, really.
I am working on an assignment, and one of the problems involves taking a supply/demand system [p = f(q, exogenous vars) and q = g(p, exogenous vars)] and running OLS, 2SLS, and 3SLS regressions on them for comparison. Simple enough: use regress, ivregress, and reg3; then store the estimates from each regression.My difficulty is in the follow-up using outreg2. As the estimates from the 3SLS regression have equation names associated with them, it seems that outreg2 doesn't exactly know what to do with the results if they are being put in the same table as regular OLS or 2SLS results.
When I run outreg2 and request all of my results in one table, I get a table with the OLS and 2SLS results formatted perfectly, but with a single 3SLS containing only the results from the second equation. Even stranger, the constant row and its standard error display are doubled up.
The output is perfect if I output the OLS and 2SLS results as one table, and then the 3SLS results as another, but I'm curious as to whether anyone knows any tricks for working with this. I've considered extracting the e(b) and e(V) results myself and manipulating them to get columns that can line up neatly with each other, but then I don't get automatic parentheses around my standard errors. Besides, that seems overkill and I suspect somebody already knows how to circumvent the problem I'm having.
Any ideas? I've attached my files here in case anyone would like to take a look. Not much to them, really.
Comment