Learn R Programming

laeken (version 0.5.3)

eqSS: Equivalized household size

Description

Compute the equivalized household size according to the modified OECD scale adopted in 1994.

Usage

eqSS(hid, age, year = NULL, data = NULL)

Value

A numeric vector containing the equivalized household size for every observation in data.

Arguments

hid

if data=NULL, a vector containing the household ID. Otherwise a character string specifying the column of data that contains the household ID.

age

if data=NULL, a vector containing the age of the individuals. Otherwise a character string specifying the column of data that contains the age.

year

if data=NULL, a vector containing the year of the survey. Otherwise a character string specifying the column of data that contains the year.

data

a data.frame containing EU-SILC survey data, or NULL.

Author

Andreas Alfons

References

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.

See Also

eqInc

Examples

Run this code
data(eusilc)

# calculate equivalized household size
eqSS <- eqSS("db030", "age", data=eusilc)

# combine with household ID and household size
tmp <- cbind(eusilc[, c("db030", "hsize")], eqSS)

# show the first 8 rows
head(tmp, 8)

Run the code above in your browser using DataLab