Skip to content

Instantly share code, notes, and snippets.

View rcsmit's full-sized avatar

Rene Smit rcsmit

View GitHub Profile
import pandas as pd
import statsmodels.api as sm
import numpy as np
from patsy import dmatrices
def log_regression(a,b,c,d):
"""Calculate VE and CI's according
https://timeseriesreasoning.com/contents/estimation-of-vaccine-efficacy-using-logistic-regression/