我使用nlogit5运行如下命令时
SAMPLE ; All $
SETPANEL ; Group = id ; Pds = ti $
ORDERED ; Lhs = hsat
; Rhs = one,hhninc,hhkids,educ ; Partial Effects $
总是提示如下错误信息:
Error 805: Initial iterations cannot improve function.Status=3
在网上找到如下解决方法:
If you get a warning message of “Error: 806: Line search does not improve fn. Exit iterations. Status=3” or “Error: 805: Initial iterations cannot improve function. Status=3”, you may change the optimization algorithm or increase the maximum number of iterations (e.g., Maxit=1000$).
于是把命令改为:
SAMPLE ; All $
SETPANEL ; Group = id ; Pds = ti $
ORDERED ; Lhs = hsat
; Rhs = one,hhninc,hhkids,educ ; Partial Effects ; Maxit = 1000 $
但依然提示上述错误。请高手们给个解决的办法吧。谢谢!数据文件见附件!