| setupDataset {rtip} | R Documentation | 
Setup datasets loaded from the living conditions survey
Description
Extracts and transforms variables taken directly from the EU-SILC survey.
Usage
setupDataset(dataset, country = "ES", region = NULL, s = NULL,
  deflator = NULL, pppr = NULL)
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/vector string specifying the region(s) of the country whose data will be considered. The default (NULL) considers all regions in the country. | 
| s | a numeric value between 0 and 1 specifying the equivalence scale to be used to obtain the equivalised disposable income. The default (NULL) considers the standard modified OECD scale. | 
| deflator | numeric; a number to be used as a deflator. The default (NULL) will not apply any deflation. | 
| pppr | the purchasing power parity rate (PPPR) will be used. Default is NULL. | 
Details
We obtain the equivalised 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 the value assigned to s and pppr (if they are not NULL). 
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
data(eusilc2)
ATdataset <- setupDataset(eusilc2, country = "AT")
str(ATdataset)