ngmarchant / shiw

Pre-processing script for data from the Survey of Household Income and Wealth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pre-processing script: Survey of Household Income and Wealth (Bank of Italy)

The Bank of Italy makes anonymised microdata available from its Survey of Household Income and Wealth. Further information about the data and conditions for use is available here.

For many applications, it is useful to have a unique identifier for individuals across waves of the survey (from 1989 and onwards). Unique identifiers are not provided in the original data, however they can be inferred somewhat reliably using Stata code developed by Simona Baldi and Michele Pellizzari.

This repository contains an R script which is inspired by the Stata code referenced above. It downloads the historical database from the Bank of Italy's website, extracts the "Components" data set, infers unique identifiers and saves the result to disk as a CSV file. Further information about the "Components" data set is available in the documentation (p. 14-19) published by the Bank of Italy.

To run the script, download generate-comp-fixed.R and run the following in a terminal:

$ Rscript generate-comp-fixed.R

About

Pre-processing script for data from the Survey of Household Income and Wealth

License:MIT License


Languages

Language:R 100.0%