I am trying to run a regression using sureg, and I have defined my constraints such that the program is flexible to changes in the variables I wish to use and there are no constraints that I do not want to use in the regression command. Along the lines of making the program flexible, I would like to be able to call all constraints in the sureg line, so that I do not need to update this line if the number of constraints I have changes. To clarify, my code currently looks like this:
but I would like to be able to do something like this:
.
Obviously, this second version is not actually working, I only include it to give an example that illustrates what I am hoping to do. Thanks for the help!
Code:
sureg wbrand1 wbrand2 wbrand3 wbrand4 = lnxp p* , constraints(1-45)
Code:
sureg wbrand1 wbrand2 wbrand3 wbrand4 = lnxp p* , constraints(all)
Obviously, this second version is not actually working, I only include it to give an example that illustrates what I am hoping to do. Thanks for the help!