Statalist The Stata Listserver


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

Re: st: nonlinear regression with restrictions


From   Steven Samuels <[email protected]>
To   [email protected]
Subject   Re: st: nonlinear regression with restrictions
Date   Wed, 6 Dec 2006 15:11:51 -0500

nl y={a1=?} + {a2=?}*x + (x>{b=?})*{a3=0}*(x-{b})**2

Where you should substitute initial values of a1, a2 and b for the "?" from plots. See the manual on "nl" for options, robust standard errors, and so on.

Steven



Michael Stobernack wrote:
Dear all,

I would like to run the following nonlinear regression:

Y = a1 + a2 * X +a3 * (1 - dk) * (b**2 - 2 * b * x + x**2) + u

with dk = 1 if x <= b  and dk = 0 if x > b
*
*   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