全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1179 4
2013-04-16
模型:y=a0 + a1*x1 + a2*x2 + a3*x3;

用如下回归:

  Proc reg data=ds;
                model y =x1 x2 x3;
Run;
我要计算 a1+1.5*a2, 并且得到这个结果的t值, 或者方差。我就是想计算a1+1.5*a2, 并且看看这个值是不是显著的。请问应该如何来实现?谢谢

二维码

扫码加我 拉你入群

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

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

全部回复
2013-4-17 10:26:02
you may do it through TEST statement, like x1+1.5*x2 =0, etc. it  is a F test for the linear combination of parameters. jingju
二维码

扫码加我 拉你入群

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

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

2013-4-17 12:37:33
jingju11 发表于 2013-4-17 10:26
you may do it through TEST statement, like x1+1.5*x2 =0, etc. it  is a F test for the linear combina ...
好像不可以呀,test satement 只能是如:test x1+x2=0; 我试了你说的那样,报错,说*不被识别。这是怎么回事呢?
二维码

扫码加我 拉你入群

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

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

2013-4-17 23:14:55
really?
I did not realize such an intermediate sas version existing...But anyway, since just a linear model, a transfomration will do the work as well:
The REG Procedure
                                                         Model: model1
                                       Test test1 Results for Dependent Variable Weight
                                                                   Mean
                                   Source             DF         Square    F Value    Pr > F
                                   Numerator           1     1265.91603       9.55    0.0070
                                   Denominator        16      132.50623
\
                                                       The REG Procedure
                                                         Model: model2
                                       Test test2 Results for Dependent Variable Weight
                                                                   Mean
                                   Source             DF         Square    F Value    Pr > F
                                   Numerator           1     1265.91603       9.55    0.0070
                                   Denominator        16      132.50623
复制代码
二维码

扫码加我 拉你入群

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

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

2013-4-23 17:11:17
jingju11 发表于 2013-4-17 23:14
really?
I did not realize such an intermediate sas version existing...But anyway, since just a line ...
嗯, 感谢
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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