Package: EconGeo 2.1

Pierre-Alexandre Balland

EconGeo: Computing Key Indicators of the Spatial Distribution of Economic Activities

Computes a series of indices commonly used in the fields of economic geography, economic complexity, and evolutionary economics to describe the location, distribution, spatial organization, structure, and complexity of economic activities. Functions include basic spatial indicators such as the location quotient, the Krugman specialization index, the Herfindahl or the Shannon entropy indices but also more advanced functions to compute different forms of normalized relatedness between economic activities or network-based measures of economic complexity. Most of the functions use matrix calculus and are based on bipartite (incidence) matrices consisting of region - industry pairs. These are described in Balland (2017) <http://econ.geo.uu.nl/peeg/peeg1709.pdf>.

Authors:Pierre-Alexandre Balland [aut, cre, cph]

EconGeo_2.1.tar.gz
EconGeo_2.1.tar.gz(r-4.7-any)EconGeo_2.1.tar.gz(r-4.6-any)
EconGeo_2.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION
card.svg |card.png
EconGeo/json (API)

# Install 'EconGeo' in R:
install.packages('EconGeo', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/paballand/econgeo/issues

On CRAN:

Conda:

2.48 score 1 stars 60 scripts 278 downloads 50 exports 5 dependencies

Last updated from:b5676563e5. Checks:4 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK116
source / vignettesOK162
linux-release-x86_64OK120
wasm-releaseOK126

Exports:co_occurrencediversityease_recombinationentropyentry_listentry_matexit_listexit_matexpyget_listget_matrixginigrowth_indgrowth_listgrowth_list_indgrowth_list_reggrowth_matgrowth_reghachmanherfindahlhoover_curvehoover_ginihoover_indexinv_norm_ubiquitykcikrugman_indexlocation_quotientlocation_quotient_avglocational_ginilocational_gini_curvelorenz_curvematch_matmodular_complexitymodular_complexity_avgmorcmortnorm_ubiquityprodyrcarelatednessrelatedness_densityrelatedness_density_extrelatedness_density_ext_avgrelatedness_density_intrelatedness_density_int_avgspec_coefftciubiquityweighted_avgz_score

Dependencies:latticeMatrixplyrRcppreshape

Readme and manuals

Help Manual

Help pageTopics
Compute the number of co-occurrences between industry pairs from an incidence (industry - event) matrixco_occurrence
Compute a simple measure of diversity of regionsdiversity
Compute the ease of recombination of a given technological classease_recombination
Compute the Shannon entropy index from regions - industries matricesentropy
Generate a data frame of entry events from multiple regions - industries matrices (same matrix composition for the different periods)entry_list
Generate a matrix of entry events from two regions - industries matrices (same matrix composition from two different periods)entry_mat
Generate a data frame of exit events from multiple regions - industries matrices (same matrix composition for the different periods)exit_list
Generate a matrix of exit events from two regions - industries matrices (same matrix composition from two different periods)exit_mat
Compute the expy index of regions from regions - industries matricesexpy
Create regular data frames from regions - industries matricesget_list
Create regions - industries matrices from regular data framesget_matrix
Compute the Gini coefficientgini
Generate a matrix of industrial growth by industries from two regions - industries matrices (same matrix composition from two different periods)growth_ind
Generate a data frame of industrial growth in regions from multiple regions - industries matrices (same matrix composition for the different periods)growth_list
Generate a data frame of industrial growth in regions from multiple regions - industries matrices (same matrix composition for the different periods)growth_list_ind
Generate a data frame of region growth from multiple regions - industries matrices (same matrix composition for the different periods)growth_list_reg
Generate a matrix of industrial growth in regions from two regions - industries matrices (same matrix composition from two different periods)growth_mat
Generate a matrix of industrial growth by regions from two regions - industries matrices (same matrix composition from two different periods)growth_reg
Compute the Hachman index from regions - industries matriceshachman
Compute the Herfindahl index from regions - industries matricesherfindahl
Plot a Hoover curve from regions - industries matriceshoover_curve
Compute the Hoover Ginihoover_gini
Compute the Hoover indexhoover_index
Compute a measure of complexity from the inverse of the normalized ubiquity of industriesinv_norm_ubiquity
Compute an index of knowledge complexity of regions using the eigenvector methodkci
Compute the Krugman index from regions - industries matriceskrugman_index
Compute location quotients from regions - industries matriceslocation_quotient
Compute average location quotients of regions from regions - industries matriceslocation_quotient_avg
Compute the locational Gini coefficient from regions - industries matriceslocational_gini
Plot a locational Gini curve from regions - industries matriceslocational_gini_curve
Plot a Lorenz curve from regional industrial countslorenz_curve
Re-arrange the dimension of a matrix based on the dimension of another matrixmatch_mat
Compute a measure of modular complexity of patent documentsmodular_complexity
Compute a measure of average modular complexity of technologiesmodular_complexity_avg
Compute an index of knowledge complexity of regions using the method of reflectionmorc
Compute an index of knowledge complexity of industries using the method of reflectionmort
Compute a measure of complexity by normalizing ubiquity of industriesnorm_ubiquity
Compute the prody index of industries from regions - industries matricesprody
Compute an index of revealed comparative advantage (RCA) from regions - industries matricesrca
Compute the relatedness between entities (industries, technologies, ...) from their co-occurence matrixrelatedness
Compute the relatedness density between regions and industries from regions - industries matrices and industries - industries matricesrelatedness_density
Compute the relatedness density between regions and industries that are not part of the regional portfolio from regions - industries matrices and industries - industries matricesrelatedness_density_ext
Compute the average relatedness density of regions to industries that are not part of the regional portfolio from regions - industries matrices and industries - industries matricesrelatedness_density_ext_avg
Compute the relatedness density between regions and industries that are part of the regional portfolio from regions - industries matrices and industries - industries matricesrelatedness_density_int
Compute the average relatedness density within the regional portfolio from regions - industries matrices and industries - industries matricesrelatedness_density_int_avg
Compute the Hoover coefficient of specialization from regions - industries matricesspec_coeff
Compute an index of knowledge complexity of industries using the eigenvector methodtci
Compute a simple measure of ubiquity of industriesubiquity
Compute a weighted average of regions or industries from regions - industries matricesweighted_avg
Compute the z-score between technologies from an incidence matrixz_score