4
I’m trying to run an analysis "nls", but the following error appears:
"step factor 4.65661e-10 reduced below 'minFactor' of 9.31323e-10"
I am using the following data sets and formula:
n.kill<-c(79,4,86,9,10,49,45,260,10,8,182,16,824,2,11,112)
body<-c(160,1.5,23,40,4.5,4.5,0.8,3,1.2,60,70,0.5,35,30.5,4,47)
df<-data.frame(n.kill, body)
ca=max(df$n.kill)
fun=nls(n.kill~a*(1-exp(-b*body))^c, data=df, start=list(a=ca, b=0.05, c=1),
algorithm='plinear', control=nls.control(maxiter = 10000, minFactor = (1/2)^30))
Okay, Rui. Thank you so much for the corrections.
– Milton de Paula
@Miltondepaula What to do when someone answers to your questions.
– Rui Barradas