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

前端 未结 1 1300
旧时难觅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)
提交回复
热议问题