Update: A previous version of the paper with the title "Exchange Rates, Prices and Trade Costs" can be downloaded at
https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3038601
This blog is where I store my thoughts and work-in-progress. Its title is inspired by the fact that my works involve the application of the purchasing power parity to currency and/or Big Mac valuation.
Friday, September 15, 2017
Sunday, August 6, 2017
My slides for Econ 4415
Last week I presented one of my previous slides in the first class of Econ 4415, as part of my teaching assistant work.
This is a considerably (I hope) updated version of the slides I presented last year at the EMERGE conference. The animations should work better here, although they are not as ideal as those shown in an actual PowerPoint session. Hopefully we'll see the improvement of Google slides sometimes soon.
Friday, July 21, 2017
Interactive Trade Flows Chord Diagram (with R)
Chord Diagram is becoming more and more popular in offering an elegant way to capture the complexity of big data, and more so if you can make them "user-driven", i.e. interactive. This post suggests a few tips to do it.
After one full day tinkering with Javascripts I was able to produce a very nice interactive plot using the 2013 East Asian intra-regional export flows data provided by one of my fellow PhD students at UWA (Son Nguyen) and the code in the developing R package "chorddiag". I got great help from Son in publishing this plot also.
Note that different from the one-way diagram in my previous post, here the chords are bi-directional, and their colors match those countries with lower bilateral export values, which are also at the smaller ends of these chords. That is, each chord represents a trade deficit for the colored countries. Not the best arrangement I'd say, since it would feel more natural to have the chord colors matched with countries with larger export (to give more of a "flowing" feel?), as shown in a very similar plot (for Australian trade data only) featured in a recent blog by World Bank's Siddhesh Kaushik. For more prominent Javascript developers, there is a blog showing how to create a trade diagram directly with D3 here.
Subscribe to:
Comments (Atom)