Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Initial values not feasible problem in xtmelogit


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Initial values not feasible problem in xtmelogit
Date   Tue, 26 Apr 2011 23:17:48 +0100

Try a simpler model.

Nick

On Tue, Apr 26, 2011 at 7:42 PM, Maria Estela Rivero Fuentes
<estela.rivero@colmex.mx> wrote:

> I am trying to run some mixed logit models in Stata using xtmelogit, and I am getting the error message that the initial values are not feasible (r (400))
>
> I tried running a simple logit and storing the coefficients in a matrix b, along with some small values for the sigmas, and running the xtmelogit with the from option, but then I get a new error message, saying that an extra parameter was found.
>
> Here's what I've done:
>
> . xi:xtmelogit privada_libertad_madre_si reactiva_liberal_nueva edad_madre_21_30 edad_madre_31 hijos_vivos_1 hijos_vivos_2 hijos_vivos_3 lengua_indig_madre_mod i.edo_marital || id_clues_liberal:reactiva_liberal_nueva
>
> initial values not feasible
> r(1400);
>
> . logit privada_libertad_madre_si reactiva_liberal_nueva edad_madre_21_30 edad_madre_31 hijos_vivos_1 hijos_vivos_2  hijos_vivos_3 lengua_indig_madre_mod i.edo_marital
>
> First I did this:
>
> . mat b=e(b)
>
> . xi:xtmelogit privada_libertad_madre_si reactiva_liberal_nueva edad_madre_21_30 edad_madre_31 hijos_vivos_1 hijos_vivos_2 hijos_vivos_3 lengua_indig_madre_mod i.edo_marital || id_clues_liberal:reactiva_liberal_nueva, from(b)
> i.edo_marital     _Iedo_marit_1-3     (naturally coded; _Iedo_marit_1 omitted)
> extra parameter privada_libertad_madre_si:reactiva_liberal_nueva found
> specify skip option if necessary
> r(111);
>
> Later I tried this other option
>
> . mat b=e(b),.1, .1
>
> . xi:xtmelogit privada_libertad_madre_si reactiva_liberal_nueva edad_madre_21_30 edad_madre_31 hijos_vivos_1 hijos_vivos_2 hijos_vivos_3 lengua_indig_madre_mod i.edo_marital || id_clues_liberal:reactiva_liberal_nueva, from(b)
> i.edo_marital     _Iedo_marit_1-3     (naturally coded; _Iedo_marit_1 omitted)
> extra parameter privada_libertad_madre_si:reactiva_liberal_nueva found
> specify skip option if necessary
> r(111);
>
>
> Does anyone have a suggestion??

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index