setupDataset: Setup dataset from EU-SILC survey

Description Usage Arguments Details Value Author(s) References Examples

View source: R/setupDataset.R

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

The parametric scale of Buhmann et al. (1988) can also be used assigning to s parameter a value between 0 and 1. 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 d 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.

Examples

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

AngelBerihuete/laeken2 documentation built on May 5, 2019, 6:02 a.m.