Dear All,
When using the new FMM package for stata 15, I get a strange error which I'm not able to identify. I'll copy and paste both my model and the output.
. fmm 2, lcprob(lnYL esc edad edad2 sexo i.pais i.ano): regress lnw esc_bas esc_bas_m esc_ter esc_ter_m edad edad2 sexo i.pais i.ano if
> Obs_Isic>24 & lnYL!=. & pais!=3 & area_ee==1 & clase==2 & inrange(edad,25,60) // As you can see, I have both discrete and continous variables in both the selection and outcome equations.
Fitting class model:
Iteration 0: (class) log likelihood = -82460.947
Iteration 1: (class) log likelihood = -14760.93
Iteration 2: (class) log likelihood = -13874.606
Iteration 3: (class) log likelihood = -12556.455
Iteration 4: (class) log likelihood = -12504.097
Iteration 5: (class) log likelihood = -12504.067
Iteration 6: (class) log likelihood = -12504.067
Fitting outcome model:
Iteration 0: (outcome) log likelihood = -104871.29
Iteration 1: (outcome) log likelihood = -104871.29
Refining starting values:
Iteration 0: (EM) log likelihood = -118325.46
Iteration 1: (EM) log likelihood = -118459.52
Iteration 2: (EM) log likelihood = -118479.1
Iteration 3: (EM) log likelihood = -118507.43
Iteration 4: (EM) log likelihood = -118560.33
Iteration 5: (EM) log likelihood = -118634.26
Iteration 6: (EM) log likelihood = -118723.53
Iteration 7: (EM) log likelihood = -118823.72
Iteration 8: (EM) log likelihood = -118931.97
Iteration 9: (EM) log likelihood = -119046.61
Iteration 10: (EM) log likelihood = -119166.73
Iteration 11: (EM) log likelihood = -119291.91
Iteration 12: (EM) log likelihood = -119422.08
Iteration 13: (EM) log likelihood = -119557.33
Iteration 14: (EM) log likelihood = -119697.91
Iteration 15: (EM) log likelihood = -119844.19
Iteration 16: (EM) log likelihood = -119996.6
Iteration 17: (EM) log likelihood = -120155.66
Iteration 18: (EM) log likelihood = -120321.97
Iteration 19: (EM) log likelihood = -120496.24
Iteration 20: (EM) log likelihood = -120679.27
Note: EM algorithm reached maximum iterations.
Fitting full model:
_gsem_eval_mix__wrk(): 3900 unable to allocate real <tmp>[118966,754]
_gsem_eval_mix(): - function returned error
mopt__calluser_v(): - function returned error
opt__eval_nr_v2(): - function returned error
opt__eval(): - function returned error
opt__looputil_iter0_common(): - function returned error
opt__looputil_iter0_nr(): - function returned error
opt__loop_nr(): - function returned error
_moptimize(): - function returned error
Mopt_maxmin(): - function returned error
<istmt>: - function returned error
I don't know what to do or what I'm doing wrong. Running the same model without the lcprob(z1 z2); that is, without the logit equation, the model runs fine.
I run the same model using the user-made fmm command in Stata 14 and had no problems whatsoever fitting it.
Regards,
Alejandro
When using the new FMM package for stata 15, I get a strange error which I'm not able to identify. I'll copy and paste both my model and the output.
. fmm 2, lcprob(lnYL esc edad edad2 sexo i.pais i.ano): regress lnw esc_bas esc_bas_m esc_ter esc_ter_m edad edad2 sexo i.pais i.ano if
> Obs_Isic>24 & lnYL!=. & pais!=3 & area_ee==1 & clase==2 & inrange(edad,25,60) // As you can see, I have both discrete and continous variables in both the selection and outcome equations.
Fitting class model:
Iteration 0: (class) log likelihood = -82460.947
Iteration 1: (class) log likelihood = -14760.93
Iteration 2: (class) log likelihood = -13874.606
Iteration 3: (class) log likelihood = -12556.455
Iteration 4: (class) log likelihood = -12504.097
Iteration 5: (class) log likelihood = -12504.067
Iteration 6: (class) log likelihood = -12504.067
Fitting outcome model:
Iteration 0: (outcome) log likelihood = -104871.29
Iteration 1: (outcome) log likelihood = -104871.29
Refining starting values:
Iteration 0: (EM) log likelihood = -118325.46
Iteration 1: (EM) log likelihood = -118459.52
Iteration 2: (EM) log likelihood = -118479.1
Iteration 3: (EM) log likelihood = -118507.43
Iteration 4: (EM) log likelihood = -118560.33
Iteration 5: (EM) log likelihood = -118634.26
Iteration 6: (EM) log likelihood = -118723.53
Iteration 7: (EM) log likelihood = -118823.72
Iteration 8: (EM) log likelihood = -118931.97
Iteration 9: (EM) log likelihood = -119046.61
Iteration 10: (EM) log likelihood = -119166.73
Iteration 11: (EM) log likelihood = -119291.91
Iteration 12: (EM) log likelihood = -119422.08
Iteration 13: (EM) log likelihood = -119557.33
Iteration 14: (EM) log likelihood = -119697.91
Iteration 15: (EM) log likelihood = -119844.19
Iteration 16: (EM) log likelihood = -119996.6
Iteration 17: (EM) log likelihood = -120155.66
Iteration 18: (EM) log likelihood = -120321.97
Iteration 19: (EM) log likelihood = -120496.24
Iteration 20: (EM) log likelihood = -120679.27
Note: EM algorithm reached maximum iterations.
Fitting full model:
_gsem_eval_mix__wrk(): 3900 unable to allocate real <tmp>[118966,754]
_gsem_eval_mix(): - function returned error
mopt__calluser_v(): - function returned error
opt__eval_nr_v2(): - function returned error
opt__eval(): - function returned error
opt__looputil_iter0_common(): - function returned error
opt__looputil_iter0_nr(): - function returned error
opt__loop_nr(): - function returned error
_moptimize(): - function returned error
Mopt_maxmin(): - function returned error
<istmt>: - function returned error
I don't know what to do or what I'm doing wrong. Running the same model without the lcprob(z1 z2); that is, without the logit equation, the model runs fine.
I run the same model using the user-made fmm command in Stata 14 and had no problems whatsoever fitting it.
Regards,
Alejandro
Comment