开发者

Force all coefficients to be negative in PROC REG

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 e开发者_开发知识库quations and not inequalities? I'm just wondering if there's any way to achieve this.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