Skip to content

tradestatistics/tradepolicy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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. Lifecycle: stable GH-actions Windows GH-actions Linux CRAN status codecov DOI

About

This R package, documented in a very similar way to the book R4DS, provides functions to replicate the original Stata results from the book An Advanced Guide to Trade Policy Analysis.

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}
}

About

Replication of 'An Advanced Guide To Trade Policy Analysis'

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Stata 56.5%
  • JavaScript 27.7%
  • R 12.9%
  • TeX 1.7%
  • Other 1.2%