Hello everyone,
I have tried to adjust the non linear Richards growth model with this script:
richards <- function(x,beta1,beta2,beta3,beta4)
beta1*(1-beta2*exp(-x*beta3))^beta4
richards <-
deriv(~beta1*(1-beta2*exp(-x*beta3))^beta4,c("beta1","beta2","beta3","beta4"),function(x,beta1,beta2,beta3,beta4){})
FF.richards <-
nls(Peso~richards(Idade,beta1,beta2,beta3,beta4),data=femeas,start=c(beta1=370,beta2=9.7,beta3=272,beta4=0.00003))
but I receive the follow error:
Erro em qr.default(.swts * attr(rhs, "gradient")) :
NA/NaN/Inf em chamada de função externa (argumento 1)
Além disso: Mensagens de aviso perdidas:
In log(.expr5) : NaNs produzidos
What can I do to fix it?
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.