With this data frame:
DB <- data.frame(T = c(8, 16, 25, 25, 29, 29, 35),
Teq = c(0, 0.29, 0.63, 0.63, 0.77, 0.77, 1),
Rate = c(0, 0.27, 0.69, 0.75, 1, 0.97, 0))
By running this code:
#nonlinearregression
> M4 <- nls(Rate~(a*Teq^b*(1-Teq))^c, data = Avg_speciesless, start = list(a = 50, b = 10, c = 0.2), algorithm = "port")
This is the error I get
Error in numericDeriv(form[[3L]], names(ind), env, dir = -1 + 2 * (internalPars < :
Missing value or an infinity produced when evaluating the model
How to solve?
Thanks
Marta