Estimates the relative median at-risk-of-poverty gap which is the difference between the at-risk-of-poverty threshold and the median equivalised disposable income of people below the at-risk-of-poverty threshold, expressed as a percentage of this threshold.
rmpg(dataset, ipuc = "ipuc", hhcsw = "DB090", hhsize = "HX040",
arpt.value = NULL, ci = NULL, rep = 1000, verbose = FALSE)
a data.frame containing the variables.
a character string indicating the variable name of the income per unit of consumption. Default is "ipuc".
a character string indicating the variable name of the household cross-sectional weight. Default is "DB090".
a character string indicating the variable name of the household size. Default is "HX040".
the at-risk-of-poverty threshold to be used (see arpt). Default is NULL which calculates arpt with default parameters.
a scalar or vector containing the confidence level(s) of the required interval(s). Default does not calculate the confidence interval.
a number to do the confidence interval using boostrap technique.
logical; if TRUE the confidence interval is plotted.
The value of the relative median at-risk-of-poverty gap.
The equivalised disposable income is calculated using the standard equivalence scale (called the modified OECD scale) recommended by Eurostat. The parametric scale of Buhmann et al. (1988) can also be used. The default is the modified OECD scale (see setupDataset).
B. Buhmann et al. (1988) Equivalence scales, well-being, inequality and poverty: sensitivity estimates across ten countries using the Luxembourg Income Study (LIS) database, Review of Income and Wealth, 34, 115--142.
arpt, setupDataset
# NOT RUN {
data(eusilc2)
ATdataset <- setupDataset(eusilc2, country = "AT")
rmpg(ATdataset,arpt.value = arpt(ATdataset))
# }
Run the code above in your browser using DataLab