calcSConc: Concentration Index

Description Usage Arguments Value References See Also Examples

View source: R/InegConc.r

Description

Computes the concentration index for a vector, ranked by another vector.

Usage

1
calcSConc(x, y, w = NULL, param = 2)

Arguments

x

Numeric vector with non-negative values.

y

Numeric vector used for the ranking of vector x.

w

Numeric vector of sampling weigths (optional).

param

Parameter specifying the concentration index (must be strictly positive).

Value

A list of class "ICI" with components:

ineq

a list with components SConc (value of concentration index) and param (value of parameter).

nas

a list with NA counts, including components xNA, yNA, wNA and totalNA.

References

Kakwani N.C. (1977) Measurement of Tax Progressivity: An International Comparison. The Economic Journal, 87(345), pp. 71-80.

O'Donnell O., van Doorslaer E., Wagstaff A., Lindelow M. (2008) Analyzing Health Equity Using Household Survey Data. World Bank, 220 p.

See Also

curveConcent

Examples

1
2
3
4
5
data(hhbudgets)

calcSConc(hhbudgets[, "transporte"], hhbudgets[,"ingreso"], param=0.5)
summary(hhbudgets[,"mantenimiento"])
calcSConc(hhbudgets[,"mantenimiento"], hhbudgets[,"ingreso"], w=hhbudgets[,"factor"])

Example output

$ineq
$ineq$index
     SConc 
-0.6670986 

$ineq$parameter
param 
  0.5 


$nas
$nas$xNA
[1] 0

$nas$yNA
[1] 0

$nas$wNA
NULL

$nas$totalNA
[1] 0


attr(,"class")
[1] "ICI"
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
      0       0       0    1374    2103   32989 
$ineq
$ineq$index
    SConc 
0.5260946 

$ineq$parameter
param 
    2 


$nas
$nas$xNA
[1] 0

$nas$yNA
[1] 0

$nas$wNA
[1] 0

$nas$totalNA
[1] 0


attr(,"class")
[1] "ICI"

IC2 documentation built on May 1, 2019, 7:49 p.m.