ci | R Documentation |
This function calculates the relative concentration index (Kakwani et al), the generalized concentration index (Clarke et al, 2002) and the concentration index with Erreygers' correction (Erreygers et al, 2009). It returns an object of class hci for which confidence intervals, summaries and plots are defined.
ci(x, y, wt = NULL, type = c("CI", "CIg", "CIc"))
concentration_index(object)
## S3 method for class 'hci'
plot(x, ...)
## S3 method for class 'hci'
print(x, ...)
## S3 method for class 'hci'
summary(object, ...)
## S3 method for class 'hci'
confint(object, parm = NULL, level = 0.95, ...)
variance_concentration_index(object)
x |
For |
y |
a numeric variable containing the wealth measure. |
wt |
a numeric variable containing the sample weights. Defaults to |
type |
the type of concentration index to be calculated: relative concentration index ( |
object |
an object of class |
parm |
always set to |
level |
confidence level at which confidence intervals should be calculated. Defaults to 0.95. |
... |
arguments to pass on to |
ci
returns the concentration index in an object of class hci
.
A number of extractor functions have been defined. The plot
function returns a plot of the Lorenz curve.
For ci
, an object of class hci
; this is a list containing the following components:
concentration_index |
concentration index. The type of concentration index depends on the chosen |
varC |
variance of the concentration index |
fractional_rank |
weighted fractional rank for each case |
outcome |
health measure for each case |
n |
number of cases |
call |
the original call to |
For plot.hci
, a concentration plot.
Saveria Willimes, Peter Konings and Niko Speybroeck
Clarke, P. M., Gerdtham, U. G., Johannesson, M., Bingefors, K., & Smith, L. (2002). On the measurement of relative and absolute income-related health inequality. Social Science & Medicine, 55(11), 1923-1928
Erreygers, G. (2009). Correcting the concentration index. Journal of health economics, 28(2), 504-515
Kakwani, N., Wagstaff, A., & Van Doorslaer, E. (1997). Socioeconomic inequalities in health: measurement, computation, and statistical inference.Journal of econometrics, 77(1), 87-103.
data(nigeria)
example <- with(nigeria, ci(x = wealth, y = zscore, wt = weight, type = "CIg"))
plot(example)
summary(example)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.