AN_Y {wINEQ} | R Documentation |
Abul Naga and Yalcin index
Description
Computes Abul Naga and Yalcin inequality measure of a given variable taking into account weights.
Usage
AN_Y(X, W = rep(1, length(X)), a = 1, b = 1)
Arguments
X |
is a data vector (numeric or ordered factor) |
W |
is a vector of weights |
a |
is a positive parameter. See more in details |
b |
is a positive parameter. See more in details |
Details
Let be the median category,
be the number of categories and
be the cumulative distribution of
-th category.
The following index with respect to the parameters a and b was proposed by Abul Naga and Yalcin (2008):
Value
The value of Abul Naga and Yalcin coefficient.
References
Ramses H. Abul Naga and Tarik Yalcin: (2008) Inequality Measurement for ordered response health data, Journal of Health Economics 27(6);
Examples
# Compare weighted and unweighted result
X=1:10
W=1:10
AN_Y(X)
AN_Y(X,W)
data(Well_being)
# Abul Naga and Yalcin index for health assessment with sample weights
X=Well_being$V1
W=Well_being$Weight
AN_Y(X,W)
[Package wINEQ version 1.2.0 Index]