I have R code that does various calculations and outputs to a set of countries in the sample, this group of countries are classified as Advanced Economies (AEs). This task revolves around replicating the code utilized for the AEs group calculations to Emerging Market economies (EMs) with some slight tweaks to the calculations seen in section 3. 1 in the code. I am including a PDF with the calculations that are in place now for AEs (Domestic Bonds) and the calculation that needs to be implemented for EMs (Foreign Bonds). There are also some instructions within the code. The successful completion of the task will provide a set of tables and charts for this new group (EMs) in additional to the already present items for AEs.
This task involves development of sections 3.2 and 3.4 in the code. Once again, that is to take the procedure in place for AEs and adapt it for EMs with the inclusion of the mentioned calculation tweak (PDF).
I am looking for someone to perform the mentioned and develop an adaptation for EMs. While this is not a hard task I am seeking someone that can provide detailed comments in the code for me to follow along and learn. Let me know if any questions. I would like to have this completed in 2 days or less.