This is the replication and supplementary file for "Education, religion, and male fertility in sub-Saharan Africa: A descriptive analysis" by Afua Durowaa-Boateng All codes and analyses were conducted using R Studio (R version 4.4.2). The supplementary material contains 5 files 3 of which are R codes that include the models, one excel file and one cleaned DHS data. 1.The file data_mr_clean.rds was created by processing the raw DHS male recode (MR) `.dta` files obtained from https://dhsprogram.com/. These original files are publicly available but require account registration. **Data preparation includes**: - Appending all MR datasets across 36 sub-Saharan African countries - Recoding key variables (education, religion, marital status) - Correcting survey years and calculating birth cohorts - Grouping into 10-year birth cohort bins - Removing records with missing data on fertility and survey design variables - Matching country codes to country names - Rescaling sampling weights This processing was done in R using a separate script not included here to keep the replication package compact. 2. The file "data cleaning codes.R" cleans and saves the data in data_mr_clean.rds. 3. The excel "DHS country code.xlsx" has the country code with the associated survey years, full country names and sub-region. 4. The R file labeled "Male fertility and education main model.R" is the main model and the associated Figures and Tables described in the main text. In this code, the mean number of children is collected and then the regression is performed. Please note that due to the size of the data, the code might take a while to run. 5. The R file labeled "Alternative models in Figure 3.R" contains the three supplementary models in the main text. There are two means collected here, one without relationship status, for the models without relation status, and one with, similar to the one in the main model but here, the model without the interaction is run.