有y1,y2...,y100, 和x1,x2,...,x100.
model y=lag(x)
怎么用estimated出来的系数和x100,算出y101_hat??
不甚感谢!!

|
楼主: ch0007in
|
4202
4
[原创博文] 【求助】SAS regression 之后的forecast怎么做 |
|
初中生 47%
-
|
回帖推荐1# ch0007in
有y1,y2...,y100, 和x1,x2,...,x100.
model y=lag(x)
怎么用estimated出来的系数和x100,算出y101_hat??
两种方法:
方法1.
data temp;
set temp;
lx=lag(x);
run;
proc reg data=temp;
model y= lx /p;
output out=result p=yp; /*其中yp就是y的预测值*/
run;quit;
方法2:
如果需要预测的数据保存在另外一个数据集可以采用如下程序:
proc reg data=temp outest=estimation;
model ...
本帖被以下文库推荐
| ||
|
|
| ||
| ||
|
数据的奥秘!!!
|
||
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


