zerotradeflow is a system for creating the bilateral trade flow
between a country pair equal to zero. You provide the data, tell
zerotradeflow which variables are of interest and it expands the base
by creating the bilateral zero trade flow. The bases on the flow of
trade between countries only report positive trade (greater than zero),
however, for some analyzes of gravitacional models, data on zero flow is
To install the
package, one of the two standard methods for installing
packages in R can be adopted. Directly through the
cran (choosing the
Or the development version from GitHub:
# install.packages ("devtools") devtools::install_github ("AlexandreLoures/zerotradeflow")
In the latter case, the latest version of the
package will be
The operation of the
zerotradeflow package consists of informing where
the data are (the base) to be expanded and indicating the variables:
year, exporting country, importing country, Harmonized Commodity
Designation and Coding System (or other classification) and value of
exports/imports. It takes into account that the order must be obeyed:
data, year, exporter, importer, designation and coding and flow value.
Figueiredo and Loures (2016) O efeito do Mercosul sobre a comercialização de novos produtos. https://doi.org/10.5935/0034-7140.20160015
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.