楼主: iphone9
3924 2

[问答] 请教关于多元线性回归的回归系数的线性假设检验问题 [推广有奖]

  • 0关注
  • 0粉丝

初中生

57%

还不是VIP/贵宾

-

威望
0
论坛币
2 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
92 点
帖子
10
精华
0
在线时间
8 小时
注册时间
2014-8-6
最后登录
2014-11-14

楼主
iphone9 发表于 2014-8-17 14:18:56 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
比如我要检验多元线性回归模型中的beta_1是否等于beta_2, 那么在R中如何实现呢?
谢谢!
二维码

扫码加我 拉你入群

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

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

关键词:多元线性回归 线性回归 假设检验 回归系数 多元线性回归模型 模型 如何

沙发
楚韵荆风 学生认证  发表于 2014-8-17 21:07:56
You can try it in the following way. First  fit two models: model 1 is y = beta0 + beta1*x1 + beta2*x2,   model 2 is  y = beta0 + beta1 *(x1+x2). Compute the Residual Sum of Squares for model 1 and for model 2, respectively, denoted by RSS1 and RSS2. Then  calculate the statistics  T = (RSS2-RSS1)/(RSS1/(n-3)) that has a F-distribution with parameters  (1, n-3), where n is the number of observations. So you can apply it to test your problem. For more general problem with more than two variables, the above statistics can be used as well just with a need to modify the degrees of freedom of F distribution.

藤椅
iphone9 发表于 2014-8-20 16:13:39
楚韵荆风 发表于 2014-8-17 21:07
You can try it in the following way. First  fit two models: model 1 is y = beta0 + beta1*x1 + beta2* ...
多谢指教!我很好奇的是用SAS可以直接加一句test x1=x2就可以给出检验beta_1是否等于beta_2, 为什么r需要自己编写F检验程序呢

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

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