由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - AR(1) and clustering by firms
相关主题
怎么样estimate two-way cluster logistic regression?有包子这种情况应该用什么hypothesis test。
quasi-complete separation of data 怎么处理用什么可以画这个clustering 图? R?
[合集] k-mean clusteringClustered Data能用GEE或Mixed Model吗?
请教一个R:K-means的问题请问哪里有PCA的SAS code 啊
请推荐讨论统计问题的BBS在线等,请教一个SAS关于cluster命令的输出结果问题
correlation clustering用spss, stata, 或 r怎么做very simple question about Cluster data
python里边有没有module可以做到像stata命令那么方便的做回归?请教一个关于clustering的问题
请教一个频率优化问题(相关性?)求教:Cox PH 模型的cluster data处理
相关话题的讨论汇总
话题: firms话题: ar话题: clustering话题: data
进入Statistics版参与讨论
1 (共1页)
s*******e
发帖数: 226
1
panel data of firms over years.
How to use STATA and SAS to program models with errors of AR(1) and
clustering by firms?
l***a
发帖数: 12410
2
to mix multiple firms into a single ar(1) model? is that a good idea?

【在 s*******e 的大作中提到】
: panel data of firms over years.
: How to use STATA and SAS to program models with errors of AR(1) and
: clustering by firms?

s*r
发帖数: 2757
3
proc mixed can estimate different covariance matrices by group
s*******e
发帖数: 226
4
My current program is
proc mixed method=reml empirical noclprint data=beta;
class ID time;
model Y = ID x1 x2 x3/s;
repeated/type=ar(1) subject=ID;
but it does not account for clustering by firms.
Any suggestions?

【在 s*r 的大作中提到】
: proc mixed can estimate different covariance matrices by group
s*r
发帖数: 2757
5
100 wb?

【在 s*******e 的大作中提到】
: My current program is
: proc mixed method=reml empirical noclprint data=beta;
: class ID time;
: model Y = ID x1 x2 x3/s;
: repeated/type=ar(1) subject=ID;
: but it does not account for clustering by firms.
: Any suggestions?

o****o
发帖数: 8077
6
you give me some wb...

【在 s*r 的大作中提到】
: 100 wb?
c**d
发帖数: 104
7


【在 s*******e 的大作中提到】
: panel data of firms over years.
: How to use STATA and SAS to program models with errors of AR(1) and
: clustering by firms?

c**d
发帖数: 104
8
我想楼主第一要把自己想model的问题想清楚。
(1) 比如你这个panel是什么?应该是firms吧。
(2)比如你想compare mean response over time by firms是你关心的问题
(3)你的ID 应该是单个的subject and clustered by firms
proc mixed
class id time firms;
model y = time firms time*firms x1 x2 x3/s;
repeated /type = ar(1) subject = id(firms);
random id(firms); /* random intercept model */
run;
proc mixed method=reml empirical noclprint data=beta;
s*******e
发帖数: 226
9
my panel is of firms over time.
ID is ID of each firm.

【在 c**d 的大作中提到】
: 我想楼主第一要把自己想model的问题想清楚。
: (1) 比如你这个panel是什么?应该是firms吧。
: (2)比如你想compare mean response over time by firms是你关心的问题
: (3)你的ID 应该是单个的subject and clustered by firms
: proc mixed
: class id time firms;
: model y = time firms time*firms x1 x2 x3/s;
: repeated /type = ar(1) subject = id(firms);
: random id(firms); /* random intercept model */
: run;

c******a
发帖数: 725
10
You can remove (part of) the first order serial correlation by first differencing data.
Then you apply the fixed effect model to the differenced data using
clustering errors.
In order to fully remove the serial correlation, you may apply Prais-Winsten estimation (using quasi-differenced data). See Wooldridge (2006), chapter 12 for details.

【在 s*******e 的大作中提到】
: panel data of firms over years.
: How to use STATA and SAS to program models with errors of AR(1) and
: clustering by firms?

s*******e
发帖数: 226
11
It makes sense. Will try. Thank you very much.
Thanks everyone up there for the input. Love this board so much.

differencing data.
Winsten estimation (using quasi-differenced data). See Wooldridge (2006),
chapter 12 for details.

【在 c******a 的大作中提到】
: You can remove (part of) the first order serial correlation by first differencing data.
: Then you apply the fixed effect model to the differenced data using
: clustering errors.
: In order to fully remove the serial correlation, you may apply Prais-Winsten estimation (using quasi-differenced data). See Wooldridge (2006), chapter 12 for details.

1 (共1页)
进入Statistics版参与讨论
相关主题
求教:Cox PH 模型的cluster data处理请推荐讨论统计问题的BBS
问一个聚类分析correlation clustering用spss, stata, 或 r怎么做
包子贴请帮忙下一个程序,U Wisconsin的同学请进python里边有没有module可以做到像stata命令那么方便的做回归?
关于一个预测问题请教一个频率优化问题(相关性?)
怎么样estimate two-way cluster logistic regression?有包子这种情况应该用什么hypothesis test。
quasi-complete separation of data 怎么处理用什么可以画这个clustering 图? R?
[合集] k-mean clusteringClustered Data能用GEE或Mixed Model吗?
请教一个R:K-means的问题请问哪里有PCA的SAS code 啊
相关话题的讨论汇总
话题: firms话题: ar话题: clustering话题: data