楼主: sharlagao
6057 4

[其他] 分年回归如何提取每年的R2 和adjust R2? [推广有奖]

  • 0关注
  • 0粉丝

高中生

75%

还不是VIP/贵宾

-

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

楼主
sharlagao 发表于 2011-6-20 19:49:03 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
请问如果分年回归,需要报告每年的回归系数、t值、p值及R2。用这个命令:statsby _b _se,by(year): reg income workertype, 如何添加报告p值及R2?谢谢!
二维码

扫码加我 拉你入群

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

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

关键词:adjust just 如何提取 statsby worker adjust income 如何

沙发
h3327156 发表于 2011-6-20 20:28:34
帮助文件里已经说了!
所以请您详读:
exp_list specifies the statistics to be collected from the execution of command.  The expressions in
    exp_list follow the grammar given in exp_list.  If no expressions are given, exp_list assumes a default
    depending upon whether command changes results in e() and r().  If command changes results in e(), the
    default is _b.  If command changes results in r() (but not e()), the default is all the scalars posted to
    r().  It is an error not to specify an expression in exp_list otherwise.

结论
statsby _b _se e(r2),by(year): reg income workertype

至于p值,我也不太清处,请高手们补充!
不过您应该可以自行算出。
已有 2 人评分经验 学术水平 热心指数 信用等级 收起 理由
h894510055 + 1 + 1 + 1 好的意见建议
liuzhenzhu + 10 + 2 热心帮助其他会员

总评分: 经验 + 10  学术水平 + 1  热心指数 + 3  信用等级 + 1   查看全部评分

藤椅
sharlagao 发表于 2011-6-20 21:43:24
h3327156 ,谢谢!

板凳
sungmoo 发表于 2011-6-21 06:25:34
sharlagao 发表于 2011-6-20 19:49 请问如果分年回归,需要报告每年的回归系数、t值、p值及R2。用这个命令:statsby _b _se,by(year): reg income workertype, 如何添加报告p值及R2?
*仅楼主的例子:

statsby _b tb=_b[workertype]/_se[workertype]  tc=_b[_con]/_se[_con]    ///
  pb=(2*ttail(e(N)-e(df_m)-1, abs(_b[workertype]/_se[workertype])))         ///
  pc=(2*ttail(e(N)-e(df_m)-1, abs(_b[_con]/_se[_con]))) e(r2) e(r2_a), by(year): reg income workertype
已有 1 人评分经验 学术水平 热心指数 收起 理由
liuzhenzhu + 10 + 1 + 2 热心帮助其他会员

总评分: 经验 + 10  学术水平 + 1  热心指数 + 2   查看全部评分

报纸
sharlagao 发表于 2011-6-21 20:23:31
谢谢sungmoo!

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-26 18:18