Hi everyone, I am trying to fit a gombertz model. I tried the code below and I got an error message. My data is GDP versus motorization rate and has some fluctuations in it.
The video that I have learnt the method and code is https://www.youtube.com/watch?v=0ifT-7K68sk&ab_channel=mathetal.
I am using easynls library. How can I solve this problem? My data has not any missing value. It has 22 values for both GDP and motorization rate. If you could help me, I will be very happy.
model5= nlsfit(MREST, model = 10, start =c(a = 120, b= 45, c=0.1))
Error in numericDeriv(form[[3L]], names(ind), env) :
Missing value or an infinity produced when evaluating the model