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:09:32 -0500

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

Where you should plot the data and substitute initial values for a1, a2, and b. See the "nl" documentationn for options and robust standard errors.


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