entropy {EconGeo} | R Documentation |
Compute the Shannon entropy index from regions - industries matrices
Description
This function computes the Shannon entropy index from regions - industries matrices from (incidence) regions - industries matrices
Usage
entropy(mat)
Arguments
mat |
An incidence matrix with regions in rows and industries in columns |
Value
A numeric vector representing the Shannon entropy index computed from the regions - industries matrix
Author(s)
Pierre-Alexandre Balland p.balland@uu.nl
References
Shannon, C.E., Weaver, W. (1949) The Mathematical Theory of Communication. Univ of Illinois Press.
Frenken, K., Van Oort, F. and Verburg, T. (2007) Related variety, unrelated variety and regional economic growth, Regional studies 41 (5): 685-697.
See Also
Examples
## 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
entropy(mat)
[Package EconGeo version 2.0 Index]