calcTheil: Calculate regional Theil-T index

View source: R/calcTheil.R

calcTheilR Documentation

Calculate regional Theil-T index

Description

To calculate the regional Theil-T index (= correction to welfare function for a lognormal income distribution) we do the following: (1) convert country-level Gini coefficients to Theil (2) calculate contribution to Theil-T index that includes both between-countries and within-country inequality (see e.g. https://en.wikipedia.org/wiki/Theil_index). The latter can then be aggregated with calcOutput().

Usage

calcTheil()

Details

NB 1: the aggregation depends on the region mapping. It is implemented such that the regionmapping specified in getConfig()$regionmapping is used.

NB 2: the result of calcOutput('Theil', aggregate = FALSE), is NOT the country Theil-T, but the unweighted contribution from a given country to the regional value.

Value

magpie objects of unweighted contribution to Theil, weights (= country shares of regional GDP), docstring

Author(s)

Bjoern Soergel

See Also

calcOutput convertGini,readGini

Examples

## Not run: 
a <- calcOutput("Theil")

## End(Not run)


pik-piam/mrremind documentation built on March 30, 2024, 3:37 a.m.