Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Re: Logit with constraints and no constant


From   Ulrich Kohler <kohler@wz-berlin.de>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Re: Logit with constraints and no constant
Date   Tue, 26 Sep 2006 16:45:17 +0200

Rodrigo A. Alfaro wrote:
> Also, I could not add constraint to -mlogit-. The following
> is the result using auto dataset:
>
>  sysuse auto
> (1978 Automobile Data)
>
>  constraint define 1 _cons = 0
>
>  mlogit  foreign mpg weight, const(1)

There is a constant in each equation. You need to tell Stata, which of the 
constants you want to constrain. Here are just two examples:

. constraint 1 [1]_cons = 0
. mlogit rep78 mpg, const(1)

. constraint 2 [Foreign]_cons = 0
. mlogit for mpg, const(2)

(the second example gives the error message -redundant or inconsistent 
constraints-, but that was not the question here.)

-help constraint- provides other examples.


Uli
-- 
kohler@wz-berlin.de
+49 (030) 25491-361
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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