楼主: edwardzxf
1214 4

Computing using the coefficients estimated [推广有奖]

  • 0关注
  • 2粉丝

已卖:32份资源

讲师

26%

还不是VIP/贵宾

-

威望
0
论坛币
222 个
通用积分
0.4203
学术水平
0 点
热心指数
2 点
信用等级
0 点
经验
3991 点
帖子
242
精华
0
在线时间
375 小时
注册时间
2010-7-30
最后登录
2021-5-25

楼主
edwardzxf 学生认证  发表于 2013-4-16 23:59:12 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
模型: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, 并且看看这个值是不是显著的。请问应该如何来实现?谢谢

二维码

扫码加我 拉你入群

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

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

关键词:coefficients coefficient estimated computing EFFICIENT 模型 如何

沙发
jingju11 发表于 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

藤椅
edwardzxf 学生认证  发表于 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; 我试了你说的那样,报错,说*不被识别。这是怎么回事呢?

板凳
jingju11 发表于 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
  1. data t;
  2.         set sashelp.class;
  3.         t_height = height/1.5;
  4. run;
  5. proc reg data =t;
  6.         var weight age height t_height;
  7.         model1: model weight =age height;
  8.         test1_: test age+1.5*height =0;
  9.         run;
  10.         /*        since your SAS works in this type*/
  11.         model2: model weight =age t_height;
  12.         test2_: test age+t_height =0;
  13.         run;
  14. quit;
复制代码

报纸
edwardzxf 学生认证  发表于 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 ...
嗯, 感谢

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-1 10:50