pvar2014
所属分类:其他
开发工具:C++
文件大小:16KB
下载次数:17
上传日期:2017-09-27 10:50:50
上 传 者:
小磊1373
说明: 进行 面板数据VAR分析,连玉君老师论文中用到的,stata 代码
(The VAR analysis of panel data, and the stata code used in the thesis of the teacher)
文件列表:
pvarstable.ado (3937, 2014-07-17)
pvarstable.sthlp (2540, 2014-07-02)
pvar2.ado (7692, 2014-04-08)
pvar2.sthlp (7650, 2014-07-02)
pvargranger.ado (2438, 2014-04-11)
pvargranger.sthlp (1437, 2014-07-02)
pvarirf.ado (7742, 2014-04-11)
pvarirf.sthlp (2775, 2014-07-02)
pvarsoc.ado (3070, 2014-04-01)
pvarsoc.sthlp (3464, 2014-07-02)
/* NOTE
This example uses follows that in the official Stata suite of time-series VAR packages
estimated using the beta panel VAR suite.
*/
webuse lutkepohl2, clear
gen id = 1
xtset id qtr
global var dln_inv dln_inc dln_consump
* Lag-order selection
varsoc $var
pvarsoc $var
* VAR estimation
var $var
estimates store estvar
pvar2 $var, fod lags(2)
estimates store estpvar
estimates table estvar estpvar, se
* VAR stability
estimates restore estvar
varstable, graph
estimates restore estpvar
pvarstable, graph
* Granger-causality
vargranger, est(estvar)
pvargranger, est(estpvar)
* IRF estimation
estimates restore estvar
tempname irfv irfvset
irf create `irfv', step(10) set(`irfvset', replace)
irf graph oirf, byopts(yrescale)
pvarirf, oirf porder($var) iter(100) dots step(10)
近期下载者:
相关文件:
收藏者: