Learn R Programming

EconGeo (version 2.0)

krugman_index: Compute the Krugman index from regions - industries matrices

Description

This function computes the Krugman index from regions - industries matrices. The higher the coefficient, the greater the regional specialization. This index is often referred to as the Krugman specialisation index and measures the distance between the distributions of industry shares in a region and at a more aggregated level (country for instance).

Usage

krugman_index(mat)

Value

A vector representing the Krugman index of regional specialization computed from the regions - industries matrix.

Arguments

mat

An incidence matrix with regions in rows and industries in columns

Author

Pierre-Alexandre Balland p.balland@uu.nl

References

Krugman P. (1991) Geography and Trade, MIT Press, Cambridge

See Also

location_quotient_avg

Examples

Run this code
## generate a region - industry matrix
set.seed(31)
mat <- matrix(sample(0:100, 20, replace = TRUE), ncol = 4)
rownames(mat) <- c("R1", "R2", "R3", "R4", "R5")
colnames(mat) <- c("I1", "I2", "I3", "I4")

## run the function
krugman_index(mat)

Run the code above in your browser using DataLab