Tutorials
These tutorials build up from a first simulation to customizing FPsim with your own contraceptive methods. Work through them in order; each assumes the previous ones.
If you have not installed FPsim yet, start with Installation.
| Tutorial | What it covers |
|---|---|
| Getting started | Defining parameters, running a simulation, plotting results |
| Understanding contraceptive use | Contraceptive choice, method mix, and how use evolves |
| Interventions and methods | Changing method efficacy and uptake with interventions |
| Intervention eligibility | Targeting an intervention at a specific subpopulation |
| Adding a new method | Introducing a new contraceptive method mid-simulation |
To run these locally rather than reading them, start a Jupyter environment in the docs/tutorials folder with either jupyter lab or jupyter notebook.
See also
- API reference for full details on the classes used here