Re: [R] SSbiexp

2013-04-23 Thread peter dalgaard
On Apr 23, 2013, at 14:05 , catalin roibu wrote: > Hello all! > I have a problem to use a biexponential regression model: > I use this code: > n3<-nls(proc~SSbiexp(cls,a,b,c,d),data=bline) and this is the error message: > > Error in nls(y ~ cbind(exp(-exp(lrc1) * x), exp(-exp(lrc2) * x)), data =

Re: [R] SSbiexp

2013-04-23 Thread Rui Barradas
Hello, Try the following. fit <- nls(log(proc) ~ k + a*exp(b*cls), data = bline, start = c(k = 1, a = 1, b = 1)) summary(fit) plot(fitted(fit), log(bline$proc)) # Seems nice Hope this helps, Rui Barradas Em 23-04-2013 13:05, catalin roibu escreveu: Hello all! I have a problem to use a b