This library is archived. Active development, new features, and long-term support have moved to svy. This page is preserved for citation and historical reference.
Migration Notice — 2025
What began as samplics — a Python library for design-based survey analysis — has evolved into a broader, more capable ecosystem. svy and svyLab supersede samplics with a cleaner API, expanded methodology, and active long-term support.
Where everything moved
pip install svy · Full docs at svylab.com/docs
How to cite this work
If you use samplics in published research, please cite the original JOSS paper. For work using svy, citation details are available in the svy documentation.
Diallo, M.S. (2021). samplics: a Python Package for Selecting, Weighting and Analyzing Data from Complex Sampling Designs. Journal of Open Source Software, 6(68), 3376.
@article{Diallo2021,
author = {Diallo, Mamadou S.},
title = {samplics: a Python Package for Selecting,
Weighting and Analyzing Data from Complex
Sampling Designs},
journal = {Journal of Open Source Software},
year = {2021},
volume = {6},
number = {68},
pages = {3376},
doi = {10.21105/joss.03376},
url = {https://doi.org/10.21105/joss.03376}
}
What's new in svy
Sample object replaces samplics' fragmented class structure. One design, one object, full workflow.survey package. Read the validation study →