Setup datasets loaded from the living conditions survey

Share:

Description

Extracts and transforms variables taken directly from the EU-SILC survey.

Usage

1
2
setupDataset(dataset, country = "ES", region = "all", s = "OECD",
  deflac = NULL, ppp = FALSE)

Arguments

dataset

a data.frame containing variables in the EU-SILC microdata format.

country

a character string specifying the country whose data will be considered.

region

a character string specifying the region of the country whose data will be considered.

s

either a character string or a numeric value between 0 and 1 specifying the equivalence scale to be used to obtain the equivalized disposable income. The default ("OECD") considers the standar modified OECD scale.

deflac

numeric; a number to be used as a deflator. The default (NULL) will not apply any deflation.

ppp

a logical; if it is TRUE the purchasing power parity (PPP) exchange rate will be used.

Details

We obtain the equivalized disposable income with the equivalence scale of Buhmann et al. (1988) by assigning a numeric value between 0 and 1 to argument s . The parameter s is called elasticity of equivalence.

The purchasing power parity exchange rate is useful for making comparisons between countries.

Value

A data.frame with the following variables:

  • DB010 a numeric vector containing the year of the survey.

  • DB020 a factor with one level which is the country considered.

  • DB040 a factor with as many levels as there are regions in the country.

  • DB090 a numeric vector containing information about household cross-sectional weight.

  • HX040 an integer vector containing information about households size.

  • HX050 a numeric vector containing information about the equivalised household size. The scale employed is the modified OECD scale.

  • HX090 a numeric vector containing information about equivalised disposable income (with the modified OECD scale).

  • ipuc a numeric vector containing the income per unit of consumption. This variable takes into account if deflac is not NULL, ppp is TRUE or/and the value assigned to s.

  • wHX040 a numeric vector which is obtained by multiplying DB090 by HX040. It represents household weights taking into account the size of the household.

Author(s)

A. Berihuete, C.D. Ramos and M.A. Sordo

References

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.

See Also

loadEUSILC, loadLCS

Examples

1
2
3
data(eusilc2)
ATdataset <- setupDataset(eusilc2, country = "AT")
str(ATdataset)