eqInc | R Documentation |
Compute the equivalized disposable income from household and personal income variables.
eqInc(hid, hplus, hminus, pplus, pminus, eqSS, year = NULL, data = NULL)
hid |
if |
hplus |
if |
hminus |
if |
pplus |
if |
pminus |
if |
eqSS |
if |
year |
if |
data |
a |
All income components should already be imputed, otherwise NA
s are
simply removed before the calculations.
A numeric vector containing the equivalized disposable income for
every individual in data
.
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.
eqSS
data(eusilc)
# compute a simplified version of the equivalized disposable income
# (not all income components are available in the synthetic data)
hplus <- c("hy040n", "hy050n", "hy070n", "hy080n", "hy090n", "hy110n")
hminus <- c("hy130n", "hy145n")
pplus <- c("py010n", "py050n", "py090n", "py100n",
"py110n", "py120n", "py130n", "py140n")
eqIncome <- eqInc("db030", hplus, hminus,
pplus, character(), "eqSS", data=eusilc)
# combine with household ID and equivalized household size
tmp <- cbind(eusilc[, c("db030", "eqSS")], eqIncome)
# show the first 8 rows
head(tmp, 8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.