ESI: the export similarity index for the trade data and will...

Description Usage Arguments Value References

View source: R/ESI_INDEX.r

Description

the export similarity index for the trade data and will return a ESI matrix if you have many commodities

Usage

1
2
3
4
5
6
7
ESI(
  trade_data,
  commodity_codes,
  Year = TRUE,
  partner_average = TRUE,
  country_names = NULL
)

Arguments

trade_data

the tibble covnerted by the polish_data function

commodity_codes

the codes of the commodities based on which the ESI is calculated

Year

split the trade_data by year variable or not, if true the final output will be a list of ESI matrices, otherwise just a single matrix

partner_average

if true, it will combine all the partners(importers here) together to calculate the trade value or volume, otherwise the final ESI index will be the average of the ESI for each importer

Value

a list of ESI matrices if the Year parameter is true, otherwise a single matrix

References

A Measure of ‘Export Similarity’ and Its Possible Uses, Author(s): J. M. Finger and M. E. Kreinin, Source: The Economic Journal, Vol. 89, No. 356 (Dec., 1979), pp. 905-912


zlfccnu/econophysics documentation built on Feb. 23, 2022, 10:22 p.m.