https://github.com/pachadotdev/tradepolicy
Replication of 'An Advanced Guide To Trade Policy Analysis'
https://github.com/pachadotdev/tradepolicy
gravity r r-package rstats trade
Last synced: over 1 year ago
JSON representation
Replication of 'An Advanced Guide To Trade Policy Analysis'
- Host: GitHub
- URL: https://github.com/pachadotdev/tradepolicy
- Owner: pachadotdev
- License: cc-by-4.0
- Created: 2020-10-11T02:54:52.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-03-18T15:21:26.000Z (over 2 years ago)
- Last Synced: 2024-05-21T01:13:44.924Z (about 2 years ago)
- Topics: gravity, r, r-package, rstats, trade
- Language: Stata
- Homepage: https://r.tiid.org/R_structural_gravity/
- Size: 23.6 MB
- Stars: 4
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- License: LICENSE.md
Awesome Lists containing this project
README
# tradepolicy: Replication of 'An Advanced Guide To Trade Policy Analysis'
[](https://www.repostatus.org/#active)
[](https://www.tidyverse.org/lifecycle/#stable)
[](https://github.com/pachamaltese/tradepolicy/actions)
[](https://github.com/pachamaltese/tradepolicy/actions)
[](https://cran.r-project.org/package=tradepolicy)
[](https://codecov.io/gh/pachamaltese/tradepolicy)
[](https://doi.org/10.5281/zenodo.4277741)
# About
This R package, documented in a very similar way to the book [R4DS](https://r4ds.had.co.nz/), provides functions to replicate the original Stata results from the book [An Advanced Guide to Trade Policy Analysis](https://vi.unctad.org/tpa/web/Advanced%20Guide%20to%20TPA/readme.pdf).
For the analysis, this provides functions to compute robust clustered standard errors in generalized linear models. See https://r.tiid.org/R_structural_gravity/ for a fully detailed replication of AGTPA's results.
# Installation
## From CRAN
```
install.packages("tradepolicy")
```
## From GitHub
```
# install.packages("remotes")
remotes::install_github("pachamaltese/tradepolicy")
```
## Cite this work
If you use `tradepolicy` in academic works or other publication, please cite as follows:
```
Mauricio Vargas (2020). tradepolicy: An Advanced Guide to Trade Policy Analysis. R
package version 0.2. https://pacha.dev/tradepolicy/
```
BibTeX entry:
```
@Manual{,
title = {tradepolicy: Replication of 'An Advanced Guide To Trade Policy Analysis'},
author = {Mauricio Vargas},
year = {2021},
note = {R package version 0.4.1},
url = {https://pacha.dev/tradepolicy/},
doi = {10.5281/zenodo.4277741}
}
```