Hi,
I am implementing some MLE using moptimize, but cannot get the "lf1" evaluator method to work ("d0" and "d1" work for this problem, but I need to use SVY).
When debugging I noticed that there are numerous calls with todo=2 towards the end of the evaluation, before it stops and returns some nonsensical parameter estimates.
According to the documentation, todo = 0 or 1 for "lf1", so I do not understand what is going on. This happens both in Stata 12.1 and 13.
Thanks for any hints.
Richard
...
moptimize_init_evaluator(M, &TransMLE_lfx())
moptimize_init_evaluatortype(M, "lf1")
function TransMLE_lfx(transmorphic M, real scalar todo, real rowvector lnf, s, H) {
// here todo evaluates to 2 the last few calls during execution
}
I am implementing some MLE using moptimize, but cannot get the "lf1" evaluator method to work ("d0" and "d1" work for this problem, but I need to use SVY).
When debugging I noticed that there are numerous calls with todo=2 towards the end of the evaluation, before it stops and returns some nonsensical parameter estimates.
According to the documentation, todo = 0 or 1 for "lf1", so I do not understand what is going on. This happens both in Stata 12.1 and 13.
Thanks for any hints.
Richard
...
moptimize_init_evaluator(M, &TransMLE_lfx())
moptimize_init_evaluatortype(M, "lf1")
function TransMLE_lfx(transmorphic M, real scalar todo, real rowvector lnf, s, H) {
// here todo evaluates to 2 the last few calls during execution
}
Comment