Herfindahl: Compute the Herfindahl index from regions - industries...

View source: R/Herfindahl.r

HerfindahlR Documentation

Compute the Herfindahl index from regions - industries matrices

Description

This function computes the Herfindahl index from regions - industries matrices from (incidence) regions - industries matrices. This index is also known as the Herfindahl-Hirschman index.

Usage

Herfindahl(mat)

Arguments

mat

An incidence matrix with regions in rows and industries in columns

Author(s)

Pierre-Alexandre Balland p.balland@uu.nl

References

Herfindahl, O.C. (1959) Copper Costs and Prices: 1870-1957. Baltimore: The Johns Hopkins Press.

Hirschman, A.O. (1945) National Power and the Structure of Foreign Trade, Berkeley and Los Angeles: University of California Press.

See Also

Krugman.index

Examples

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

## run the function
Herfindahl (mat)

PABalland/EconGeo documentation built on Jan. 5, 2023, 8:40 a.m.