{"id":16284727,"url":"https://github.com/pachadotdev/log-of-gravity","last_synced_at":"2025-04-09T03:19:52.200Z","repository":{"id":81294133,"uuid":"443166214","full_name":"pachadotdev/log-of-gravity","owner":"pachadotdev","description":"A Replication (and Tribute) of The Log of Gravity","archived":false,"fork":false,"pushed_at":"2024-09-05T17:27:37.000Z","size":25477,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T21:47:12.001Z","etag":null,"topics":["gravity","international-trade","ppml","r","trade"],"latest_commit_sha":null,"homepage":"","language":"TeX","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc-by-4.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pachadotdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-30T19:24:52.000Z","updated_at":"2024-09-05T17:27:41.000Z","dependencies_parsed_at":"2024-03-24T20:24:17.464Z","dependency_job_id":"c298f229-b6f4-422a-830b-b2d4984d8532","html_url":"https://github.com/pachadotdev/log-of-gravity","commit_stats":null,"previous_names":["pachadotdev/log-of-gravity"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pachadotdev%2Flog-of-gravity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pachadotdev%2Flog-of-gravity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pachadotdev%2Flog-of-gravity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pachadotdev%2Flog-of-gravity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pachadotdev","download_url":"https://codeload.github.com/pachadotdev/log-of-gravity/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247968704,"owners_count":21025868,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gravity","international-trade","ppml","r","trade"],"created_at":"2024-10-10T19:20:39.765Z","updated_at":"2025-04-09T03:19:52.179Z","avatar_url":"https://github.com/pachadotdev.png","language":"TeX","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Replication of The Log of Gravity\n\nSantos 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.\n\nHere I replicate the main results from @silva2006log in R. The original\nresults were obtained in [TSP](https://en.wikipedia.org/wiki/TSP_(econometrics_software))\nback in 2006. Thanks to Joao Santos Silva for pointing that out, in a previous\ncommit of this repository I mentioned that it was done in Stata.\n\nThe 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. \nMuch of the methods exposed here lead to the exact same results as using the gravity package which provides convenient wrappers for gravity estimation.\n\nAll questions are welcome to the address m.sepulveda@mail.utoronto.ca.\n\nThese notes were written with \n[varsityblues](https://github.com/pachadotdev/varsityblues).\n\n## References\n\nSantos Silva, Joao, and Silvana Tenreyro. “The Log of Gravity.” The Review of Economics\nand Statistics 88, no. 4 (2006): 641–58.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpachadotdev%2Flog-of-gravity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpachadotdev%2Flog-of-gravity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpachadotdev%2Flog-of-gravity/lists"}