Ranjan Sapkota's Blog
Sunday, April 2, 2023
Dabbling with Trade Data from Customs: Changing Cumulative values to Monthly trade values using STATA
Sunday, December 18, 2022
Navigating the 8-digit HS Code into universal 6-digit HS Code Classification: Its process using STATA
The uniform Harmonized system (HS) code used across the world is defined by the 6-digit HS Code. However, many countries use the 8-digit HS Code as well. South Asian countries like Nepal, India, Pakistan and Bangladesh among others also use the 8-digit HS Code parameter. Hence, while playing around with the data concerning the international trade categorized in 6-digit code might create confusion and data discrepancy, if the logics behind 6 and 8-digit codes are mismatched. This article is a result of an effort to refrain from making that mistake.
The overarching idea is that the first two digit of the 8-digit HS Code denotes “chapter”, first four digit denotes “sub-chapter” and the final 8 digit is the code for the product. For example, 02023000 is the HS Code for “Meat of bovine animals, frozen, boneless”. The first two digit (02) of this product is identified under the chapter as “Meat and edible meat offal” and the first four digit (0202) is identified under the sub-chapter as “Meat of bovine animals, frozen”.
Now, in order to classify the products with the universal 6 digit HS Code, first, we need to distinguish the 8 digit code into 6 digit code. Then, we need to merge it with the uniform nomenclatures used across the world while trading.
Here is the process;
As usual, like in the previous blog articles, I have used the data from Nepal’s Trade and Export Promotion Centre (TEPC) data portal, for the year 2020-21 (2077-78) as a reference for this article.
Firstly, we need to download the data from the TEPC portal. My last article shows halfway work to what we are going to explore in this blog. Hence, I request you to follow my last article. Especially, check the final STATA command as it is pertinent to make sure that you don’t do double counting. After you run the code mentioned in the earlier article, you should get the data as such;
Secondly: with the world wide used HS Code (6-digit)
The uniform nomenclatures classification can be found on World Integrated Trade Solution (WITS) data portal. You will have to login to the WITS portal and click on the tab “support materials” and click the “Product Nomenclature and Concordances”. Now, for the latest HS Code classification, on the Nomenclature option, you will have to choose HS2017 and sub-heading (all 6 digit HS Code) on the level option. There are a total of 5388 product classification for 6 digit HS Code. You can download the excel version. The data will look somewhat like this:
Now, we need to merge these two files used above to generate the final version of the trade value in 6 digit HS Code. Here, we need to understand a couple of things. Since, we are trying to see our trade value in universal Harmonise System, we need to delete the variable “Commodity” and “ValuesRs” from the TEPC data. Use the STATA command mentioned below;
drop Commodity
drop ValuesRs
Here, we are dropping the variable "ValueRs" also because the total value in amount for each HS Code is created in other variable named “total_75”. The data should look somewhat like this after you delete Commodity;
Tuesday, September 27, 2022
Is Nepal heading towards a Sri Lanka like crisis? - A comparative Analysis
Friday, July 8, 2022
Category based Export of Nepal (2020-21)- Data management using STATA
Monday, July 4, 2022
Russia-Ukraine War and Global Food Security
Russia and Ukraine rank among the top three exporters of wheat, barley, maize, and sunflower oil among others. Ukraine alone accounts for world’s one-third of barley export. Russia ranks first, second and third in the global export of nitrogen fertilizer, potassic fertilizers and phosphorous fertilizers respectively. Least developed Countries rely heavily on such fertilizers and food supplies from Ukraine and Russia. Many of the LDCs were already having issues with fertilizers shortages and food supply due to the pandemic and now, with the Ukraine-Russia war propelling their production and supply crunch, matters have been much worse for South Asia Countries.
The export-import scenario of wheat across South Asian countries and Ukraine can be a fresh example. Bangladesh imports almost half of its wheat from Ukraine which is termed to be much cheaper import. A significant other chunk is imported from India. However, in reference to the current food shortage, India has implied a ban on wheat export. Given such situation, with both India and Ukraine out of option for wheat import, Bangladesh is forced to obtain wheat from expensive sellers. India’s stance on wheat export ban is heavily criticized by the WTO and many countries citing that such decisions would further worsen the food market, especially in low-income countries. Likewise, Pakistan imports 39% of its wheat from Ukraine and a significant chunk from Russia as well. Pakistan saw a record production of wheat last year, however, that is still termed to be insignificant to meet the demand and the target production for this year. Also, Fertilizer shortages have been a big concern in Pakistan and Nepal lately. In one of the western regions of Nepal, the farmers out of desperation took over the fertilizer trunk on route sent by the government to a respective body. Sri Lanka, on the other hand, is having the worst possible scenario any nation could have. Sri Lanka is basically in a fuel lockdown and its weak foreign currency and depleted reserves have made it the most vulnerable to food shortage.
Not to forget, 60% of the world’s hungry people live in Asia and the people of South Asian countries include a significant chunk of those hungry people.
Besides, the early prediction by the Food and Agriculture Organization (FAO) highlights that the global trade of food products are expected to decrease in 2022-23, especially food products like cereals, wheat and coarse grain among others. Subsequently, due to such shortages and debacles time and again, food prices and inflation in general have touched the roof which has made the situation even worse.
Global Food Price Hike
Ever since the Russia-Ukraine war, the price levels for almost every good has touched the sky. When many countries tend to depend on a few countries for important goods on a daily basis, and when the countries upon which many depend are unable to supply the necessary goods, situation like that of today are bound to happen. However, it is alarming to see such a strong ripple effect. With the shortage of fuels and food products that are largely exported by Ukraine and Russia, many countries are forced to look for limited and expensive alternative options to meet the demand. However, given the extreme shortage, food and fertilizer prices have been higher than ever which is sharply noted in the figure below.
Global Food Price Index (FPI) shows a very unsettling scenario if we look at its inclination since the pandemic. The figure above puts an effort to show pre-COVID, during COVID, pre-war and current status of global food prices. Initially, in 2019 the FDI index was at 95.1 on average. The FPI index floated around 95.1-95.5 during the first wave. With the pandemic tightly grasping the world economy, it’s quite positive to see that the food prices were relatively stable which could be largely due to the higher stocks left. However, as the pandemic moved towards the 2nd wave and that the stocks started to get thinner by the day, the FPI index showed an upward trend. During the 3rd wave between mid-January 2021 to mid-May 2021, it showed a steep incline. By this time in May, the FPI index had already boomed to 128.1. It’s a stark rise considering the fact that FPI saw an increase of 33 points (34 percent rise) since 2019 average.
While pandemic had a huge effect on food price hike, the Russia-Ukraine war made it much worse. Although FPI was floating in an expensive price range during the pre-war period, it is quite evident through the graph that, right when the war kicked-off, the FPI showed a very steep upward incline within one month period. The FPI index rose to 159.7 from 141.1. That is 18.1 points (12.30 percent rise) which is immensely high considering the fact that FPI index rose by 6.2 points from February 2020 (beginning of pandemic) to November 2020 (end of second wave). To put into perspective, FPI index tripled within one month during the start of the war compared to a 9 month rise from the start of pandemic to the end of second wave.
Year | Food Price Index | Meat Price Index | Dairy Price Index | Cereals Price Index | Oils Price Index | Sugar Price Index |
2019 | 95.1 | 100.0 | 102.8 | 96.6 | 83.2 | 78.6 |
2020 | 98.1 | 95.5 | 101.8 | 103.1 | 99.4 | 79.5 |
2021 | 125.7 | 107.7 | 119.1 | 131.2 | 164.9 | 109.3 |
2022 | 150.4 | 117.6 | 141.7 | 159.8 | 221.3 | 116.6 |
Source: FAO
The table above shows a year-on-year FDI index along with the index of five daily food product category from 2019-2022 (till May). FPI saw an increase of 24.7 points from 2021 to 2022 May. From the pre covid period till May 2022, FPI saw an increase of 55.3 points (58.15 percent). Given the dire state of food security currently, the FPI index is likely to rise by the end of 2022. Between 2019-2022 May, Oil Price index jumped 138.1 points which is a 166% rise. Likewise, as mentioned earlier as well, Cereals price is expected to further increase in the future with an already rising state of 28.6 points from 2021-2022 May.
Policy Recommendation
The 12th ministerial Conference held recently on June 12-15 by the World Trade Organization (WTO) has tried to address possible remedies for food insecurity. Restricting countries to impose export ban when traded for commercial humanitarian purpose to the world food programme is a welcome move. However, that can hardly address the current state of dire food security.
One of the most important steps would be to work on reducing heavy trade dependency on just a few countries. Its pertinent to look for alternative measures for those commodities that are massively exported on a daily basis like wheat, cereals, and rice among others. Having a wide array of importing option would immediately reduce vulnerability to exogenous shocks like the current war. Given that the LDCs are largely the ones facing the adverse effects of such shocks mostly due to their relatively low-coping mechanisms to shocks, it’s extremely important for LDCs to learn from current scenario and look for alternate options for future food security.
Likewise, while it is important to take relevant measures to meet the domestic demand, export ban of food products right when the food security is threatened should not be encouraged and avoided by developing and high-food-producing countries. Moreover, WTO and FAO should bring about measures and policies that help prevent such precarious actions.
Initiatives to support the most vulnerable groups is welcome and encouraged. Social incentives and protection programs towards food supply and security should be initiated so that it can help alleviate the effects of war to a certain extent. Importantly, it is even more pertinent to make sure these incentives and social protection programs reach the right audience in a timely manner after the incentives is passed by the relevant body.
Above all, geo-political conflicts by default hampers food security. 2022 Global Report on Food Crisis underlines Conflict/insecurity to be one of the most important drivers of food crisis across all regions in 2021. For example, for all seven food crises in the Middle East, two out of three food crises in South Asia were caused largely due to conflict/insecurity. Disruptions of food production and daily stable living is reported to have driven many acute food crisis across many regions and such disruptions were propelled by conflict/insecurity. It’s pertinent to avoid such geo-political tensions and conflicts of various means that bring peril to regional food security.





