Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 15 days 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 (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-03-18T15:21:26.000Z (8 months ago)
- Last Synced: 2024-05-21T01:13:44.924Z (6 months 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'
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://www.tidyverse.org/lifecycle/#stable)
[![GH-actions Windows](https://github.com/pachamaltese/tradepolicy/workflows/check-windows/badge.svg)](https://github.com/pachamaltese/tradepolicy/actions)
[![GH-actions Linux](https://github.com/pachamaltese/tradepolicy/workflows/check-linux/badge.svg)](https://github.com/pachamaltese/tradepolicy/actions)
[![CRAN status](https://www.r-pkg.org/badges/version/tradepolicy)](https://cran.r-project.org/package=tradepolicy)
[![codecov](https://codecov.io/gh/pachamaltese/tradepolicy/branch/main/graph/badge.svg?token=9UOFPQHTF2)](https://codecov.io/gh/pachamaltese/tradepolicy)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4277741.svg)](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}
}
```