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_
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.0.2.tar.gz
(15.2 kB
view details)
Built Distribution
File details
Details for the file firthlogist-0.0.2.tar.gz
.
File metadata
- Download URL: firthlogist-0.0.2.tar.gz
- Upload date:
- Size: 15.2 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 | 1bd30c4003d2efbf99eaba9377f3b04cd912f5fa8e819ddf43a6fd17b3449d37 |
|
MD5 | e92e5cb3ac25cde4783fb55da5852ae4 |
|
BLAKE2b-256 | 12805217b8f1c49619249a429e2953a079be68c47fe805f7c423c23adb4d2ba6 |
File details
Details for the file firthlogist-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: firthlogist-0.0.2-py3-none-any.whl
- Upload date:
- Size: 15.9 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 | 42d9872f6971e7bb46347476d883f6bb99349ff2b77386e9ccd836045e969c31 |
|
MD5 | 2e584d102924dcdc49c460994a42a676 |
|
BLAKE2b-256 | a5b05c1ee7ad4709595a54bf90f9730d61c1c4164545cf163505e99ece25fe91 |