--------------------------------------------------------------------------------- Demographic Research Replication Material --------------------------------------------------------------------------------- Author: Jose H C Monteiro da Silva Date: 2022-01-04 Paper Title: Educational Pairings and Fertility Decline in Brazil: An Analysis Through Cohort Fertility --------------------------------------------------------------------------------- *All computations of the paper were done using software R version 4.1.2 - DIRECTORIES ------------------------------------------------------------------- The replication material of the paper contains the following directories: 1) DATA - processed data files for the analysis 1.1) IPUMS - directory left empty for the user to store the IPUMS input files extracted by the user 1.2) PROCESSED - directory left empty to store the processed data set 'prepared_data_br.RData' prepared for the analysis 2) R - R scripts for reproducing the results and for data manipulation '1_prepare_datasets.R' - script used to prepare the raw data sets of IPUMS for the analysis; its output is the 'prepared_data_br.RData' mentioned above '2_plot_tables.R' - script used to generate tables and plots of the paper '3_data_quality_evaluation.R' - script used to construct tables of the appendix A 3) OUTPUTS - contains constructed figures (FIGS/) and tables (TABLES/) of the paper --------------------------------------------------------------------------------- - DATA EXTRACTION AND PROCESSING ------------------------------------------------ The raw Brazilian censuses microdata for our analysis were extracted from IPUMS International archives (https://international.ipums.org/international/index.shtml) and the following variables were selected: - COUNTRY: country code (Brazil = 076) - YEAR: year of the census - SAMPLE: IPUMS sample number - SERIAL: household serial number - HHWT: household sample weight - GEO1_BR: Brazil state - PERNUM: person identification within each household - PERWT: person sample weight - RELATE: Relationship to household head - RELATED: Relationship to household head (detailed version) - AGE: Age - SEX: Sex - MARST: Marital status - MARSTD: Marital status (detailed version) - CHBORN: Children ever born - EDATTAIN: Educational attainment, international recode - EDATTAIND: Educational attainment, international recode (detailed version) For more details of your data extract variables, such as codification, please check the codebook files (Basic and DDI) at the IPUMS data extract page. We strongly recommend the users to create one data extraction for each census year to minimize the processing time. To process the data properly, store the DDI .xml and the data .dat files from IPUMS extraction into the DATA/IPUMS directory and execute the 1_prepare_datasets.R script adjusting the data paths when necessary. We recommend the users to store the output ('prepared_data_br.RData') in the DATA/PROCESSED directory and follow the commands of the scripts 2_ and 3_ to visualize the results. ---------------------------------------------------------------------------------