Have you tried "fn" as a stand-alone function? If yes, have you tried including a "cat" or "print" statement in it, so it prints the value (and maybe the arguments) before it actually returns it? If optim is going to run more than a few seconds, I have "fn" print the value it returns. If it returns NA. I see that, etc.
hope this helps. spencer graves
Hae-Kyung Im wrote:
Does any of you know where I can find an explanation of lapack errors codes? I get error code 17 when using optim().
Is there a way to handle errors in R such that depending on the type of error I can decide what to do next?
Thanks, Haky
______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help