Re: [R] non linear equation

2013-04-10 Thread Blaser Nello
lez Sent: Mittwoch, 10. April 2013 13:35 To: catalin roibu Cc: R mailing list Subject: Re: [R] non linear equation Please do not forget to CC the list to increase your chances of getting help. --JIV On Wed, Apr 10, 2013 at 9:31 PM, catalin roibu wrote: > Hello! > I try to compute t

Re: [R] non linear equation

2013-04-10 Thread Jorge I Velez
Please do not forget to CC the list to increase your chances of getting help. --JIV On Wed, Apr 10, 2013 at 9:31 PM, catalin roibu wrote: > Hello! > I try to compute the double exponential function this code: > f<-function(cls,a,b,c,d)a*exp(cls*b)+c*exp(cls*d) > > n2<-nls(proc~f(cls,a,b,c,d),da

Re: [R] non linear equation

2013-04-10 Thread Jorge I Velez
Dear Catalin, You can look at ?nls. Alternatively, you could also consider a linear model as follows, where "d" is your data: # plot your data with(d, plot(cls, proc, las = 1)) # linear model fit <- lm(proc ~ I(1/cls) + I((1/cls)^2), data = d) summary(fit) # plotting with(d, plot(cls, proc, la

[R] non linear equation

2013-04-10 Thread catalin roibu
Hello all! I have a problem with a double exponential equation. this are my data's> structure(list(proc = c(1870.52067384719, 766.789388745793, 358.701545859122, 237.113777545511, 43.2726259059654, 148.985133316262, 92.6242882655781, 88.4521557193262, 56.6404686159112, 27.0374477259404, 34.334729