Skip to content

R code to reproduce models testing for cross-national human fertility patterns relative to underlying drivers

License

Notifications You must be signed in to change notification settings

FutureChildHealth/humanfertility

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Human fertility models

DOI

contraception

R code to reproduce models testing for cross-national human fertility patterns relative to underlying drivers

code updated December 2022

R code accompanies the following paper:

Bradshaw, CJA, C Perry, M Judge, CM Saraswati, J Heyworth, PN Le Souëf. 2023. Lower infant mortality, lower household size, and more access to contraception reduce fertility in low- and middle-income nations. PLoS One doi:10.1371/journal.pone.0280260

Pre-print (out-of-date) also available here.

Abstract

Although average contraceptive use has increased globally in recent decades, an estimated 222 million (26%) of women of child-bearing age worldwide face an unmet need for family planning — defined as a discrepancy between fertility preferences and contraception practice, or failing to translate desires to avoid pregnancy into preventative behaviours and practices. While many studies have reported relationships between availability/quality of contraception and family planning, infant mortality, and fertility, these relationships have not been evaluated quantitatively across a broad range of low- and middle-income countries. Using publicly available data from 64 low- and middle-income countries, we collated test and control variables in six themes: (i) availability of family planning, (ii) quality of family planning, (iii) female education, (iv) religion, (v) mortality, and (vi) socio-economic conditions. We predicted that higher nation-level availability/quality of family-planning services and female education reduce average fertility, whereas higher infant mortality, great household size (a proxy for population density), and religious adherence increase it. Given the sample size, we first constructed general linear models to test for relationships between fertility and the variables from each theme, from which we retained those with the highest explanatory power within a final general linear model set to determine the partial correlation of dominant test variables. We also applied boosted regression trees, generalised least-squares models, and generalised linear mixed-effects models to account for non-linearity and spatial autocorrelation. On average among all countries, we found the strongest associations between fertility and infant mortality, household size, and access to any form of contraception. Higher infant mortality and household size increased fertility, whereas greater access to any form of contraception decreased it fertility. Female education, home visitations by health workers, quality of family planning, and religious adherence all had weak, if any, explanatory power. Our models suggest that decreasing infant mortality, ensuring sufficient housing to reduce household size, and increasing access to contraception will have the greatest effect on decreasing global fertility. We thus provide new evidence that progressing the United Nation’s Sustainable Development Goals for reducing infant mortality can be accelerated by increasing access to family planning.


Prof Corey J. A. Bradshaw
Global Ecology | Partuyarta Ngadluku Wardli Kuu, Flinders University, Adelaide, Australia
August 2022
e-mail
  • main script humanFertilityGitHubV3.R includes all data preparation and modelling steps
  • new_lmer_AIC_tables3.R (source file)
  • r.squared.R (source file)

All data sourced from the following online databases: (i) Demographic and Health Surveys, (ii) Family Planning Effort Index, (iii) Multiple Indicator Cluster Surveys, (iv) National Composite Index on Family Planning, (v) World Bank, (vi) World Inequality Database, and (vii) World Health Organization Global Health Observatory, Association of Religion Data Archives.

  • basedata.update.csv = main input data
  • matmort.update.csv = maternal mortality data
  • pop.yr.update.csv = national population data
  • continent.country2.csv = naming file necessary for data merging

Requires the following R libraries

Flinders University logo GEL logo UWA logo

About

R code to reproduce models testing for cross-national human fertility patterns relative to underlying drivers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%