Skip to content

Confidence Limits for Non-Linear Regression

3 messages · Dieter Menne, Brian Ripley, Douglas Bates

#
Dear friends of nls,

I have tried confint.nls on a few logistic regression fit; all curves are
well-behaved. Only in 1 out of 3 cases, the method converged, it stopped on the
other cases with "singular matrix" or "number of iterations exceeded". I have
put in the intermediate step by computing the profiles first and manipulating
alphamax and delta.t, but I could not find a compromise that worked.

Anybody can give me a hint?


Dieter



(Sorry, could not find the right method to reply to a thread found in the
archives)
---------------------------------------
Dr. Dieter Menne
Biomed Software
72074 T?bingen
Tel (49) (7071) 52176
FAX (49) (7071) 55 10 46
dieter.menne at menne-biomed.de
www.menne-biomed.de

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Fri, 12 Jan 2001, Dieter Menne wrote:

            
Probably your problem is too hard for profile.nls.  I don't see that this
is much to do with confint.nls:  that calls profile[.nls] and the
latter is failing.  `the method' that is not converging is nls as called by
profile[.nls], I think.

I had thought if you turn tracing on, you would see the area in parameter
space where profile.nls gets in trouble, but profiling seems to turn it
off.  You could try increasing maxiter in nls.control.

Incidentally to Doug Bates: the `trace' argument of nls is missing from the
described arguments.
#
Prof Brian D Ripley <ripley at stats.ox.ac.uk> writes:
It works if trace = TRUE in the original call to nls that creates the
object being profiled.  Try

example(Bennett5, package = "NISTnls")
pr2 <- profile(fm2)


Dieter: If you fitting a conventional three parameter logistic model
or a four parameter model you may want to try the self-starting model
functions in the nls package (SSlogis or SSfpl).  Those functions use
a parameterization that has proven to be very stable.  Often the
difficulties in assessing the variability in parameter estimates is
due to a poorly chosen parameterization for the model.

If you would be willing to send me one of the problematic data sets I
could try to assess what is going wrong for you.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._