[R] nls.control( ) has no influence on nls( ) !
Martin Maechler
maechler at stat.math.ethz.ch
Mon Apr 16 09:03:27 CEST 2007
>>>>> "Yuchen" == Yuchen Luo <realityrandom at gmail.com>
>>>>> on Sun, 15 Apr 2007 12:18:23 -0700 writes:
Yuchen> Dear Friends.
Yuchen> I tried to use nls.control() to change the 'minFactor' in nls( ), but it
Yuchen> does not seem to work.
yes, you do not seem to use it correctly.
No reason to jump to the conclusion that you give in the subject
of this posting ... which is hilariously wrong!
You don't really think that a quality software like R has had nls()
and nls.control(), and nls.control() would never have worked for all
those years and tens of thousands of users ???
Please get to your senses, and first read the posting guide (*)
- and then try again, so we can help you further!
Regards,
Martin Maechler, ETH Zurich
(*) Link at the bottom of every R-help message -- and hence
cited below
Yuchen> I used nls( ) function and encountered error message "step factor
Yuchen> 0.000488281 reduced below 'minFactor' of 0.000976563". I then tried the
Yuchen> following:
Yuchen> 1) Put "nls.control(minFactor = 1/(4096*128))" inside the brackets of nls,
Yuchen> but the same error message shows up.
Yuchen> 2) Put "nls.control(minFactor = 1/(4096*128))" as a separate command before
Yuchen> the command that use nls( ) function, again, the same thing happens,
Yuchen> although the R responds to the nls.control( ) function immediately:
Yuchen> ---------------------------------
Yuchen> $maxiter
Yuchen> [1] 50
Yuchen> $tol
Yuchen> [1] 1e-05
Yuchen> $minFactor
Yuchen> [1] 1.907349e-06
Yuchen> --------------------------------------
Yuchen> I am wondering how may I change the minFactor to a smaller value? The manual
Yuchen> that comes with the R software about nls( ) is very sketchy --- the only
Yuchen> relevant example I see is a separate command like 2).
Yuchen> A more relevent question might be, is lower the 'minFactor' the only
Yuchen> solution to the problem? What are the other options?
Yuchen> Best Wishes
Yuchen> Yuchen Luo
Yuchen> [[alternative HTML version deleted]]
Yuchen> ______________________________________________
Yuchen> R-help at stat.math.ethz.ch mailing list
Yuchen> https://stat.ethz.ch/mailman/listinfo/r-help
Yuchen> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
Yuchen> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list