Dear R-Help, I am trying to run the following: apply(Data,1, fit-non-linear-curve) where fit-non-linear-curve() is a bootstrapping procedure that uses the nls() function. Unsuprisingly there are some lines in the Data for which the nls() procedure fails, probably due to bad starting values. How do I make R just give up on that particular line of Data and carry on? I am using R 0.99 on windows NT. I would like to echo the praises of the R-development team. Simon Bond -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
"Simon Bond" <bond at graylab.ac.uk> writes:> Unsuprisingly there are some lines in the Data for which the nls() > procedure fails, probably due to bad starting values. How do I make R just > give up on that particular line of Data and carry on? I am using R 0.99 on > windows NT.Have a look at the try() function in 1.0.0. Or look at restart() which I think is already in 0.99.0. -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Seemingly Similar Threads
- forward stepwise selection
- Fishers exact test
- Borland Database Engine related installer issue (Portal GT-D)
- weigths in nls (PR#13991)
- [virtio-dev] Re: net_failover slave udev renaming (was Re: [RFC PATCH net-next v6 4/4] netvsc: refactor notifier/event handling code to use the bypass framework)