面板数据SAS实现(1)-经管之家官网!

人大经济论坛-经管之家 收藏本站
您当前的位置> 软件培训>>

SAS软件培训

>>

面板数据SAS实现(1)

面板数据SAS实现(1)

发布:Lyzjq888 | 分类:SAS软件培训

关于本站

人大经济论坛-经管之家:分享大学、考研、论文、会计、留学、数据、经济学、金融学、管理学、统计学、博弈论、统计年鉴、行业分析包括等相关资源。
经管之家是国内活跃的在线教育咨询平台!

经管之家新媒体交易平台

提供"微信号、微博、抖音、快手、头条、小红书、百家号、企鹅号、UC号、一点资讯"等虚拟账号交易,真正实现买卖双方的共赢。【请点击这里访问】

提供微信号、微博、抖音、快手、头条、小红书、百家号、企鹅号、UC号、一点资讯等虚拟账号交易,真正实现买卖双方的共赢。【请点击这里访问】

INTRODUCTIONInrecentyears,estimationtechniquesthatusetimeseriescross-sectional(panel)dataapproacheshavebecomewidelyused.ThePANELprocedureinSAS/ETSsoftwarefitsclassesoflinearmodelsthatarisewhentimeseri ...
免费学术公开课,扫码加入


INTRODUCTION
In recent years, estimation techniques that use time series cross-sectional (panel) data approaches have become widely used. The PANEL procedure in SAS/ETS software fits classes of linear models that arise when time series and cross-sectional data are combined. It is capable of fitting the following models:
[html] view plaincopyprint?
  • • one-way and two-way models
  • • random-effects and fixed-effects models
  • • autoregressive and moving average models
  • o Parks method
  • o dynamic panel method (GMM)
  • o Da Silva method

• one-way and two-way models• random-effects and fixed-effects models• autoregressive and moving average models o Parks method o dynamic panel method (GMM) o Da Silva methodThis paper uses simulated data to compare these techniques and outline their advantages and disadvantages. The paper starts with a brief theoretical overview of panel data methods. Several examples are given to demonstrate these techniques and their implementation in the PANEL procedure. The PANEL procedure is then compared with other SAS procedures.
PANEL MODELS
In this paper, the term panel refers to pooled data on time series cross-sectional bases. Typical examples of panel data include observations on households, countries, firms, trade, etc. For example, in the case of survey data on household income, the panel is created by repeatedly surveying the same households in different time periods
(years). The model is typically written in the following form:

http://hi.csdn.net/attachment/201111/7/0_1320656473AHaX.gif

Even though the dynamic nature of the model reflects the real relationship between the independent and dependent variables more accurately, the introduction of the lagged dependent variable can pose a variety of problems. Given the model structure, the dependent variables y(it) and y(it-1) are functions ofμ(i) , and estimation using ordinary least squares (OLS) will result in biased, inefficient, and inconsistent estimates. As discussed by Baltagi (1995), other models specifically designed for panel data also suffer from efficiency issues. This paper uses the PANEL procedure to demonstrate issues that might arise with a model that is dynamic in nature. ODS Graphics plots are used to
demonstrate results from various models.
DATA GENERATING PROCESS
The following AR(1) panel data generating process (DGP) was adopted from Bond, Bowsher, and Windmeijer (2001). One hundred cross sections, each containing six time periods, were generated. The DGP can be described as follows:

http://hi.csdn.net/attachment/201111/7/0_1320656776Zlyw.gif

[html] view plaincopyprint?
  • data two;
  • delta = 0.4;
  • array x[6];
  • do i=1 to 100;/*i从1到100*/
  • e_i = 4*rannor(1234);/*N(O,4)*/
  • mu_i = 36*rannor(32444);/*N(0,36)*/
  • do t=1 to 6;/*t从1到6*/
  • do k = 1 to 6;
  • x[k] = 3+4*(rannor(58785));/*系数β=3*/
  • end;
  • if t = 1 then
  • y = mu_i/(1-delta) + x1 + 5*x2 +10*x3 + e_i;/*β=5*/
  • else do;
  • v_it = 4*rannor(34454);
  • y = delta * y_t1 + mu_i + x1 + 5*x2 +10*x3 + v_it;
  • end;
  • output;
  • y_t1 = y;
  • end;
  • end;
  • run;

