PAPER: "Migration responses of immigrants in Spain during the Great Recession." AUTHORS: Victoria Prieto and Joaquin Recano The input microdata used in analysis corresponds to an extract from the Spanish Residential Statistics (National Institute of Statistics, Spain). Data is not available for free and was purchased by the Centre d'Estudis Demografics (Autonomous University of Barcelona). The software used for analysis was Stata 15 and the syntax used is explained in detail in the file named "SYNTAX." All the analysis was run excluding Spanish born population.