楼主: 一眼瞬间
9005 10

[原创博文] 向各位高手请教,proc glm [推广有奖]

  • 0关注
  • 1粉丝

讲师

50%

还不是VIP/贵宾

-

威望
0
论坛币
730 个
通用积分
0.0001
学术水平
0 点
热心指数
4 点
信用等级
0 点
经验
903 点
帖子
376
精华
0
在线时间
309 小时
注册时间
2010-3-14
最后登录
2023-8-19

楼主
一眼瞬间 发表于 2010-10-25 13:32:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
有个firm fixed effect 和time fixed effect,

proc glm data=a;
absorb firm;
class time;
model anti=self pov time;
run;

不知道残差怎么算呢?
想算一个residual包括firm fixed effect,但是不包括time fixed effects
二维码

扫码加我 拉你入群

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

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

关键词:ROC fixed effect Residual effects Effect absorb

沙发
一眼瞬间 发表于 2010-10-25 13:32:23
class firm time;的话 好像说计算量太大。。

藤椅
一眼瞬间 发表于 2010-10-25 14:29:35
木有人能说两句么?

还是我没问清楚?

板凳
jingju11 发表于 2010-10-25 23:46:42
一眼瞬间 发表于 2010-10-25 13:32
有个firm fixed effect 和time fixed effect,

proc glm data=a;
absorb firm;
class time;
model anti=self pov time;
run;

不知道残差怎么算呢?
想算一个residual包括firm fixed effect,但是不包括time fixed effects
Hi,
Is that just for learning or a problem you met in your job? It looks like using fixed effect on longitudinal data (time). Unfortunately, when using ABSORB statement, you are not able to get the predicted values or residuals because the firm was conditioned out in the model, i.e., excluding from the design matrix. It should be similar (or equal) to regression on centered response and predictors on time. However, I do not know how to do it,
JingJu

报纸
一眼瞬间 发表于 2010-10-26 01:56:40
It's a problem I met in the job.

Yes, time is dummy, firm fixed effects.

Thanks!

我再研究研究。

地板
一眼瞬间 发表于 2010-10-26 03:08:15
那fixed effect,如果都是用class的话,怎样才能得到所有的这个effect的参数呢?

其实目的就是要算模型残差+这个effect的值。

这样问可能更清楚些吧

7
jingju11 发表于 2010-10-26 04:09:37
一眼瞬间 发表于 2010-10-26 03:08
那fixed effect,如果都是用class的话,怎样才能得到所有的这个effect的参数呢?

其实目的就是要算模型残差+这个effect的值。

这样问可能更清楚些吧
Hi,


I am not sure what exactly you are struggling on.


Model …/solution;

Is it that what you are looking for? JingJu

8
一眼瞬间 发表于 2010-10-26 04:19:40
Hello jingju 大师,
就是如果用一个包含了firm fixed effect和year dummy的model的话,用glm,我们是可以用sas得到一列residuals,
Y=xb+ai+vi+u;
ai是firm fixed effect, vi是year fixed effect,我们用sas生成的残差uhat,应该是y-xb-ai-vi吧?
但是我想要的是y-xb-vi,(就是把ai也放到残差里面)

怎么才能得到y-xb-vi呢?

哎,发现还是公式有发言权,语言好像确实说不清楚。

谢谢了:)

9
一眼瞬间 发表于 2010-10-26 04:25:26
还是说如果用了absorb,ait(firm fixed effect)已经被纳入残差里面了?

notes:
一共有两种编程方法
1. absorb firm; class year;
2. class firm year;

10
jingju11 发表于 2010-10-26 04:49:13
一眼瞬间 发表于 2010-10-26 04:25
还是说如果用了absorb,ait(firm fixed effect)已经被纳入残差里面了?

notes:
一共有两种编程方法
1. absorb firm; class year;
2. class firm year;
I don’t use absorb. As my understanding, it is nothing but a quick computational technique. That is, you are supposed to have same coefficients for fixed effects and model information. However, since absorb factor is not playing a role on design matrix, many results are not given in the model, such as residuals. So the two models above have no difference.
I don’t know if the residual is additive. But I do believe type I ss is additive.

JingJu

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

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