powered by
Calculating the Theil inequality index
theil(x, na.rm = TRUE)
a numeric vector
numeric
logical argument that indicates whether NA values should be excluded before computing results
A single numeric value of the Theil inequality index (\(0 < TI < 1\)).
Since there are several Theil measures of inequality, this function uses the formulation from Stoermann (2009).
Stoermann, W. (2009): “Regionaloekonomik: Theorie und Politik”. Muenchen : Oldenbourg.
gini, herf, hoover
gini
herf
hoover
# NOT RUN { # Example from Stoermann (2009): regincome <- c(10,10,10,20,50) theil(regincome) # 0.2326302 # }
Run the code above in your browser using DataLab