I'm running a bunch of regressions inside a loop, and saving the results to Excel files using outreg2.
A few of the regressions generate errors and no output, for reasons I understand. I use capture noisily to continue running the loop after the error.
Question: if a regression generates an error, and no output, what ends up in the file produced by the oureg2 command?
forvalues ... {
capture noisily xtivreg2 ...
outreg2 ...
}
Details: As you see I'm using xtivreg2 instead of a simpler command like reg, but I don't think that affects the answer to my question.
Also I suspect the answer would be the same if I were using outreg instead of outreg2.
A few of the regressions generate errors and no output, for reasons I understand. I use capture noisily to continue running the loop after the error.
Question: if a regression generates an error, and no output, what ends up in the file produced by the oureg2 command?
forvalues ... {
capture noisily xtivreg2 ...
outreg2 ...
}
Details: As you see I'm using xtivreg2 instead of a simpler command like reg, but I don't think that affects the answer to my question.
Also I suspect the answer would be the same if I were using outreg instead of outreg2.
Comment