Statalist


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

st: RE: boundary constraints within nl


From   "Verkuilen, Jay" <[email protected]>
To   <[email protected]>
Subject   st: RE: boundary constraints within nl
Date   Fri, 6 Jun 2008 14:00:19 -0400

Marc Keuschnigg wrote:

>>I am estimating non linear least squares models (nl) using equations 
like: nl (y =  ({a}+{b}* x) * (1-x)).
My question is, how do I impose parameter restrictions like a >=0 and b 
 >=0?
I could log-transform the parameters, but I don't know how to do it 
technically within the nl command.<<

This is generally a good strategy to avoid constrained optimization but
just one little warning: You can end up with glacially slow convergence
if the estimate wants to go towards the boundary and in the transformed
metric ends up drifting off towards +/- Infinity. You will want to
monitor each parameter carefully and may need to put in a penalty term
to get things to converge. 


*
*   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