Skip to main content
Ctrl+K

FPsim

  • FPsim overview
  • Tutorials
  • What’s new
  • API reference
  • Web
  • GitHub
  • FPsim overview
  • Tutorials
  • What’s new
  • API reference
  • Web
  • GitHub

Section Navigation

  • analyzers
    • snapshot
    • cpr_by_age
    • method_mix_by_age
    • age_pyramids
    • lifeof_recorder
    • track_as
    • education_recorder
    • state_tracker
    • method_mix_over_time
  • arrays
    • TwoDimensionalArr
  • calibration
    • Calibration
  • defaults
    • get_location
    • register_location
  • demographics
    • get_partnership_init_vals
    • init_partnership_states
  • education
    • EduPars
    • Education
    • make_edu_pars
  • experiment
    • Experiment
    • Fit
    • compute_gof
    • diff_summaries
  • interventions
    • change_par
    • update_methods
    • change_people_state
    • change_initiation_prob
    • change_initiation
  • methods
    • Method
    • ContraPars
    • ContraceptiveChoice
    • RandomChoice
    • SimpleChoice
    • StandardChoice
    • make_methods
    • make_method_list
    • make_contra_pars
  • parameters
    • SimPars
    • FPPars
    • make_sim_pars
    • make_fp_pars
    • all_pars
  • scenarios
    • Scenario
    • Scenarios
    • make_scen
  • settings
  • sim
    • Sim
  • utils
    • fpsim.utils.DuplicateNameException
  • API reference
  • methods

methods#

Contraceptive methods

Idea:

A method selector should be a generic class (an intervention?). We want the existing matrix-based method and the new duration-based method to both be instances of this.

Classes

Method

ContraPars

ContraceptiveChoice

RandomChoice

Randomly choose a method of contraception

SimpleChoice

StandardChoice

Default contraceptive choice module.

Functions

make_methods

make_method_list

make_contra_pars

Shortcut for making a new instance of ContraPars

previous

change_initiation

next

Method

  • FPsim overview
  • Tutorials
  • What’s new
  • API reference

© Copyright 2019 - 2025, Gates Foundation. All rights reserved. These docs were built for FPsim version 3.3.0 .

FPsim is licensed under the MIT License. Questions? Feedback? We'd love to hear from you! Email [email protected].

Built with the PyData Sphinx Theme 0.16.1.

Privacy and Cookies Notice | Terms of Use