A Power Analysis Toolkit for Python
Project description
PyStatPower
PyStatPower 是一个专注于统计领域功效分析的开源的 Python 库。
安装
pip install pystatpower
使用示例
from pystatpower.models import proportion
size = proportion.independent.noninferiority.size(
alpha=0.025,
power=0.8,
treatment_proportion=0.95,
reference_proportion=0.90,
margin=-0.10,
)
print(size)
输出:
(47.96537615435558, 47.96537615435558)
详细用法请查看 API。
鸣谢
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pystatpower-0.0.4.tar.gz
(20.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pystatpower-0.0.4.tar.gz.
File metadata
- Download URL: pystatpower-0.0.4.tar.gz
- Upload date:
- Size: 20.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
891c22853989b4cfb2c7ec8e95aaedeab3bb37159673beaa719ae3748c473fd3
|
|
| MD5 |
f723e4b97dfaf32a63ab60274dc8c23d
|
|
| BLAKE2b-256 |
1fa895751ad587415b1a15bec691f7886fe753161bcf8422c1141e75754839d0
|
File details
Details for the file pystatpower-0.0.4-py3-none-any.whl.
File metadata
- Download URL: pystatpower-0.0.4-py3-none-any.whl
- Upload date:
- Size: 22.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f85297c61c38ce7e7ce2f79b2c0f3aa99462176ddfb13c711dc109811c7ceb0b
|
|
| MD5 |
b0d875c92a1743277aee56b481f5319d
|
|
| BLAKE2b-256 |
a2c109807c66a9b90f49a1109fef6e20aa06c873faceb138944ecfc835c163b8
|