Stata连享会 主页 || 视频 || 推文 || 知乎 || Bilibili 站
温馨提示: 定期 清理浏览器缓存,可以获得最佳浏览体验。
New!
lianxh
命令发布了:
随时搜索推文、Stata 资源。安装:
. ssc install lianxh
详情参见帮助文件 (有惊喜):
. help lianxh
连享会新命令:cnssc
,ihelp
,rdbalance
,gitee
,installpkg
⛳ Stata 系列推文:
作者:李秋萍 (中国地质大学)
邮箱:liqiuping2017@outlook.com
编者按:本文主要摘译自下文,特此致谢!
Source:Belotti F, Borin A, Mancini M. icio: Economic Analysis with Inter-Country Input-Output Tables in Stata[J]. World Bank Policy Research Working Paper, 2020 (9156). -PDF-
目录
本次介绍 Stata 的一个模块——icio
,用来计算国家和行业参与全球价值链以及相关的增加值贸易的度量。该命令允许直接使用常用的 ICIO 表——世界投入产出数据库 (WIOD)、经合组织 TiVA 数据库 (OECD) 和 Eora 全球供应链数据库,也可以使用任何其他用户提供的 ICIO 表。
该命令在很多方面都很灵活,它允许从不同的视角来解决具体的实证问题,例如追溯生产-需求的关联,评估各国参与全球产业分工的情况,量化国家和部门出口中所包含的增加值,以及评估受宏观经济和贸易政策冲击的潜在风险。
具体来说,icio
包括总量、双边和部门层面的进出口中增加值的度量。对于特定的贸易模式,它将增加值含量的来源国/部门和目的地国/部门分开。此外,对于任何一级的出口流动,icio
计算与全球价值链贸易有关的部分,即至少经过一次跨境的贸易。参与全球价值链的相关计算方法见世界银行《2020年世界发展报告》。
投入产出 (IO) 模型是由 Leontief (1936) 提出的,用来分析经济内部的生产和消费关系。投入产出表显示了每个部门为产生一个给定行业的总产出所必需的投入,以及这些产出如何被用作最终消费 (或投资) 或作为其他产品的中间投入。
ICIO 表是将国家投入产出统计数据与贸易数据结合起来编制的,描述了行业内部和经济体之间的买卖关系以及不同最终需求组成部分 (例如消费、投资和政府支出) 的使用情况。下面介绍 ICIO 模型的基本框架,之后展示如何使用 icio_load
命令加载 ICIO 表。
具有
利用国家间投入产出表,ICIO 衡量了国家和部门的增值贸易和参与全球价值链(GVCs)的情况。它根据增加值的来源地和目的地,对总量、双边和部门层面的进出口进行分解。
*命令安装
cnssc install icio, replace // 安装 icio 命令
使用 icio_load
命令来加载 ICIO 表,基本语法是:
icio_load, [icio_load_options]
其中,options
有:
iciotable(table_name)
:指定用于分析的 ICIO 表,默认是 wiodn
;year(#)
:设置用于分析的年份,默认是最新年份:WIOD 表 (wiodn
) 为 2014 年,TiVA 表为 2015 年,Eora 全球供应链数据库表为 2015 年;info
:显示数据源和可加载的 ICIO 表的版本。. *显示直接可用的 ICIO 表及其发布版本信息
. icio_load, info
+-------------------------------------------+
| table | version | from | to |
|-------+-----------+-----------+-----------|
| wiodn | 2016 | 2000 | 2014 |
| tivan | 2018 | 2005 | 2015 |
| eora | 199.82 | 1990 | 2015 |
| adb | 2021 | 2000 | 2019 |
| wiodo | 2013 | 1995 | 2011 |
| tivao | 2016 | 1995 | 2011 |
+-------------------------------------------+
. *加载特定年份 ICIO 表
. icio_load, iciot(wiodn) year(2014) //加载 WIOD 在 2016 年发布的 2014 年 ICIO 表
. *加载用户提供的 ICIO 表
. icio_load, iciot(user, userp("path_to_the_table_folder") ///
> tablen(ADB_2011.csv) countrylist(adb_countrylist.csv))
icio
命令可以通过指定选项 origin()
得到给定国家或行业 (增加值来源) 产生的 GDP (即增加值),通过指定选项 destination()
来衡量不同国家和部门 (增加值目的地) 的最终需求,或者组合 origin()
和 destination()
。
icio, origin(country code[, sector code]) [standard options] //国内生产总值
icio, destination(country code[, sector code]) [standard options] //最终需求
icio, origin(country code[, sector code]) destination(country code [, sector code])
[standard options] //来源地和最终吸收地的增加值
icio
有助于解决与供应、需求和供求关系有关的实证问题,而不需要考虑国际贸易流动。
. icio, origin(chn) //检索中国 GDP 总量 (以 2014 年 WIOD 数据库为例)
. icio, origin(all) //检索每个国家的 GDP (增加值)
. icio, origin(all,2) //检索每个国家特定部门的 GDP (以第2个部门为例)
. icio, destination(chn) //检索中国最终需求总量
. icio, origin(deu) destination(chn) //检索中国最终吸收的德国 GDP (增加值出口)
. icio, origin(chn) destination(all) //检索被每一个国家吸收的中国增加值
. icio, origin(chn,20) destination(all)
//中国特定行业的增加值的最终吸收地 (第 20 个行业为例)
. icio, origin(all) destination(all) save("supply_demand.xls")
//每个国家的 GDP 如何被吸收 (导出到 .xls 文件中)
.icio, origin(chn) destination(usmca,18) groups(usa, mex, can, "usmca")
//中国满足 USMCA (前北美自由贸易协定) 国家第 18 个部门的最终需求
(1) 中国 GDP 总量
Value-Added by origin/destination:
Origin: CHN
Return: value-added
---------------------------------------------+
| Millions of $ | % of total |
-------------+----------------+--------------|
Value-Added | 10398720.62 | 100.00 |
---------------------------------------------+
(2) 中国最终需求总量
Value-Added by origin/destination:
Destination: CHN
Return: value-added
---------------------------------------------+
| Millions of $ | % of total |
-------------+----------------+--------------|
Value-Added | 9815868.29 | 100.00 |
---------------------------------------------+
(3) 中国最终吸收的德国 GDP
Value-Added by origin/destination:
Origin: DEU
Destination: CHN
Return: value-added
---------------------------------------------+
| Millions of $ | % of total |
-------------+----------------+--------------|
Value-Added | 101042.25 | 100.00 |
---------------------------------------------+
Koopman (2014) 将贸易增加值核算的中的 “重复计算” 定义为:由于跨国生产过程中发生的来回装运而在给定的总贸易流中记录多次的项目。一般来说,根据交易模式的类型和分析的目的,根据将某物归类为 “增值” 或 “重复计算”,必须选择一个特定的核算 “视角”。
考虑以下各种贸易流动:总出口,行业出口,双边出口,部门-双边出口,总进口,部门进口。选项 group()
允许考虑国家总量层面的增加值分解,因此贸易流组合的集合实际上更广泛。
*一国总出口中的增加值和 GVC 成分
icio, exporter(country_code) [methods] [output_exports]
[origin_destination] [standard_options] //总量层面出口中的增加值和 GVC 成分
icio, exporter(country_code[, sector_code]) [methods] [output_exports]
[origin_destination] [standard_options] //部门层面出口中的增加值和 GVC 成分
*双边出口中的增加值和 GVC 成分
icio, exporter(country_code) importer(country_code) [methods] [output_exports]
[origin_destination] [standard_options] //总量层面双边出口中的增加值和 GVC 成分
icio, exporter(country_code[, sector_code]) importer(country_code) [methods] [output_exports]
[origin_destination] [standard_options] //部门层面双边出口中的增加值和 GVC 成分
*一国总进口中的增加值
icio, importer(country_code) [methods] [output_imports] [origin_destination]
[standard_options] //总量层面进口中的增加值
icio, importer(country_code[, sector_code]) [methods] [output_imports] [origin_destination]
[standard_options] //部门层面进口中的增加值
methods
选项:
output
选项:
[output exports]
:默认产出选项是 output(detailed)
,得到贸易流的完全增加值分解;output()
选项指定一个特定的贸易指标:gtrade
-贸易总额,dc
-国内含量,dva
-国内增加值,fc
-国外含量,fva
-国外增加值。. icio_load, iciot(wiodn) year(2014) //以 WIOD 2014 年的表为例
. icio, exporter(chn) //分解中国总出口的构成
. icio, exporter(chn,1) perspective(sectexp) //部门层面出口的分解,以第个 1 行业为例
. icio, exporter(chn,17) importer(usa) //中国第 17 部门出口到美国的增加值分解
. icio, exporter(chn,17) importer(usa) perspective(sectbil)
//部门-双边视角下中国第17部门出口到美国的增加值分解
. icio, exporter(deu) output(dva) //中国的总出口中有多少国内增加值
. icio, exporter(deu) output(fva) //中国总出口中有多少国外增加值
//中国总出口的分解
Decomposition of gross exports:
Perspective: exporter
Exporter: CHN
Importer: total CHN exports
Return: detailed
------------------------------------------------------------------+
| Millions of $ | % of export |
----------------------------------+----------------+--------------|
Gross exports (GEXP) | 2425406.15 | 100.00 |
Domestic content (DC) | 2039474.07 | 84.09 |
Domestic Value-Added (DVA) | 2016712.86 | 83.15 |
VAX -> DVA absorbed abroad | 1957739.47 | 80.72 |
Reflection | 58973.39 | 2.43 |
Domestic double counting | 22761.21 | 0.94 |
Foreign content (FC) | 385932.09 | 15.91 |
Foreign Value-Added (FVA) | 380473.47 | 15.69 |
Foreign double counting | 5458.62 | 0.23 |
----------------------------------+----------------+--------------|
GVC-related trade (GVC) | 781287.59 | 32.21 |
GVC-backward (GVCB) | 408693.30 | 16.85 |
GVC-forward (GVCF) | 372594.29 | 15.36 |
------------------------------------------------------------------+
//中国第 1 个行业出口的分解
Decomposition of gross exports:
Perspective: sectexp
Exporter: CHN
Importer: total CHN exports
Return: detailed
Sector of export: 1
------------------------------------------------------------------+
| Millions of $ | % of export |
----------------------------------+----------------+--------------|
Gross exports (GEXP) | 12529.67 | 100.00 |
Domestic content (DC) | 11892.42 | 94.91 |
Domestic Value-Added (DVA) | 11892.35 | 94.91 |
VAX -> DVA absorbed abroad | 11776.32 | 93.99 |
Reflection | 116.02 | 0.93 |
Domestic double counting | 0.08 | 0.00 |
Foreign content (FC) | 637.24 | 5.09 |
Foreign Value-Added (FVA) | 637.24 | 5.09 |
Foreign double counting | 0.00 | 0.00 |
------------------------------------------------------------------+
省略...
遵循 Hummels 等 (2001) 的观点,即与全球价值链活动相关的贸易应该在生产过程中跨越至少一次边界。Borin 和 Mancini (2015) 提出了一种方法,将传统贸易 (即仅跨越一次边界的贸易) 从总贸易中分离出来,将剩余部分作为与全球价值链相关的贸易。这一全球价值链指标有三个理想的特征:
*一国总出口中的 GVC 成分
icio, exporter(country_code) [output_gvc] [origin_destination] [standard_options]
*总出口中的 GCV 成分
icio, exporter(country_code[, sector_code]) [output_gvc]
[origin_destination] [standard_options] //部门出口中的 GVC 成分
*双边出口中的 GVC 成分
icio, exporter(country_code) importer(country_code) [output_gvc]
[origin_destination] [standard_options] //双边总出口
icio, exporter(country_code[, sector_code]) importer(country_code)
[output_gvc] [origin_destination] [standard_options] //双边部门出口
. icio, exp(chn,4) output(gvc) //中国第 4 部门与 GVC 贸易相关的出口
. icio, exp(chn,9) output(gvcb) //中国第 9 部门基于后向联系的 GVC 出口
. icio, exp(usa,10) output(gvcf) //美国第 10 部门基于前向联系的 GVC 出口
. icio, origin(chn) exporter(usa) output(gvc) //在 GVC 贸易中美国出口中来自中国的部分
// GVC后向联系贸易下中国第 9 部门的出口
Decomposition of gross exports:
Perspective: exporter
Approach: source
Exporter: CHN
Importer: total CHN exports
Return: GVC-backward related trade
Sector of export: 9
----------------------------------------------+
| Millions of $ | % of export |
--------------+----------------+--------------|
GVC backward | 489.83 | 13.01 |
----------------------------------------------+
// 在 GVC 贸易中美国出口中来自中国的份额
Decomposition of gross exports:
Perspective: exporter
Origin: CHN
Exporter: USA
Importer: total USA exports
Return: GVC-related trade
-------------------------------------+
| Millions of $ | % of export |
-----+----------------+--------------|
GVC | 25590.19 | 1.33 |
-------------------------------------+
icio
增加值的来源地和目的地提供总量、双边和部门层面出口和进口的详细分解,并处理了重复计算项。这些分解可用于:
Note:产生如下推文列表的 Stata 命令为:
lianxh SFA DEA TFP 生产, m
安装最新版lianxh
命令:
ssc install lianxh, replace
免费公开课
最新课程-直播课
专题 | 嘉宾 | 直播/回看视频 |
---|---|---|
⭐ 最新专题 | 文本分析、机器学习、效率专题、生存分析等 | |
研究设计 | 连玉君 | 我的特斯拉-实证研究设计,-幻灯片- |
面板模型 | 连玉君 | 动态面板模型,-幻灯片- |
面板模型 | 连玉君 | 直击面板数据模型 [免费公开课,2小时] |
⛳ 课程主页
⛳ 课程主页
关于我们
课程, 直播, 视频, 客服, 模型设定, 研究设计, stata, plus, 绘图, 编程, 面板, 论文重现, 可视化, RDD, DID, PSM, 合成控制法
等
连享会小程序:扫一扫,看推文,看视频……
扫码加入连享会微信群,提问交流更方便
✏ 连享会-常见问题解答:
✨ https://gitee.com/lianxh/Course/wikis
New!
lianxh
和songbl
命令发布了:
随时搜索连享会推文、Stata 资源,安装命令如下:
. ssc install lianxh
使用详情参见帮助文件 (有惊喜):
. help lianxh