Code Monkey home page Code Monkey logo

humanfertility's Introduction

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

humanfertility's People

Contributors

cjabradshaw avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.