Skip to content

Snoopy1866/pystatpower

Repository files navigation

PyStatPower

PyPI - Version PyPI - Python Version GitHub License PyPI - Status PyPI Downloads

Build Status Test Status Documentation Status codecov pre-commit.ci status

uv Ruff pytest

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)

鸣谢

About

A Power Analysis Toolkit for Python

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages