I want to do something very simple. I have a regression:

y = b0 + b1*X1 + b2*X2 + b3*X3

and the resulting coefficients must be constrained by:

b1 < b2 < b3

Is there any easy way to implement this in standard Python or R regression packages?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.