calcTheil | R Documentation |
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().
calcTheil(scenario)
scenario |
A string (or vector of strings) designating the scenario(s) to be returned. Passed as is to the scenario argument of mrdrivers::calcGDP. |
The projections are SSP specific and use SSP GINI projections. For non-SSP scenarios, the projections are equal to the SSP2 projection.
The aggregation depends on the region mapping. It is implemented such that the regionmapping specified in getConfig()$regionmapping is used. 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.
magpie objects of unweighted contribution to Theil, weights (= country shares of regional GDP)
calcOutput
, readGini
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.