See -help capture-
Scott
On Thu, Jul 30, 2009 at 8:01 AM, Lars Holstenkamp
<[email protected]> wrote:
>
> Dear all,
>
> I generated random numbers for cash flows (obs=10,000) and tried to compute internal rate of returns for every set of data using -finirr- (user written). Unfortunately, there seem to be some simulation runs where the maximization procedure used by -finirr- fails to converge, i.e. no internal rate of return (IRR) can be calculated or no IRR exists. Therefore, I get a failure message when running my do file. Is there a way how to keep it going and instead produce a missing in case the IRR can't be computed?
>
> Thanks,
> Lars
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/