Python implementation of Logistic Regression with Firth's bias reduction
Project description
firthlogist
A Python implementation of Logistic Regression with Firth's bias reduction.
WIP!
Installation
pip install firthlogist
Usage
firthlogist follows the sklearn API.
from firthlogist import FirthLogisticRegression
firth = FirthLogisticRegression()
firth.fit(X, y)
coefs = firth.coef_
pvals = firth.pvals_
bse = firth.bse_
References
Firth, D (1993). Bias reduction of maximum likelihood estimates. Biometrika 80, 27–38.
Heinze G, Schemper M (2002). A solution to the problem of separation in logistic regression. Statistics in Medicine 21: 2409-2419.
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
firthlogist-0.1.0.tar.gz
(25.8 kB
view details)
Built Distribution
File details
Details for the file firthlogist-0.1.0.tar.gz
.
File metadata
- Download URL: firthlogist-0.1.0.tar.gz
- Upload date:
- Size: 25.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.5 Linux/5.17.5-76051705-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37166255da855ce5e0588992eda9a21ba6a6e7de60cdde671ed160130c08b332 |
|
MD5 | c29b1f589068074da908004298bea852 |
|
BLAKE2b-256 | fef83082388a96bea462df6146036baba8d78d9d93fffcca23b5ea54eec63aae |
File details
Details for the file firthlogist-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: firthlogist-0.1.0-py3-none-any.whl
- Upload date:
- Size: 27.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.5 Linux/5.17.5-76051705-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e9eee1cb63e129f5a534f6872ab3042fe8da12d8bce07d2c345e10c959b35c1 |
|
MD5 | 3e76f44dcaedf0617f1cf9ed09f1f79b |
|
BLAKE2b-256 | dfbe8ff660e4e2739826289c9d4a51d6a14538736a7ec23d926f2eee299c2cbf |