Skip to content

Instantly share code, notes, and snippets.

View jds485's full-sized avatar

Jared D. Smith jds485

View GitHub Profile
@jds485
jds485 / firth_regression.py
Last active January 27, 2021 22:42 — forked from johnlees/firth_regression.py
Firth regression in python
'''
#!/usr/bin/env python
'''
'''Python implementation of Firth regression by John Lees
See https://www.ncbi.nlm.nih.gov/pubmed/12758140
'''
import sys
import warnings
import math