我做个一个出口贸易分析,需要计算各个国家2000年-2019年的出口变化。但是很多国家缺失2000年或者2019年的数据,无法做到2019年-2000年,因此要删除缺失部分的值。请问大家有什么好的方法能删除这些数据吗。
- * Example generated by -dataex-. To install: ssc install dataex
- clear
- input int(year period) str6 tradeflow int reportercode str10 reporter str18 partner double netweightkg
- 2019 2019 "Export" 76 "Brazil" "Italy" 2725056115
- 2000 2000 "Export" 76 "Brazil" "Italy" 10532028834
- 2019 2019 "Export" 398 "Kazakhstan" "Russian Federation" 8477781000
- 2019 2019 "Export" 604 "Peru" "China" 15485909500
- 2000 2000 "Export" 604 "Peru" "China" 1461954752
- 2019 2019 "Export" 76 "Brazil" "Malaysia" 28521944000
- 2000 2000 "Export" 76 "Brazil" "Malaysia" 893905167
- end
复制代码