Re: [R] Help specifying a non-linear model in nlsLM()

2014-12-17 Thread Prof J C Nash (U30A)
ustment to the Jacobian to avoid singularity. JN On 14-12-17 06:00 AM, r-help-requ...@r-project.org wrote: Message: 9 Date: Tue, 16 Dec 2014 08:24:45 -0800 From: Bert Gunter To: Chandrasekhar Rudrappa Cc: "r-help@r-project.org" Subject: Re: [R] Help specifying a non-linear model i

Re: [R] Help specifying a non-linear model in nlsLM()

2014-12-16 Thread Bert Gunter
Suitable help may not be possible. I suspect that either your function/code is funky (is the function smooth, non-infinite near your starting value?) or you are overparameterized. If the latter, the remedy may depend on the nature of your data, which you have not shared. While you may receive some

[R] Help specifying a non-linear model in nlsLM()

2014-12-16 Thread Chandrasekhar Rudrappa
Dear All, I am trying to fit the following model in nlsLM(): fn5 <- function(x, T, t1, w_inf, Lt0){ S<-function(x, T, t1){ x+(1-T)/(2*pi)*sin(2*pi*(x-t1)/(1-T)) } F <- function(x, T, t1){ t2 <- t1 + (1-T)/2 t3 <- t1 + (1+T)/2 t.factorial <- x%%1 floor(x)*(1-T) + S(t.factorial, T, t1)*(0<=t.factor