search for: initialstep

Displaying 1 result from an estimated 1 matches for "initialstep".

2006 Jul 30
0
re 11. uniroot and function opposite signs warning
...nning a while loop steping out until you have a start and finish thats the function is opposite in sign. You need a "start" and "finish" where F is + and - on either side of the loop. Graphing F might help. step<-10 checkme<-F(start)*F(finish+step) while(checkme>0){ initialstep<-initialstep*2 checkme<-F(start)*F(finish+step) } answer<-uniroot(F,low=start,up=finish+step,maxiter=100)$root Enjoy Joe Liddle tfjbl at uas.alaska.edu -------------- next part -------------- An embedded message was scrubbed... From: r-help-request at stat.math.ethz.ch Subject: R-help D...