I am trying to constrain several regression coefficients to be non-positive (generally negative). How can I do this with either the nl or constraint commands? I find lots of advice for how to specify non-negative constraints, but not the opposite.
For reference, here is what I have tried so far, which returns an error:
constraint 1 inj1 < 0
cnsreg hrql inj1, constraint(1)
For reference, here is what I have tried so far, which returns an error:
constraint 1 inj1 < 0
cnsreg hrql inj1, constraint(1)
Comment