IOPS: IOPS

View source: R/IOPS_Full_ALPHA.R

IOPSR Documentation

IOPS

Description

Takes user inputted trade data, any acceptable ISO country code and industrial value chain mapping to calculate various metrics (Economic- and Product complexity metrics, distance metrics, opportunity gain, and inequality metrics) of a given country in order to facilitate better decision making regarding industrial policymaking.

Usage

IOPS(
  CountryCode,
  tradeData,
  ComplexMethod = "eigenvalues",
  iterCompl = 20,
  GVCMapping
)

Arguments

CountryCode

(Type: character/integer) Any accepted ISO country code could be used, e.g. "United Kingdom", "GBR", "GB", 828 would all be accepted if the United Kingdom is the desired country. This version of the package uses country_codes_V202201 from th BACI Hs17 2020 dataset, but can be changed in inst/extdata.

tradeData

(Type: csv) Accepts any CEPII BACI trade data. NOTE: tradeData and GVCMapping must be from the same "H" Family, e.g. both are from H3, etc., in order for the program to work correctly.

ComplexMethod

(Type: character) Methods used to calculate complexity measures. Can be any one of these methods: "fitness", "reflections" or "eigenvalues". Defaults to "eigenvalues".

iterCompl

(Type: integer) The number of iterations that the chosen complexity measure must use. Defaults to iterCompl = 20.

GVCMapping

(Type: csv) The desired value chain to be analysed. With Columns "Tiers", "Activity", and "HSCode". NOTE: tradeData and GVCMapping must be from the same "H" Family, e.g. both are from H3, etc., in order for the program to work correctly.

Value

A list that constains ECI, PCI, Opportunity_Gain, distance, density, M_absolute, M_binary, Tier_Results, Product_Category_Results, Product_Results, respectively.

Examples

IOPS(CountryCode = 710,
tradeData = ExampleTradeData,
ComplexMethod = "eigenvalues",
iterCompl = 10,
GVCMapping = ExampleValueChain)


RTheronStellenbosch/iopspackage documentation built on May 12, 2022, 9:27 a.m.