incQuintile | R Documentation |
Compute weighted income quintiles.
incQuintile(
inc,
weights = NULL,
sort = NULL,
years = NULL,
k = c(1, 4),
data = NULL,
na.rm = FALSE
)
inc |
either a numeric vector giving the (equivalized disposable)
income, or (if |
weights |
optional; either a numeric vector giving the personal sample
weights, or (if |
sort |
optional; either a numeric vector giving the personal IDs to be
used as tie-breakers for sorting, or (if |
years |
optional; either a numeric vector giving the different years of
the survey, or (if |
k |
a vector of integers between 0 and 5 specifying the quintiles to be computed (0 gives the minimum, 5 the maximum). |
data |
an optional |
na.rm |
a logical indicating whether missing values should be removed. |
The implementation strictly follows the Eurostat definition.
A numeric vector (if years
is NULL
) or matrix (if
years
is not NULL
) containing the values of the weighted income
quintiles specified by k
are returned.
Andreas Alfons
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.
qsr
, weightedQuantile
data(eusilc)
incQuintile("eqIncome", weights = "rb050", data = eusilc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.