|
楼主: mimolee007
|
16845
3
[回归分析求助] 求问,如何加入限制条件进行回归分析? |
|
小学生 78%
-
|
回帖推荐看手册上cnsreg的详细例子
[R] cnsreg -- Constrained linear regression
Examples
Setup
. sysuse auto
Constrain coefficients of price and weight to be equal
. constraint 1 price = weight
Fit constrained linear regression
. cnsreg mpg price weight, constraints(1)
Define more constraints
. constraint 2 displ = weight
...
| ||
|
|
| ||
加好友,备注jltj京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


