Statalist The Stata Listserver


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

st: nonlinear regression with restriction


From   Michael Stobernack <[email protected]>
To   [email protected]
Subject   st: nonlinear regression with restriction
Date   Thu, 07 Dec 2006 12:04:41 +0100


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

That is, there is a variable (dk) which depends on a parameter (b) which itself
is still to be estimated.

The background is: I would like to get a linear regression between x=0 and x=b,
but a nonlinear regression for x>b. And I don't know the value of b in advance.
The regression should estimate the value of b.

I would be very glad about any hints how to do this in Stata.

Best regards,

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