https://github.com/pachadotdev/log-of-gravity
A Replication (and Tribute) of The Log of Gravity
https://github.com/pachadotdev/log-of-gravity
gravity international-trade ppml r trade
Last synced: about 1 month ago
JSON representation
A Replication (and Tribute) of The Log of Gravity
- Host: GitHub
- URL: https://github.com/pachadotdev/log-of-gravity
- Owner: pachadotdev
- License: cc-by-4.0
- Created: 2021-12-30T19:24:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-05T17:27:37.000Z (9 months ago)
- Last Synced: 2025-02-14T21:47:12.001Z (3 months ago)
- Topics: gravity, international-trade, ppml, r, trade
- Language: TeX
- Homepage:
- Size: 24.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# A Replication of The Log of Gravity
Santos Silva and Tenreyro wasn’t just an influential article, it defined my interest in gravity models to the point I wrote a master’s thesis on it for UN ESCAP. Here I replicate the main results from the original article in R.
Here I replicate the main results from @silva2006log in R. The original
results were obtained in [TSP](https://en.wikipedia.org/wiki/TSP_(econometrics_software))
back in 2006. Thanks to Joao Santos Silva for pointing that out, in a previous
commit of this repository I mentioned that it was done in Stata.The idea here is to be explicit regarding the conceptual approach to regression in R. For most of the replication I used base R without external libraries (i.e packages) except when it was absolutely necessary.
Much of the methods exposed here lead to the exact same results as using the gravity package which provides convenient wrappers for gravity estimation.All questions are welcome to the address [email protected].
These notes were written with
[varsityblues](https://github.com/pachadotdev/varsityblues).## References
Santos Silva, Joao, and Silvana Tenreyro. “The Log of Gravity.” The Review of Economics
and Statistics 88, no. 4 (2006): 641–58.