全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
7485 4
2013-04-28
proc reg data=p7_15;
model y=x1 x2;
run;
quit;

预测点估计的置信区间,如(X1=10,x2=20),怎么做?

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2013-4-28 15:31:08
First please add the data (X1=10,x2=20) to the end of the data set. It is highly recommended that create a new data set  . 10 20, where . stand for the missing value of y and use "set" command to combine these two data sets.

proc reg data=p7_15;
model y=x1 x2/p cli;  /*p means point forecast and cli means the confidence intervals estimation 95% */
output out=abc p=yhat stdi=sef lcl=lcl ucl=ucl; /* create a new data set called abc, yhat is the predicted point value, sef is the error terms of the forecast, lcl is the upper limit and ucl is the lower limit */
run;
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2013-4-30 23:41:50
wolfsword 发表于 2013-4-28 15:31
First please add the data (X1=10,x2=20) to the end of the data set. It is highly recommended that c ...
还要加个语句估计的时候不要用到加的那个点吧?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2013-5-4 10:53:33
qnsz 发表于 2013-4-30 23:41
还要加个语句估计的时候不要用到加的那个点吧?
When SAS operates the reg procedure, it will ignore the data with missing value automatically.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2013-5-4 12:10:52
学习了
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群