| ![]() |
From | Ed Blackburne <blackburne@shsu.edu> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: nonlinear regression with restrictions |
Date | Wed, 06 Dec 2006 10:56:26 -0600 |
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/
* * 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–2025 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |