This function computes the Coefficient of Variation for a vector of observations and corresponding weights.
Usage
weighted.coeffvar(x, w)
Arguments
x
a vector of observations.
w
a vector of weights.
Value
cvreturns the coefficient of variation without bias correction.
bccvreturns the coefficient of variation with bias correction.
Warning
Weighting is not properly accounted for in the sample adjustment of bccv!
References
Atkinson, A.B. and Bourguignon, F. (2000): Income Distribution and Economics, in: Atkinson and Bourguignon (eds.), Handbook of Income Distribution, pp. 1-86, Elsevier, Amsterdam.