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.
Friday, July 1, 2022
Trade-based Data Cleaning through STATA (Nepal Exports--2020/21)
This blog is a result of something that I recently worked on while exploring Trade data of Nepal (exports) for the year 2017/18 (2074/75 BS) to 2020/21 (2077/78 BS). You can download the data from the data portal available at the Trade and Export Promotion Centre (TEPC) website. For folks who wish to use this data to see the HS Code in 8 digit or 6 digit along with total export amount and Country, this article might be of good use to those who are using STATA to clean the data. Hence, I thought I might as well put it in my blog.
Once you download the data from the trade portal, let’s say for the year 2077/78. Generally it will look somewhat like this:
I will try to put as clear a description as possible and would welcome any suggestion regarding the STATA coding part that can help me do the same code in a much smarter way, if I may say so.
Here it is:
Firstly, it would be better if you would set the directory. In my case I had the following directory:
cd "/Users/Desktop/TEPC"
Then, you will have to import the excel file into STATA.
import excel “destination of the file in your computer”
drop SN
For simplicity, I will change the variable name from “Chapter/Commodity/Country” as just “Commodity” given that we will only keep information related to commodity in this column and keep information related to country in the newly generated column.
gen Country=""
replace Country=Commodity if HSCode==""
replace Commodity="" if HSCode==""
Now, in order to only keep the variable “HS Code” with 8 digit, we will have to generate a new column that drops any other observation in HS Code with anything other than 8 digit which is to say that observation with information related to “Chapters” and “4 digit HS Code” will be dropped leaving just the observation with 8 digit.
gen HS_length=length(HSCode)
replace HSCode="" if HS_length != 8 (!= denotes “not equal to”)
After running the above mentioned command, the data will look something like this in the STATA .dta file,
Now, what we will do is, replace the observation with a blank space in the variable “HS Code” and “Commodity” with whatever information that we have above that blank space. For example, the first observation of Commodity variable is “Butter”. Here, we are going to replace “Butter” in the blank space below “Butter” till another observation with a some information appears which in this case is “Dairy spreads”. Use the same logic with the variable “HS Code”.
We will have to run a loop for this case. Run the command as mentioned below:
Set trace on
forvalues row=1/`=_N' {
replace Commodity =Commodity[_n-1] if HSCode==""
replace HSCode = HSCode[_n-1] if HSCode==""
replace Unit = Unit[_n-1] if Unit==""
}
set trace off
The data will look something like this after you run the above mentioned command;
Now, we need to get rid of total values of observation in order to keep the data with respect to the exports to country. We need to do this to make sure we don’t have double counting of total values as well. We will drop any observation of the Variable “HS_length” with observation “8” and any blank observation of the variable “Country”.
drop if HS_length==8
drop HS_length
drop if Country == ""
Now, we can have the data as per our need with total values of goods exported by Nepal to different countries. The data file should look something like this;
Again, It is up to you if you want to keep units and quantity. Help yourself.For that, we need to replace the same 8 digit HS Code to 6 digit (first 6 numbers). Simultaneously, we need to drop duplicates as the total export value in amounts (Values Rs) will be added multiple times in the same row. Hence it is pertinent to avoid double counting.
replace (HSCode) = substr(HSCode,1,6)
bys HSCode: egen total_75=sum(ValuesRs)
duplicates drop HSCode, force
save "name of the file", replace.
***END***









