R- Optimx for exponential function with 2 parameters - cannot evaluate function at initial parameter values

前端 未结 1 1298
旧时难觅i
旧时难觅i 2020-12-20 23:06

I feel like I missed something very obvious but after an hour of fiddling/googling I cannot get this to work. Code:

#Generate data from exponential model

xd         


        
相关标签:
1条回答
  • 2020-12-20 23:53

    Try

    optimx(params, function(x) firstorder(x[1], x[2]))
    
    0 讨论(0)
提交回复
热议问题