Re: [R] Negative exponential fit

2011-11-29 Thread rch4
Thank you for your suggestions. We are currently working with an the nls function, but are having trouble getting a curve that fits our data. We have tried using the following formula: mod1 = nls(time~a*exp(b*(date)), start=list(a=4.178,b=-1.18)) av=mdate bv=predict(mod1,list(mdate=av)) length(av)

[R] Negative exponential fit

2011-11-28 Thread rch4
We need help We are doing a project for a statistical class in and we are looking at world record times in different running events over time. We are trying to fit the data with a negative exponential but we just cant seem to get a function that works properly. we have on our x-axis the date