Anonymized microdata
This page lists the statistical operations for which anonymised microdata files are available for download from the website.
Microdata files contain individual records from a statistical operation, conveniently anonymised, in order to preserve the confidentiality of the information.
The raw microdata files are fixed-width plain-text files containing, for each individual survey record, the value of each variable. To interpret these files correctly, it is necessary to map the variables and their values according to the specifications set out in the Excel files that contain the record layout. As the data are unaggregated, analysing them requires appropriate data-processing and analysis tools.
To make working with raw microdata easier, processed files are also provided in the following formats: CSV, R, SAS, Stata and SPSS. The Parquet format and a JSON record layout are also being introduced.
The JSON record layout lets users read the raw microdata files easily, without having to manually map the variables to their positions within the fixed-width file.
The Parquet file has the JSON record layout built in, making it self-contained and removing the need for additional files for its use.
-
Description of parquet format
Parquet files are a data storage format specifically designed for massive analysis systems. Unlike traditional row-based formats such as CSV and JSON, Parquet is a columnar format, meaning that it stores the data divided into columns instead of by entire records. This feature can significantly optimise access to the information, given that analysis systems usually only require a subset of variables (columns), thus avoiding the unnecessary reading of complete data. Moreover, Parquet was developed within the Hadoop ecosystem, and it’s widely integrated into modern tools such as Apache Spark, Hive and cloud processing systems.
One of Parquet’s main technical advantages is its capacity for efficient compression and encoding. By storing data by columns, it’s easier to apply advanced compression techniques that benefit from the similarity of the values in each column. For example, columns with repetitive values or low cardinality can be compressed much more than in traditional formats. This is reflected in a significant reduction in the size of the files, leading to lower storage and transmission costs, as well as a better performance when it comes to reading and processing the data.
Within the context of the publication of anonymised microdata, the Parquet format brings highly significant benefits. Firstly, it provides more efficient accessibility for researchers and analysts, as they can view just the necessary variables without having to load the entire dataset. The above can prove particularly useful during work with large and complex databases, such as those from surveys, administrative records and censuses.
Furthermore, Parquet’s metadata support facilitates the structured documentation of the variables, thus improving the data’s interpretability and reuse. In the case of the files published by the INE, the metadata are incorporated into the parquet file in JSON format, complying with the registration design defined in the corresponding JSON Schema.
Another key advantage is the interoperability with modern analytical environments. Publishing microdata in Parquet format allows for their direct use on distributed analysis platforms and in languages such as Python and R, using libraries like Pandas, PyArrow and dplyr. This removes the need for prior conversions and streamlines the users’ workflow.
In short, the use of the Parquet format for publishing anonymised microdata combines technical efficiency, resource savings, ease of use and compatibility with modern technologies. The publication of these files seeks to promote the opening of data in a secure and efficient manner.
The National Statistics Institute (INE) accepts no responsibility for any results users obtain from these files through their own calculations. Furthermore, anyone using microdata files undertakes to cite INE as the source of the primary data in any publication resulting from their use (source: INE, www.ine.es), and to acknowledge that the accuracy or reliability of any information derived from their own processing is their sole responsibility.
Statistical operations that have available microdata files with standard anonymization:
-
Demography and population
Population Frecuency Available series Annual Population Census Annual From 2022 Population and Housing Censuses One-time 1991, 2001, 2011 y 2021 Survey on Essential Characteristics of Population and Housing Five-yearly 2021 Sociodemographic Survey One-time 1991 Continuous Register Statistics Annual From 2003 Continuous Household Survey Annual 2014-2020 Vital Statistics Frecuency Available series Death Statistics Annual From1975 Marriage Statistics Annual From 1976 Late fetal deaths Annual From 1975 Births Annual From1975 Childbirths Annual From 1975 Migrations Frecuency Available series Statistics on Migrations and Changes of Residence Annual From 2021 National Immigrant Survey Unique 2007 Residential Variation Statistics Annual 1988-2021 Statistics on Acquisition of Spanish Citizenship of Residents Annual From 2013 Demographic analysis and studies Frecuency Available series Fertility Survey One-time 1985, 1999 y 2018
-
Society
Education Frequency Available series Survey on the Labour Insertion of University Graduates Quinquennial 2014, 2019 Survey on the Transition from Education/Training to Labour Market Insertion One-time 2005, 2019 Survey on expenditure of households in education One-time 2019-2020 y 2023-2024 Survey on the Involvement of the Adult Population in Learning Activities Quinquennial 2007, 2011 ,2016 y 2022 Survey on the International Mobility of Students Health Frequency Available series Death statistics according to cause of death Annual From 1975 Social Integration and Health Survey One-time 2012 Hospital morbidity survey Anual Desde 1978 Spain Health Survey Quarterly 2023 Health and Sexual Habits Survey One-time 2003 European Survey of Health in Spain Quinquennial 2009, 2014 y 2020 National Health Survey Quinquennial 2011 y 2017 Disability Surveys One-time 1986, 1999, 2008, 2020 y 2023 Social analysis Frecuency Available series Survey on Households and the Environment 2008 One-time 2008
-
Living conditions
Living conditions Frequency Available series Survey on homeless people One-time 2005, 2012 y 2022 Time Use Survey One-time 2002-2003, 2009-2010 Living conditions. Cross-sectional files Annual From 2004 Living conditions. Longitudinal files Annual From 2004 Household Budget Survey (Base 1985) Quarterly 1tr/1985 - 4tr/ 1997 Household Budget Survey(Base 2006) Annual From 2006 Household Budget Survey. Module on well-being One-time 2010 Other household budget surveys One-time 1980-81 y 1990-91 Other household budget surveys: Quarterly files continuous survey Quarterly 1tr/1985 - 4tr/ 2005 Other household budget surveys. Longitudinal files Annual 1998 - 2004 Survey on Equipment and Use of Information and Communication Technologies in Households Annual From 2003 European Union Households Panel. Spain results Annual 1994-2001
-
Labour market
Labour market Frequency Available series Wage Structure Survey Quadrennial 1995, 2002, 2006, 2010, 2014, 2018 y 2022 Survey on the Labour Insertion of University Graduates Quinquennial 2014, 2019 Economically Active Population Survey Quarterly From1tr/1999
-
Science and technology
Research and development Frequency Available series Survey on Human Resources in Science and Technology One-time 2009 Innovation in Companies Survey. PITEC Microdata Annual 2003-2016
-
Agriculture
Agriculture Frequency Available series Agricultural Census One-time 1982, 1989, 1999, 2009 y 2020 Survey on Production Methods in Agricultural Operations One-time 2009 Farm Structure Survey One-time From 1987
-
Services
Hotel Industry and Tourism Frequency Available series Tourist Expenditure Survey Monthly From 10/2015 Residents Travel Survey Monthly From 2/2015 Tourist Movement on Borders Monthly From 10/2015