Skip to content

Instantly share code, notes, and snippets.

View PescheHelfer's full-sized avatar

Pesche Helfer PescheHelfer

View GitHub Profile
@rspeare
rspeare / p_values_for_logreg.py
Last active February 4, 2024 02:50
P values for sklearn logistic regression
from sklearn import linear_model
import numpy as np
import scipy.stats as stat
class LogisticReg:
"""
Wrapper Class for Logistic Regression which has the usual sklearn instance
in an attribute self.model, and pvalues, z scores and estimated
errors for each coefficient in