PHStatsMethods
This is a Python package to support analysts in the execution of statistical methods approved for use in the production of Public Health indicators such as those presented via Fingertips. It provides functions for the generation of Proportions, Rates, DSRs, ISRs, Funnel plots and Means including confidence intervals for these statistics, and a function for assigning data to quantiles.
Full documenation on the package can be found on readthedocs.
Any feedback would be appreciated and can be provided using the Issues section of the PHStatsMethods GitHub repository.
Installation
This packaged should be installed using pip:
pip install PHStatsMethods
Or it can be compiled from source (still requires pip):
pip install git+https://github.com/dhsc-govuk/PHStatsMethods.git
Usage
PH_statistical_methods should be imported and used in line with standard python conventions. It is suggested that if the whole package is to be imported then the following convention is used:
import PHStatsMethods
For more information on any function, you can use:
help(PHStatsMethods.function)
QA and further development
This package has been QA'd and further development is planned and documented in the issues.
Licence
This project is released under the GPL-3 licence.
Metadata
Release files for PHStatsMethods 0.1.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| phstatsmethods-0.1.16.tar.gz | 31.0 kB | With provenance | Details for phstatsmethods-0.1.16.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| phstatsmethods-0.1.16-py3-none-any.whl | Python 3 | none | any | Details for phstatsmethods-0.1.16-py3-none-any.whl |
Total release size: 70.2 kB
Release files / phstatsmethods-0.1.16.tar.gz
| Download URL | phstatsmethods-0.1.16.tar.gz |
|---|---|
| Size | 31.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f87a7d497f009a2b0b670ac8e37a0955eb7d5e97dfaa1a76c6c942d3bc275ac
|
|
BLAKE2b-256 checksum How to use checksums |
f52a1dc8c348f9bccd7fb6e1227cc826228755a586d045353f9cde8f73728ad2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 22, 2026.
Transparency logRelease files / phstatsmethods-0.1.16-py3-none-any.whl
| Download URL | phstatsmethods-0.1.16-py3-none-any.whl |
|---|---|
| Size | 39.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
622d520b4a8a1bb677d6da0d643bbee42c07450c4bcc7aa8eaca758edeb01f5d
|
|
BLAKE2b-256 checksum How to use checksums |
b099298e976cdd53773dd743c889daa21c05d16f4a5b32c16c2e8fc897b684bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 22, 2026.
Transparency logSecurity for PHStatsMethods 0.1.16
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for phstatsmethods-0.1.16.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.