|
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: Logit with constraints and no constant
From
Richard Williams <[email protected]>
To
[email protected]
Subject
Re: st: Logit with constraints and no constant
Date
Tue, 26 Sep 2006 12:12:21 -0500
At 06:31 AM 9/26/2006, [email protected] wrote:
gologit2 (which you can get from SSC) lets you impose constraints):I want to estimate a logit with constraints and no constant, does anybody
know if this is possible.
Logit does not seem to allow constraints, so I have used mlogit, but when I
include constraints and nocon I get the error : "redundant or inconsistent
constraints".
Is there any practical reason for this?
. sysuse auto
(1978 Automobile Data)
. constraint 1 _cons=0
. constraint 2 price=mpg
. gologit2 foreign price mpg, c(1-2)
Generalized Ordered Logit Estimates Number of obs = 74
Wald chi2(1) = 8.17
Prob > chi2 = 0.0043
Log likelihood = -46.624775 Pseudo R2 = -0.0353
( 1) [Domestic]_cons = 0
( 2) [Domestic]price - [Domestic]mpg = 0
------------------------------------------------------------------------------
foreign | Coef. Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
price | -.0001114 .000039 -2.86 0.004 -.0001877 -.000035
mpg | -.0001114 .000039 -2.86 0.004 -.0001877 -.000035
_cons | (dropped)
------------------------------------------------------------------------------
-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
FAX: (574)288-4373
HOME: (574)289-5227
EMAIL: [email protected]
WWW (personal): http://www.nd.edu/~rwilliam
WWW (department): http://www.nd.edu/~soc
*
* 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–2025 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |