Statalist


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

Re: st: Nested logit with several degenerated nests


From   Brendon Gerding <mutedmuzik@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Nested logit with several degenerated nests
Date   Wed, 29 Jul 2009 16:44:19 +0200

Hi Rod,

I'm afraid I can't help you with your question, but was wondering if
you wouldn't mind explaining to me how to set up a nested logit with 3
nests. Do I need to adjust my data? And then what is the syntax for
setting it up?

Many Thanks
Brendon

On Mon, Jul 27, 2009 at 2:20 PM, <R.Alegria@lse.ac.uk> wrote:
> Hi all,
> I'm trying to estimate a nested logit with six nests, three of them are
> degenerated.
> The code is the following,
>
> constraint 1 [fra_tau]_cons=1
> constraint 2 [aut_tau]_cons=1
> constraint 3 [lux_tau]_cons=1
> nlogit choice l_edu l_gdp || c_code: l_gov || c_reg:, noconstant
> case(id) constraints(3)
> But I'm not sure about the last part of the code: should I type
> constraints (3) or anything different?
> When I run it, I get the message note that those branchs are
> dengenerated and that they are not defined, so I guess my code is wrong.
> Many thanks!
> Rod.
>
>
>
>
> Please access the attached hyperlink for an important electronic communications disclaimer: http://www.lse.ac.uk/collections/secretariat/legal/disclaimer.htm
>
> *
> *   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/
>

*
*   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   |   What's new   |   Site index