data(eusilc)
# equivalized disposable income is equal for each household
# member, therefore only one household member is taken
eusilc <- eusilc[!duplicated(eusilc$db030),]
# with sample weights
meanExcessPlot(eusilc$eqIncome, w = eusilc$db090)
# without sample weights
meanExcessPlot(eusilc$eqIncome)
Run the code above in your browser using DataLab