Skip to content

brancengregory/decompr

 
 

Repository files navigation

decompr

License CRAN Version Total RStudio Cloud Downloads Monthly RStudio Cloud Downloads Travis-CI Build Status Coverage Status

Bastiaan Quast, bquast@gmail.com

Two Global Value Chains decompositions are implemented. Firstly, the Wang, Wei, and Zhu (2013) DOI:10.3386/w19677 algorithm splits bilateral gross exports into 16 value added components. Secondly, the Leontief decomposition (default) derives the value added origin of exports by country and industry, see Leontief (1937) DOI:10.2307/1927837.

Additional tools for GVC analysis are available in the gvc package.

Installation

You can install the latest stable version from CRAN.

install.packages("decompr")

The development version, to be used at your peril, can be installed from GitHub using the devtools package.

if (!require('devtools')) install.packages('devtools')
devtools::install_github("bquast/decompr")

Usage

Following installation, the package can be loaded using:

library(decompr)

For general information on using the package, please refer to the help files.

help("decompr")
help(package="decompr")

For examples of usage, see the function specific help pages, in particular the decomp() function.

help("decomp")
help("leontief")
help("wwz")
help("load_tables_vectors")

In addition to the help files we provide a long form example in a vignette .

vignette("decompr")

Additional Information

An overview of the changes is available in the NEWS file.

news(package="decompr")

There is a dedicated website with information hosted on my personal website.

http://qua.st/decompr

Development

Development takes place on the GitHub page.

http://github.com/bquast/decompr

Bugs can be filed on the issues page on GitHub.

https://github.com/bquast/decompr/issues

Credit

The Wang-Wei-Zhu algorithm (wwz())is based on R code written by Fei Wang (not to be confused with the author of the algorithm, with the same last name), which implemented this algorithm.

About

GVC decomposition in R

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • R 100.0%