Estimate the at-risk-of-poverty threshold. The standard definition is to use 60% of the weighted median equivalized disposable income.
arpt(
inc,
weights = NULL,
sort = NULL,
years = NULL,
data = NULL,
p = 0.6,
na.rm = FALSE
)
A numeric vector containing the value(s) of the at-risk-of-poverty threshold is returned.
either a numeric vector giving the equivalized disposable income,
or (if data
is not NULL
) a character string, an integer or a
logical vector specifying the corresponding column of data
.
optional; either a numeric vector giving the personal sample
weights, or (if data
is not NULL
) a character string, an
integer or a logical vector specifying the corresponding column of
data
.
optional; either a numeric vector giving the personal IDs to be
used as tie-breakers for sorting, or (if data
is not NULL
) a
character string, an integer or a logical vector specifying the corresponding
column of data
.
optional; either a numeric vector giving the different years of
the survey, or (if data
is not NULL
) a character string, an
integer or a logical vector specifying the corresponding column of
data
. If supplied, values are computed for each year.
an optional data.frame
.
a numeric vector of values in \([0,1]\) giving the percentages of the weighted median to be used for the at-risk-of-poverty threshold.
a logical indicating whether missing values should be removed.
Andreas Alfons
The implementation strictly follows the Eurostat definition.
Working group on Statistics on Income and Living Conditions (2004) Common cross-sectional EU indicators based on EU-SILC; the gender pay gap. EU-SILC 131-rev/04, Eurostat.
arpr
, incMedian
,
weightedMedian
data(eusilc)
arpt("eqIncome", weights = "rb050", data = eusilc)
Run the code above in your browser using DataLab