Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 72772

Is there an option to use all defined constraints in a regression?

$
0
0
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:

Code:
 sureg wbrand1 wbrand2 wbrand3 wbrand4  = lnxp p* , constraints(1-45)
but I would like to be able to do something like this:

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!

Viewing all articles
Browse latest Browse all 72772

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>