Re: [R] non-linear plot parameters

2010-09-01 Thread Marlin Keith Cox
> > This is one data set. I have used linear models, but as these data reflect > fish consuming energy during a starvation period, there is a lower > asymptote. I also realize that data is rather scattered and not the > cleanest. I am interested in looking at how fast the animals reach the > asy

Re: [R] non-linear plot parameters

2010-08-31 Thread Marlin Keith Cox
OK, I am thankful and understand what my mistakes were, but now I look at my real data and have tried self starting functions and creating my own functions, resulting in other errors. This is one data set. I have used linear models, but as these data reflect fish consuming energy during a starvat

Re: [R] non-linear plot parameters

2010-08-27 Thread Peter Ehlers
Just a small fix to my solution; inserted below. On 2010-08-27 3:51, Peter Ehlers wrote: On 2010-08-26 15:52, Marlin Keith Cox wrote: I agree. I typically do not use non-linear functions, so am seeing the "art" in describing functions of non-linear plots. One last thing. I tried to use a self-s

Re: [R] non-linear plot parameters

2010-08-27 Thread Peter Ehlers
On 2010-08-26 15:52, Marlin Keith Cox wrote: I agree. I typically do not use non-linear functions, so am seeing the "art" in describing functions of non-linear plots. One last thing. I tried to use a self-starting Weibull function with the posted data and received the following error. model<-

Re: [R] non-linear plot parameters

2010-08-26 Thread Philippe Grosjean
On 26/08/10 19:48, David Winsemius wrote: On Aug 26, 2010, at 1:35 PM, Marlin Keith Cox wrote: I need the parameters estimated for a non-linear equation, an example of the data is below. # rm(list=ls()) I really wish people would add comments to destructive pieces of code. Time<-c( 0, 0,

Re: [R] non-linear plot parameters

2010-08-26 Thread Marlin Keith Cox
I agree. I typically do not use non-linear functions, so am seeing the "art" in describing functions of non-linear plots. One last thing. I tried to use a self-starting Weibull function with the posted data and received the following error. model<-nls(Level~ SSweibull(Time,Asym,Drop,lrc,pwr)) E

Re: [R] non-linear plot parameters

2010-08-26 Thread David Winsemius
On Aug 26, 2010, at 5:20 PM, Marlin Keith Cox wrote: > The background you requested are energetic level (joules) in a group > of starved fish over a time period of 45 days. Weekly, fish (n=5) > were removed killed and measured for energy. This was done at three > temperatures. I am compa

Re: [R] non-linear plot parameters

2010-08-26 Thread Marlin Keith Cox
Thank you. Could you lastly help me with this error. I was trying to use a self starting function (Weibull). model<-nls(Level~ SSweibull(Time,Asym,Drop,lrc,pwr)) Error in qr.default(.swts * attr(rhs, "gradient")) : NA/NaN/Inf in foreign function call (arg 1) On Thu, Aug 26, 2010 at 1:42 PM, D

Re: [R] non-linear plot parameters

2010-08-26 Thread Bert Gunter
My opinions only below; consume at your own risk. On Thu, Aug 26, 2010 at 2:20 PM, Marlin Keith Cox wrote: > The background you requested are energetic level (joules) in a group of > starved fish over a time period of 45 days.  Weekly, fish (n=5) were removed > killed and measured for energy.  Th

Re: [R] non-linear plot parameters

2010-08-26 Thread Marlin Keith Cox
The background you requested are energetic level (joules) in a group of starved fish over a time period of 45 days. Weekly, fish (n=5) were removed killed and measured for energy. This was done at three temperatures. I am comparing the rates at which the fish consume stored body energy at each o

Re: [R] non-linear plot parameters

2010-08-26 Thread David Winsemius
On Aug 26, 2010, at 1:48 PM, David Winsemius wrote: On Aug 26, 2010, at 1:35 PM, Marlin Keith Cox wrote: I need the parameters estimated for a non-linear equation, an example of the data is below. # rm(list=ls())I really wish people would add comments to destructive pieces of code.

Re: [R] non-linear plot parameters

2010-08-26 Thread David Winsemius
On Aug 26, 2010, at 1:35 PM, Marlin Keith Cox wrote: I need the parameters estimated for a non-linear equation, an example of the data is below. # rm(list=ls())I really wish people would add comments to destructive pieces of code. Time<-c( 0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 3, 3, 3, 3,

[R] non-linear plot parameters

2010-08-26 Thread Marlin Keith Cox
I need the parameters estimated for a non-linear equation, an example of the data is below. rm(list=ls()) Time<-c( 0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 8, 8, 8, 8, 8) Level<-c( 100, 110, 90, 95, 87, 60, 65, 61, 55, 57, 40, 41, 50, 47, 44, 44, 42,