smallerize
A Python implementation of minimisation for clinical trials
Open source: Mozilla Public License 2.0
Documentation: https://smallerize.readthedocs.io.
Features
Implements minimization as described in Pocock + Simon (1975): Sequential treatment assignment with balancing for prognostic factors in the controlled clinical trial
Tested using pytest to ensure the results match the original implementation.
Pure Python module with no dependencies (pandas is useful when conducting simulations but is optional)
Includes all functions described in the article: range, standard deviation, variance, etc.
Also implements the biased-coin minimization method described in Han et al. (2009): Randomization by minimization for unbalanced treatment allocation, to allow for unequal allocation ratios.
Allows pure random assignment for comparison
Simulation module to allow simulating the effects of different assignment schemes.
Example
Comparing minimization to purely random assignment by simulation:
See the example notebook for details of the simulation.
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.5.0 (2019-05-08)
Improved performance with large numbers of factors/factor levels by making the count table sparse.
0.4.0 (2019-02-02)
Switched to Mozilla Public License.
0.3.0 (2019-01-02)
Make it easier to check the valid total imbalance and probability methods.
0.2.0 (2018-10-22)
Add the biased coin minimization method to allow for unequal treatment allocations.
0.1.0 (2018-10-07)
First release on PyPI.
Metadata
Release files for smallerize 0.5.0
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 |
|---|---|---|---|---|
| smallerize-0.5.0.tar.gz | 31.7 kB | Without provenance | Details for smallerize-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| smallerize-0.5.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for smallerize-0.5.0-py2.py3-none-any.whl |
Total release size: 48.2 kB
Release files / smallerize-0.5.0.tar.gz
| Download URL | smallerize-0.5.0.tar.gz |
|---|---|
| Size | 31.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
47ffd3dbc25aabf8f89cea63b415814c1a762c7f4e94b909ab5eab015cc2ec46
|
|
BLAKE2b-256 checksum How to use checksums |
35b4026cc003942ba079aa8441aebad13b62a7d147600da1ffc1e88749981391
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Release files / smallerize-0.5.0-py2.py3-none-any.whl
| Download URL | smallerize-0.5.0-py2.py3-none-any.whl |
|---|---|
| Size | 16.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
2266e4b703753c6c39a0cb743c02c1eec4195bf0aa4a9de216e040cca45db840
|
|
BLAKE2b-256 checksum How to use checksums |
19e0ce40d4374f5de6984f33e60551f2649f8bf125073529c671b40f9850d5da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Security for smallerize 0.5.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.