同步操作将从 连享会/Technological-Innovation-Resource-Allocation-and-Growth-Replication-Kit 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
原仓库地址:https://github.com/KPSS2017/Technological-Innovation-Resource-Allocation-and-Growth-Replication-Kit
🍎 Note: 数据文件需要到原仓库逐个下载。批量下载整个仓库的方式无法正确下载数据文件。(Update:
2021/7/19 12:38
)
This package provides the replication code for the main results in Kogan, L., Papanikolaou, D., Seru, A. and Stoffman, N., 2017. Technological innovation, resource allocation, and growth. Quarterly Journal of Economics, 132(2), pp. 665-712. The paper is available at https://academic.oup.com/qje/article/132/2/665/3076284.
The folder ./Code contains all programs, while the folder ./Data includes all needed input data files.
The folder ./Code includes code files of two types of programs: Stata and Matlab.
In order for the code to run correctly, you need the following packages installed in Stata:
winsorizeJ: Winsorize variables using breakpoints that vary by year. (A winsorizeJ.ado file is provided in the folder ./Code)
cluster2: 2D clustered standard errors. (A cluster2.ado file is provided in the folder ./Code)
ivreg2: IV regression with more features than STATA's ivreg. (Install the package using command "ssc install ivreg2")
reghdfe: Regression with multiple levels of fixed effects. (Install the package using command "ssc install reghdfe")
estout: Output Stata tables in tex format. (Install the package using command "ssc install estout")
FilterReturnsCreateFirmMeasures.do: Creates the firm-level innovation measure using patent and stock return data
PatentValueCites.do: Descriptive statistics for the patent-level measure, including robustness for alternative distributions (Table 1 in the paper and Table A.6 in the Online Appendix); relates the estimated patent values to forward citations (Table 2 in the paper and Table A.7 in the Online Appendix)
CreateFirmSample.do: Creates the data for the firm-level regressions
FirmSummaryStats.do: Descriptive statistics for the firm-level measure (Table 3 in the paper)
FirmProfitsRegressionSM.do: Firm Profits and innovation (Panel a of Table 4 in the paper)
FirmOutputRegressionSM.do: Firm Output and innovation (Panel b of Table 4 in the paper)
FirmReallocationRegressionSM.do: Firm Capital/Labor and innovation (Panels c and d of Table 4 in the paper )
FirmTFPRegressionSM.do: Firm TFP and innovation (Panel e of Table 4 in the paper)
FirmProfitsRegressionCW.do: Firm Profits and innovation using citation-weighted patents (Panel a of Table 5 in the paper)
FirmOutputRegressionCW.do: Firm Output and innovation using citation-weighted patents (Panel b of Table 5 in the paper)
FirmReallocationRegressionCW.do: Firm Capital/Labor and innovation using citation-weighted patents (Panels c and d of Table 5 in the paper)
FirmTFPRegressionCW.do: Firm TFP and innovation using citation-weighted patents (Panel e of Table 5 in the paper)
FirmProfitsRegressionSMCW.do: Firm Profits and innovation using both our measure and citation-weighted patents (Panel a of Table 6 in the paper)
FirmOutputRegressionSMCW.do: Firm Output and innovation using both our measure and citation-weighted patents (Panel b of Table 6 in the paper)
FirmReallocationRegressionSMCW.do: Firm Capital/Labor and innovation using both our measure and citation-weighted patents (Panels c and d of Table 6 in the paper)
FirmTFPRegressionSMCW.do: Firm TFP and innovation using both our measure and citation-weighted patents (Panel e of Table 6 in the paper)
PatentValueScatterPlot.do: Plots the cross-sectional relation between forward patent citations and patent market value (Figure 2 in the paper)
TimeSeriesPlots.do: Produces and plots the aggregate measures of innovation (Figure 4 in the paper)
AggregateOutput.do: Runs the aggregate OLS regressions and VARs that relate our two innovation indices to output and TFP (The regression results for Figure 5 in the paper and Figure A.3 in the Online Appendix)
In order for the code to run correctly, you need to install the following program as well:
plot_OLS_responses.m: Take the output of AggregateOutput.do and creates Figure 5 in the paper
csvimport.m: Define the function called in plot_OLS_responses.m which helps import the .csv files
jbfill.m: Define the function called in plot_OLS_responses.m which helps plot the confidence intervals
There is a minor discrepancy between the value of average acceptance probabilty used in the codes and reported on page 677 (published version of the paper). This minor difference is due to a typo in the published version.
There are some minor discrepancies between the output that the code generates and the results reported in Table 5 (published version of the paper). These minor differences are due to typos in the published version.
There are copyright restrictions and file size limitations in posting daily data from CRSP. Please contact the authors below to obtain the code and data needed to replicate Figures 1 and 3 in the paper that use this data.
Please contact Dimitris Papanikolaou (d-papanikolaou@kellogg.northwestern.edu) or Amit Seru (aseru@stanford.edu) for any questions regarding the codes or data.
Please see the paper for more information on the codes and data. If you use these codes files or data, please CITE this paper as the source.
Stata连享会 主页 || 视频 || 推文 || 知乎 || Bilibili 站
免费公开课:
⛳ 课程主页
⛳ 课程主页
关于我们
⛳
lianxh
命令发布了:
随时搜索连享会推文、Stata 资源,安装命令如下:
. ssc install lianxh
使用详情参见帮助文件 (有惊喜):
. help lianxh
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。