1

I'm wondering if there's a way to force all non-intercept coefficients to be positive/negative in proc reg. If I use:

model depvar=indvar;
RESTRICT indvar<0;

Then I always get a syntax error. Looks like Proc reg only supports equations and not inequalities? I'm just wondering if there's any way to achieve this.

Andrew Grimm
  • 78,473
  • 57
  • 200
  • 338
johnv
  • 99
  • 1
  • 2
  • 7

1 Answers1

1

Direct from the source: Can I apply an inequality constraint to the parameters in PROC REG?

In short: no, but you can with PROC NLIN (nonlinear regression) with the BOUNDS statement.

Matt Parker
  • 26,709
  • 7
  • 54
  • 72