Skip to main content

FPsim: Family Planning Simulator

Project description

FPsim: Family Planning Simulator

This repository contains the code for the Institute for Disease Modeling's family planning simulator, FPsim.

FPsim is currently under development.

User guide

FPsim is designed as an open-source tool for family planning research. However, it is not a silver bullet tool. It is designed to answer complex questions about emerging dynamics in complex social and behavioral systems. Its strength stems from a life-course approach, which allows researchers to examine how compounding and temporal effects unfold over women's lives, and how these individual-level changes lead to macro-level outcomes.

Before using FPsim, please refer to the following guidelines:

  • FPsim is only as good as the data and assumptions provided. Be sure you are familiar with both before using FPsim.
  • FPsim is not a replacement for good data. The model cannot tell you what demand for a hypothetical method will be.
  • FPsim is not a replacement for descriptive statistics. Before using FPsim, assess your primary research question(s). Can they be answered using descriptive statistics?
  • FPsim cannot predict exogenous events. Use caution when interpreting and presenting results. For example, FPsim cannot predict regional conflicts or pandemics, nor their impacts on FP services.

Repo structure

The structure is as follows:

  • FPsim, in the folder fpsim, is a standalone Python library for performing family planning analyses.
  • Within fpsim, the locations folder contains parameters and input data for all countries currently calibrated.
  • Docs are in the docs folder.
  • Examples are in the examples folder.
  • Tests are in the tests folder.

Installation

Run pip install fpsim to install and its dependencies from PyPI. Alternatively, clone the repository and run pip install -e . (including the final dot!). To be able to run tests and build the docs as well, use pip install -e .[dev].

Documentation

Documentation is available at https://docs.fpsim.org.

Disclaimer

The code in this repository was developed by IDM and other collaborators to support our joint research on family planning. We've made it publicly available under the MIT License to provide others with a better understanding of our research and an opportunity to build upon it for their own work. Note that FPsim depends on a number of user-installed Python packages that can be installed automatically via pip install. We make no representations that the code works as intended or that we will provide support, address issues that are found, or accept pull requests. You are welcome to create your own fork and modify the code to suit your own modeling needs as contemplated under the MIT License. See the contributing and code of conduct READMEs for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fpsim-3.5.3.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fpsim-3.5.3-py3-none-any.whl (998.8 kB view details)

Uploaded Python 3

File details

Details for the file fpsim-3.5.3.tar.gz.

File metadata

  • Download URL: fpsim-3.5.3.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fpsim-3.5.3.tar.gz
Algorithm Hash digest
SHA256 1cc4e6941ce65cf0718f79ee35c7f78aca1d5c09f3affef919f00c0ebd5d79b9
MD5 0301c0523cf097d4411a973677010271
BLAKE2b-256 a2ab4ccb90f856b091e4719648a7980ccb7601803583085a40d7a1f81efe1ec5

See more details on using hashes here.

Provenance

The following attestation bundles were made for fpsim-3.5.3.tar.gz:

Publisher: pypi_release.yml on starsimhub/fpsim

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fpsim-3.5.3-py3-none-any.whl.

File metadata

  • Download URL: fpsim-3.5.3-py3-none-any.whl
  • Upload date:
  • Size: 998.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fpsim-3.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 54b57fd43abb3dff2d286b17dd39cb9581773d22d359e88ea8a657981d561451
MD5 08cbe910a3b440013dbb3f2da3fd82f5
BLAKE2b-256 3a7d75eb9ad11571a0d83e80b10741cb46f4ef2628ffce45d60a08317a0c40cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for fpsim-3.5.3-py3-none-any.whl:

Publisher: pypi_release.yml on starsimhub/fpsim

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page