why optim() gives me the initial values when I supply analytical gradient?

前端 未结 0 1256
旧巷少年郎
旧巷少年郎 2021-01-31 11:44

I wrote a function to solve a maximum likelihood optimization using optim in R:

dt<-structure(list(FARM = c(1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 
3, 3, 3, 3         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题