Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Inequality constraints in single and multi-equation models


From   "Michael Blasnik" <[email protected]>
To   <[email protected]>
Subject   Re: st: Inequality constraints in single and multi-equation models
Date   Sat, 24 Dec 2005 09:15:14 -0500

Actually, this advice is incorrect. Stata only allows equality constraints. A quick look at -help constraint- or a google of "Stata inequality constraints" would have led either poster to that answer.

Michael Blasnik
[email protected]

----- Original Message ----- From: "Rose Medeiros" <[email protected]>
To: <[email protected]>
Sent: Saturday, December 24, 2005 8:57 AM
Subject: Re: st: Inequality constraints in single and multi-equation models



Michael.
In general, Stata does not accept the form "0 < lnpl < 1" I believe you are getting the error message "0 not found" because Stata does not expect a numeric value in that position. Instead you probably want something of the form:
define constraint 7 lnpl < 0 & lnpl < 1
or
define constraint 7 lnpl < 0
define constraint 8 lnpl < 1
HTH,
Rose
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index