[R] nls error handling

Jesus Maria Frias Celayeta iosu at ucc.ie
Thu Jan 11 11:08:48 CET 2001


Hi!

Gregg Rosenkranz wrote:
> 
> I'm written a function that uses nls in a loop to fit a model to resampled data.  Occasionally a sample > is drawn such that the algorithm (apparently) can't converge and...

	Have a look to try(). If you do a try(nls(...)) your script will continue even
if your nls reports an error.

cheers,

IOsu


-- 

Jesus Maria Frias Celayeta, PhD.
Process Engineering Department
University College Cork,Cork
Ireland
phone: 353-21-903096
fax:   353-21-270249
http://www.ucc.ie/acad/departments/processeng/staff/friasj.html
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list