楼主: Lyzjq888
4423 3

[学习分享] 面板数据SAS实现(2) [推广有奖]

  • 0关注
  • 0粉丝

硕士生

21%

还不是VIP/贵宾

-

威望
0
论坛币
450 个
通用积分
10.6816
学术水平
0 点
热心指数
2 点
信用等级
0 点
经验
1382 点
帖子
167
精华
0
在线时间
64 小时
注册时间
2009-9-12
最后登录
2023-7-28

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
[html] view plaincopyprint?

  • instrument depvar exogenous = (x4 x5) predetermined = (x6);  

instrument depvar exogenous = (x4 x5) predetermined = (x6);

The Arellano and Bond method is very useful in dealing with autoregressive data. It is important to realize, however, that using too many instruments can produce biased parameter estimates and cause computational difficulties since the weighting matrix becomes very large. In Arellano and Bond’s original paper, only the past values of dependent variable are used as instruments. In theory, any variables that are not correlated with the error can be used. However, you have to make sure that the selected instruments are strong and that the model is not misspecified. Inclusion of unnecessary instruments can be partially prevented with the MAXBAND option. Results of the GMM estimation with x4, x5, and x6 specified as exogenous variables are presented in Table 4.

PANEL PROCEDURE AND SAS
The new PANEL procedure enhances the features that were implemented in the TSCSREG procedure. The new methods added include between estimators, pooled estimators, and dynamic panel estimators using GMM. The CLASS statement creates classification variables that are used in the analysis. The FLATDATA statement allows the data to be in a compress form. The TEST statement includes new options for Wald, Lagrange multiplier, and likelihood ratio tests. Since the presence of heteroscedasticity can result in inefficient and biased estimates of the variance covariance matrix in the OLS framework, several methods producing heteroscedasticity-consistent covariance matrices (HCCME) were added. The new RESTRICT statement specifies linear restrictions on the parameters. The PANEL procedure now produces graphical displays by using ODS Graphics. The new plots include residual, predicted, and actual value plots, Q-Q plots, histograms, and profile plots. The OUTPUT statement enables the user to output data and estimates that can be used in other analysis. It is typically difficult to create lagged variables in the panel setting. If lagged variables are created in a DATA step, several programming steps including loops are often needed. The PANEL procedure makes creating lagged values easy by including the LAG statement. The LAG statement, depending on the lag order, can generate a large number of missing values. The PANEL procedure offers a solution to the loss of potentially useful observations by replacing the missing values with zeros, overall mean, time mean, or cross section mean (LAG, ZLAG, XLAG, SLAG, and CLAG statements).

The following SAS statements are used to create lagged values:

[html] view plaincopyprint?

  • proc panel data=new;  
  •    lag y(1) / out=test;  
  •    id i t;  
  • run;  

proc panel data=new;   lag y(1) / out=test;   id i t;run;


Even though the new PANEL procedure represents a collection of powerful analytical and visual tools, it is important to remember that other procedures available in SAS/ETS and SAS/STAT software can include models that are not implemented in the PANEL procedure. The LOGISTIC procedure offers fixed-effects models with nonnormal errors in panel setting. The NLMIXED procedure offers an implementation of nonlinear fixed- and random-effects models. The GLIMMIX procedure offers the most complete alternative for both fixed- and random-effects models in linear and nonlinear settings. Other procedures offer the same types of models. For example, it is possible to fit a two-way random-effects model by using the MIXED procedure as follows:

[html] view plaincopyprint?

  • proc mixed data=two method=type3;  
  •    class i t;  
  •    model y = x1 x2 x3 /solution;  
  •    random i t;  
  • run;  

proc mixed data=two method=type3;   class i t;   model y = x1 x2 x3 /solution;   random i t;run;

The same model can be estimated using the PANEL procedure as follows:

[html] view plaincopyprint?

  • proc panel data=two;  
  •    model y = x1 x2 x3 / rantwo vcomp = fb;  
  •    id i t;  
  • run;  

proc panel data=two;   model y = x1 x2 x3 / rantwo vcomp = fb;   id i t;run;


Fixed-effects models are typically easy to implement through the use of dummy variables in many SAS procedures. The random-effects models are more complex and require specialized procedures. Methods available in the PANEL procedure along with a list of procedure handling time series cross-sectional data are depicted in Figure 8. New additions that are available only in the PANEL procedure are shown in green.



CONCLUSION
This paper demonstrated the use of the new PANEL procedure in SAS/ETS software. It used simulated data with known parameter values to show advantages and disadvantages of different methods. Graphical displays produced  using ODS Graphics were used to diagnose the fit of different models and correct for data distortion.
It is no surprise that OLS performed relatively poorly, because it ignores the time series cross-sectional nature of data. Using a simulation it was shown that a proper method, including one-way fixed or random effects, can correct for the estimate bias. If heteroscedasticity is present, the PANEL procedure offers several ways to correct for it. If the data are dynamic in nature, the PANEL procedure offers the Arellano and Bond GMM method to regain efficiency. It is important to remember that additional tools not available in the PANEL procedure can be found in other SAS/ETS SAS/STAT procedures. For example, the LOGISTIC procedure offers fixed-effects models with nonnormal errors. Nonlinear models can be estimated using the NLMIXED procedure.

二维码

扫码加我 拉你入群

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

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

关键词:面板数据 fixed-effect Difficulties disadvantage Restrictions matrix instrument important original 面板

沙发
Lyzjq888 发表于 2013-1-16 15:31:07 |只看作者 |坛友微信交流群
希望对大家有用!

使用道具

藤椅
ttnsdcn 发表于 2013-9-8 21:53:56 |只看作者 |坛友微信交流群
真的有用唉!

使用道具

板凳
vivian_2011 企业认证  发表于 2013-9-26 13:37:32 |只看作者 |坛友微信交流群
谢谢分享哈
有一种孤独叫自我

使用道具

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

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-24 00:15