Re: [R] using nls to fit a curve to data

2008-09-07 Thread jpl
Thanks Ben! Switching over to the gamma pdf and using the algorithm="plinear" did the trick. jpl -- View this message in context: http://www.nabble.com/using-nls-to-fit-a-curve-to-data-tp19332210p19360761.html Sent from the R help mailing list archive at Nabble.com. _

Re: [R] using nls to fit a curve to data

2008-09-06 Thread Ben Bolker
jpl math.unl.edu> writes: > > > Hi, > > I am trying to fit a curve to data. My command line is: > > model10=nls(offspring~((A*c^k)/gamma(k))* ((degdays-alpha)^(k-1))*exp(-c*(degdays-alpha)), > start=list(A=30,k=2,c=.018,alpha=131)) > try trace=TRUE to see where the function is try

[R] using nls to fit a curve to data

2008-09-05 Thread jpl
Hi, I am trying to fit a curve to data. My command line is: model10=nls(offspring~((A*c^k)/gamma(k))*((degdays-alpha)^(k-1))*exp(-c*(degdays-alpha)), start=list(A=30,k=2,c=.018,alpha=131)) I get the error message: Error in numericDeriv(form[[3]], names(ind), env) : Missing val