Yuchen Luo
2007-Apr-15 07:37 UTC
[R] How to lower the 'miniFactor' when using nls( ) function?
Dear Friends. I used nls( ) function and encountered error message "step factor 0.000488281 reduced below 'minFactor' of 0.000976563". I then tried the following: 1) Put "nls.control(minFactor = 1/(4096*128))" inside the brackets of nls, but the same error message shows up. 2) Put "nls.control(minFactor = 1/(4096*128))" as a separate command before the command that use nls( ) function, again, the same thing happens, although the R responds to the nls.control( ) function immediately: --------------------------------- $maxiter [1] 50 $tol [1] 1e-05 $minFactor [1] 1.907349e-06 -------------------------------------- I am wondering how may I change the minFactor to a smaller value? The manual that comes with the R software about nls( ) is very sketchy --- the only relevant example I see is a separate command like 2). A more relevent question might be, is lower the 'minFactor' the only solution to the problem? What are the other options? Best Wishes Yuchen Luo [[alternative HTML version deleted]]