局部投影local projections代码
- hellohappy
- 网站管理员
- 帖子: 365
- 注册时间: 2018年11月18日, 14:27
- 点赞次数: 1 time
- 被点赞: 10 time
#1 局部投影local projections代码
简介:
这个方法称呼:英文,local projections,中文:局部预测、局部投影法
参考文献:
最早的参考文献来源于AER(美国经济评论)2005的文章Estimation and Inference of Impulse Responses by Local Projections
Jordà Ò. Estimation and inference of impulse responses by local projections[J]. American economic review, 2005, 95(1): 161-182.
参考链接(国内不可访问): https://sites.google.com/site/oscarjord ... rojections
方法优势:
与向量自回归(VAR)方法相比,该方法具有许多优点。首先,局部投影法不像VAR法那样约束脉冲响应函数(IRF)的形状。鉴于各国在发展水平和机构方面存在潜在的异质性,重要的是施加尽可能少的限制。其次,局部投影法是灵活的,因为每个方程中不必使用相同的变量。第三,该方法允许我们使用直接推断来解释残差的跨国相关性。
This method has a number of advantages over the vector autoregression (VAR) approach. First, the local projections method does not constrain the shape of the impulse response function (IRF) in the way the VAR does. Given potential heterogeneity across countries in the level of development and institutions, it is important to impose as few restrictions as possible. Second, the local projections method is flexible, as the same variables do not have to be used in each equation. Third, this method allows us to account for cross-country correlations of residuals using straightforward inference.
STATA代码
注意:
The Economic Journal, 2016, 126(590): 219-255
Journal of the European Economic Association, 2016, 14(1): 45-79
R 代码:
package lpirfs
由 Philipp Adämmer提供的代码:
MATLAB 代码:
Silvia Miranda Agrippino 的 "The Transmission of Monetary Policy Shocks" (货币政策冲击的传输)的 MATLAB 代码(with G. Ricco)。
此处提供典型和贝叶斯局部投影
可在此处查看《评论和经济统计》出版物中的代码
贝叶斯局部投影
Amaze Lusompa 写了一篇关于如何思考贝叶斯局部投影的好论文。
在这里查看他的研究
推论拓展: Mikkel Plagborg-Møller 正在对局部预测进行大量研究。 另外还有 José Luis Montiel Olea 的论文 。 该论文 可在此处获得 Montiel Olea, José Luis, and Mikkel Plagborg-Møller. 2021. “Local Projection Inference is Simpler and More Robust Than You Think.” Econometrica 89 (4): 1789-1823.
文章内容和附录PPT:
开源matlab代码:
https://github.com/jm4474/Lag-augmented ... rojections
参考:
主要参考:
Jordà Ò. Estimation and inference of impulse responses by local projections[J]. American economic review, 2005, 95(1): 161-182.
如何使用IV方法进行识别:
Jordà Ò, Schularick M, Taylor A M. The effects of quasi-random monetary experiments[J]. Journal of Monetary Economics, 2020, 112: 22-40.
这个方法称呼:英文,local projections,中文:局部预测、局部投影法
参考文献:
最早的参考文献来源于AER(美国经济评论)2005的文章Estimation and Inference of Impulse Responses by Local Projections
Jordà Ò. Estimation and inference of impulse responses by local projections[J]. American economic review, 2005, 95(1): 161-182.
参考链接(国内不可访问): https://sites.google.com/site/oscarjord ... rojections
方法优势:
与向量自回归(VAR)方法相比,该方法具有许多优点。首先,局部投影法不像VAR法那样约束脉冲响应函数(IRF)的形状。鉴于各国在发展水平和机构方面存在潜在的异质性,重要的是施加尽可能少的限制。其次,局部投影法是灵活的,因为每个方程中不必使用相同的变量。第三,该方法允许我们使用直接推断来解释残差的跨国相关性。
This method has a number of advantages over the vector autoregression (VAR) approach. First, the local projections method does not constrain the shape of the impulse response function (IRF) in the way the VAR does. Given potential heterogeneity across countries in the level of development and institutions, it is important to impose as few restrictions as possible. Second, the local projections method is flexible, as the same variables do not have to be used in each equation. Third, this method allows us to account for cross-country correlations of residuals using straightforward inference.
STATA代码
- 简单的时间序列示例:
- 面板数据示例:
注意:
一些问题的解决办法
显示
关于LP_example_panel的用例中提到链接失效的问题,应该把链接改成:http://data.macrohistory.net/JST/JSTdatasetR4.dta
或者直接下载这个你再自己解压后 use 本地文件,或者类似安装命令一样安装到本地,sysuse 文件名也行
关于command lp is unrecognized
这个是由于没有这个命令造成的:这个命令我发邮件问了Jordà Ò. ,他说写这个lp.ado的暂时已经离开团队,然后这个ado文件有些bug没有解决所以从网站上撤下来了。然后他其余的代码和作品都是没有问题,涉及到lp的这一部分可以忽略。
或者直接下载这个你再自己解压后 use 本地文件,或者类似安装命令一样安装到本地,sysuse 文件名也行
关于command lp is unrecognized
这个是由于没有这个命令造成的:这个命令我发邮件问了Jordà Ò. ,他说写这个lp.ado的暂时已经离开团队,然后这个ado文件有些bug没有解决所以从网站上撤下来了。然后他其余的代码和作品都是没有问题,涉及到lp的这一部分可以忽略。
- 在 inverse propensity score weighted - regression augmented LPs (加权逆倾向得分-回归增强的LP )中使用:
The Economic Journal, 2016, 126(590): 219-255
- 在 stratified LPs(分层LP )中使用:
Journal of the European Economic Association, 2016, 14(1): 45-79
R 代码:
package lpirfs
由 Philipp Adämmer提供的代码:
MATLAB 代码:
Silvia Miranda Agrippino 的 "The Transmission of Monetary Policy Shocks" (货币政策冲击的传输)的 MATLAB 代码(with G. Ricco)。
此处提供典型和贝叶斯局部投影
其他:
Barnichon 和 Brownlees 的 "Impulse responses by smooth local projections" (平滑局部投影的脉冲响应)的代码(含Matlab和R)可在此处查看《评论和经济统计》出版物中的代码
贝叶斯局部投影
Amaze Lusompa 写了一篇关于如何思考贝叶斯局部投影的好论文。
在这里查看他的研究
推论拓展: Mikkel Plagborg-Møller 正在对局部预测进行大量研究。 另外还有 José Luis Montiel Olea 的论文 。 该论文 可在此处获得 Montiel Olea, José Luis, and Mikkel Plagborg-Møller. 2021. “Local Projection Inference is Simpler and More Robust Than You Think.” Econometrica 89 (4): 1789-1823.
文章内容和附录PPT:
开源matlab代码:
https://github.com/jm4474/Lag-augmented ... rojections
参考:
主要参考:
Jordà Ò. Estimation and inference of impulse responses by local projections[J]. American economic review, 2005, 95(1): 161-182.
如何使用IV方法进行识别:
Jordà Ò, Schularick M, Taylor A M. The effects of quasi-random monetary experiments[J]. Journal of Monetary Economics, 2020, 112: 22-40.
标签:
Link: | |
隐藏链接 |