Re: [Rd] nls

2015-03-19 Thread Prof J C Nash (U30A)
nls() is using 1) only a Gauss-Newton code which is prone to some glitches 2) approximate derivatives Package nlmrt uses symbolic derivatives for expressions (you have to provide Jacobian code for R functions) and an aggressive Marquardt method to try to reduce the sum of squares. It does return m

Re: [Rd] nls (with SSlogis model and upper limit) never returns (PR#10544)

2008-01-05 Thread Gabor Grothendieck
On my Windows Vista system it returns an answer: > values <- list(x=10:30, y=c(23.85, 28.805, 28.195, 26.23, 25.005, 20.475, + 17.33, 14.97, 11.765, 8.857, 5.3725, 5.16, 4.2105, 2.929, 2.174, 1.25, 1.0255, + 0.612, 0.556, 0.4025, 0.173)) > y.max <- max(values$y) > model <- nls(y ~ SSlogis(x, asym,

Re: [Rd] nls (with SSlogis model and upper limit) never returns (PR#10544)

2008-01-05 Thread maechler
> "PD" == Peter Dalgaard <[EMAIL PROTECTED]> > on Fri, 04 Jan 2008 18:23:33 +0100 writes: PD> [EMAIL PROTECTED] wrote: >> Full_Name: Hendrik Weisser >> Version: 2.6.1 >> OS: Linux >> Submission from: (NULL) (139.19.102.218) >> >> >> The following compu

Re: [Rd] nls (with SSlogis model and upper limit) never returns (PR#10544)

2008-01-04 Thread Peter Dalgaard
[EMAIL PROTECTED] wrote: > Full_Name: Hendrik Weisser > Version: 2.6.1 > OS: Linux > Submission from: (NULL) (139.19.102.218) > > > The following computation never finishes and locks R up: > > >> values <- list(x=10:30, y=c(23.85, 28.805, 28.195, 26.23, 25.005, 20.475, >> > 17.33, 14.97, 11

[Rd] nls (with SSlogis model and upper limit) never returns (PR#10544)

2008-01-04 Thread hendrik . weisser
Full_Name: Hendrik Weisser Version: 2.6.1 OS: Linux Submission from: (NULL) (139.19.102.218) The following computation never finishes and locks R up: > values <- list(x=10:30, y=c(23.85, 28.805, 28.195, 26.23, 25.005, 20.475, 17.33, 14.97, 11.765, 8.857, 5.3725, 5.16, 4.2105, 2.929, 2.174, 1.25,

Re: [Rd] nls fails with large numbers of variables (PR#9873)

2007-08-23 Thread ripley
This is fixed in the current R-devel. On Wed, 22 Aug 2007, [EMAIL PROTECTED] wrote: > Full_Name: Yan Wong > Version: 2.5.1 > OS: Mac OS X 10.4 > Submission from: (NULL) (129.11.77.198) > > > If nls is called with a large number of variables & parameters (>200), then it > fails because of the defa

[Rd] nls fails with large numbers of variables (PR#9873)

2007-08-23 Thread h . y . wong
Full_Name: Yan Wong Version: 2.5.1 OS: Mac OS X 10.4 Submission from: (NULL) (129.11.77.198) If nls is called with a large number of variables & parameters (>200), then it fails because of the default setting of max.names = 200 in the all.vars function. I guess that nls should either give a meani

[Rd] nls problems

2007-06-04 Thread Spencer Graves
Hi, All: The following identifies apparent inconsistencies and proposed fixes between the documentation and the behavior of 'nls'. Specifically, the help file says 'data' 'Can also be a list'. However, I got an error when I tried it with a list that could not be coerced to a data.

Re: [Rd] nls with algorithm = "port", starting values

2007-04-16 Thread Prof Brian Ripley
I think we should fix the code to do as the documentation says: all it needs is an unlist(). Thank you for the examples, which helped test this. On Mon, 16 Apr 2007, Katharine Mullen wrote: > The documentation for nls says the following about the starting values: > > start: a named list or name

[Rd] nls with algorithm = "port", starting values

2007-04-16 Thread Katharine Mullen
The documentation for nls says the following about the starting values: start: a named list or named numeric vector of starting estimates. Since R 2.4.0, when 'start' is missing, a very cheap guess for 'start' is tried (if 'algorithm != "plinear"'). It may be a good idea to d

Re: [Rd] nls function does not use subset argument (PR#9290)

2006-10-11 Thread Tadashi Kadowaki
I am sorry, it was my program's bug. Yes, subset works! Yes, nls works correctly! I didn't pay enough attention to NAs. NA threw off start value estimation in my program. So, I got different results when I filtered NAs beforehand and filtered by subset. I also confused because subset does not appe

Re: [Rd] nls function does not use subset argument (PR#9290)

2006-10-11 Thread Peter Dalgaard
[EMAIL PROTECTED] writes: > Full_Name: Tadashi Kadowaki > Version: 2.4.0 > OS: Redhat Linux 9 > Submission from: (NULL) (58.12.166.67) > > > Doesn't nls function support subset? It seems not to work. > And, there are no information in the online help. > Has it sunk into oblivion? Whatever gave

Re: [Rd] nls function does not use subset argument (PR#9290)

2006-10-11 Thread Prof Brian Ripley
This is not the place to ask a question: do read the FAQ. ?nls shows that nls does have a 'subset' argument, and it does work. Compare > ?nls > x <- 1:10 > y <- 2*x + 3# perfect fit > yeps <- y + rnorm(length(y), sd = 0.01) # added noise > nls(yeps ~ a + b*x, start = l

[Rd] nls function does not use subset argument (PR#9290)

2006-10-11 Thread tadakado
Full_Name: Tadashi Kadowaki Version: 2.4.0 OS: Redhat Linux 9 Submission from: (NULL) (58.12.166.67) Doesn't nls function support subset? It seems not to work. And, there are no information in the online help. Has it sunk into oblivion? __ R-devel@r-p

Re: [Rd] nls profiling with algorithm="port" may violate bounds (PR#8508)

2006-01-21 Thread Spencer Graves
Dear Professors. Bolker & Ripley: Thank you both very much for all your creativity and hard work both in your generall contributions to human knowledge and specifically for helping make R the great thing it is today. I had not seen a reply to that email in several days, so I made time t

Re: [Rd] nls profiling with algorithm="port" may viol ate bounds (PR#8508)

2006-01-21 Thread Ben Bolker
Spencer Graves pdf.com> writes: > > Hi, Ben, et al.: > > The issue Ben identified with confint(nls(... )) generates a hard > failure for me. "We" (being Brian Ripley and I) know about this already. I'm sorry I failed to specify enough info in my bug report, but I was using R-dev

Re: [Rd] nls profiling with algorithm="port" may violate bounds (PR#8508)

2006-01-20 Thread Spencer Graves
Hi, Ben, et al.: The issue Ben identified with confint(nls(... )) generates a hard failure for me. Specifically the command "confint(m1)" in his script below under Rgui 2.2.1 first says, "Waiting for profiling to be done..." then forces a screen to pop up with heading "R for Windows

[Rd] nls profiling with algorithm="port" may violate bounds (PR#8508)

2006-01-19 Thread bolker
[posted to R-devel, no discussion: resubmitting it as a bug, just so it gets logged appropriately] Sorry to report further difficulties with nls and profiling and constraints ... the problem this time (which I didn't check for in my last round of testing) is that the nls profiler doesn't seem

[Rd] nls profile with port/constraints

2006-01-17 Thread Ben Bolker
Sorry to report further difficulties with nls and profiling and constraints ... the problem this time (which I didn't check for in my last round of testing) is that the nls profiler doesn't seem to respect constraints that have been set when using the port algorithm. See test code below ...

[Rd] nls: constraints (lower/upper) (PR#8401)

2005-12-16 Thread bolker
I found what seems to be a glaring bug in nls when using constraints, but it is so glaring that I'm a bit nervous about having been stupid. I have (1) tried to make sure I'm up to date: platform i486-pc-linux-gnu arch i486 os linux-gnu system i486, linux-gnu status major2 min

[Rd] nls and weigthing the fit

2005-11-23 Thread Joerg van den Hoff
hi everybody, which each release I hope that the section "weights: an optional numeric vector of (fixed) weights. When present, the objective function is weighted least squares. _not yet implemented_" in the help page of 'nls' is missing the last sentence. are their any p

Re: [Rd] nls fails to return correlation matrix (PR#8127)

2005-09-09 Thread Peter Dalgaard
[EMAIL PROTECTED] writes: > Full_Name: Carsten Urbach > Version: 2.1.1 (2005-06-20) > OS: Linux > Submission from: (NULL) (141.34.5.241) > > > I observed one case where nls failed to return the correlation matrix, while > the > parameter estimates were computed correctly. In the follwing I inc

[Rd] nls fails to return correlation matrix (PR#8127)

2005-09-09 Thread Carsten . Urbach
Full_Name: Carsten Urbach Version: 2.1.1 (2005-06-20) OS: Linux Submission from: (NULL) (141.34.5.241) I observed one case where nls failed to return the correlation matrix, while the parameter estimates were computed correctly. In the follwing I include all the commands leading to this problem.