data two;delta = 0.4;array x[6];do i=1 to 100;/*i从1到100*/ e_i = 4*rannor(1234);/*N(O,4)*/ mu_i = 36*rannor(32444);/*N(0,36)*/ do t=1 to 6;/*t从1到6*/ do k = 1 to 6; x[k] = 3+4*(rannor(58785));/*系数β=3*/ end; if t = 1 then y = mu_i/(1-delta) + x1 + 5*x2 +10*x3 + e_i;/*β=5*/ else do; v_it = 4*rannor(34454); y = delta * y_t1 + mu_i + x1 + 5*x2 +10*x3 + v_it; end; output; y_t1 = y; end;end;run;
MODEL ESTIMATION
When introduced to a new method, users are likely to compare it with other estimation frameworks and techniques that are available. In this section, the generated data are used and several different models are estimated. We start with a simple OLS model that ignores the time series cross-sectional nature of the data by using the REG procedure.
[html] view plaincopyprint?
  • ods graphics on;
  • proc reg data = two plot(unpackpanel)=all;
  • model y = x1 x2 x3 /noint;
  • run;
  • ods graphics off;

ods graphics on;proc reg data = two plot(unpackpanel)=all;model y = x1 x2 x3 /noint;run;ods graphics off;The model is estimated for three different cross-sectional error specifications, and the new PLOT option is used to obtain fit diagnostics for residuals (Figure 1).

http://hi.csdn.net/attachment/201111/7/0_1320658114RUrD.gifhttp://hi.csdn.net/attachment/201111/7/0_1320658191duUu.gif


Using the following statements, one-way fixed- and random-effects models are estimated using the PANEL procedure for the same three cross-sectional error specifications:

[html] view plaincopyprint?
  • ods graphics on;
  • proc panel data = two plot=all;
  • id i t;
  • model y =x1 x2 x3 /fixone ranone noint;
  • run;
  • ods graphics off;

ods graphics on;proc panel data = two plot=all;id i t;model y =x1 x2 x3 /fixone ranone noint;run;ods graphics off;

The PLOT=ALL option is used to obtain two diagnostic panels to examine the fit of the model. The panels for the oneway random-effects model are presented in Figures 2 and 3. The first panel was created using all 100 cross sections; the second panel depicts only the first 10 cross sections.

http://hi.csdn.net/attachment/201111/7/0_1320671782DX1l.gifhttp://hi.csdn.net/attachment/201111/7/0_1320671793K9u1.gifhttp://hi.csdn.net/attachment/201111/7/0_132067180057K1.gifhttp://hi.csdn.net/attachment/201111/7/0_1320671807CiTG.gif


Since the model specification in Equation (2) includes a lagged dependent variable,One-way to correct for the inefficiencies is by using GMM for panel models developed by Arellano and Bond (1991), as follows :

[html] view plaincopyprint?
  • ods graphics on;
  • proc panel data=two plot(unpackpanel)=all;
  • id i t;
  • instrument depvar exogenous = (x4 x5 x6);
  • model y =x1 x2 x3 /gmm twostep maxband=5 nolevels noint;
  • run;
  • ods graphics off;

ods graphics on;proc panel data=two plot(unpackpanel)=all;id i t;instrument depvar exogenous = (x4 x5 x6);model y =x1 x2 x3 /gmm twostep maxband=5 nolevels noint;run;ods graphics off;

It can be clearly seen from Equation (2) that the dependent variable y is not exogenous, since its values depend on its previous realizations. Arellano and Bond (1991) show that the dependent variable can still be used as one of the instruments if properly lagged. This is accomplished by using the DEPVAR option in the INSTRUMENT statement.
The INSTRUMENT statement can include other variables that are not correlated with the error term. In this model, x4, x5, and x6 are considered to be purely exogenous and uncorrelated with the error. In other models, it is possible that future values of available instruments are correlated with the error term but their past and current realizations are not. The fact that the past and present realizations are not correlated with the error enables us to use them as instruments with the PREDETERMINED option. The following INSTRUMENT statement is used to describe a model with two exogenous and one predetermined variables:


「经管之家」APP:经管人学习、答疑、交友,就上经管之家!
免流量费下载资料----在经管之家app可以下载论坛上的所有资源,并且不额外收取下载高峰期的论坛币。
涵盖所有经管领域的优秀内容----覆盖经济、管理、金融投资、计量统计、数据分析、国贸、财会等专业的学习宝库,各类资料应有尽有。
来自五湖四海的经管达人----已经有上千万的经管人来到这里,你可以找到任何学科方向、有共同话题的朋友。
经管之家(原人大经济论坛),跨越高校的围墙,带你走进经管知识的新世界。
扫描下方二维码下载并注册APP
本文关键词:

本文论坛网址:https://bbs.pinggu.org/thread-2175448-1-1.html

人气文章

1.凡人大经济论坛-经管之家转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
经管之家 人大经济论坛 大学 专业 手机版