Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道是否有一种方法可以强制所有非截距系数在 proc reg 中为正/负。如果我使用:
model depvar=indvar; RESTRICT indvar<0;
然后我总是遇到语法错误。看起来 Proc reg 只支持方程而不支持不等式?我只是想知道是否有任何方法可以实现这一目标。
直接来自源:我可以对 PROC REG 中的参数应用不等式约束吗?
简而言之:不,但您可以使用 PROC NLIN(非线性回归)和 BOUNDS 语句。