Hey all,
I am new to pymc3 and had a question regarding the glm.from_formula() patsy style. How do I define the priors using model specification to get an equivalent model to what I get from using the glm.from_formula() syntax for logistic regression.
What is the equivalent model specification for the patsy style model given under here?
with pm.Model() as logistic_model:
pm.glm.GLM.from_formula(fml,
data,
family=pm.glm.families.Binomial())
#trace = pm.sample()
approx= pm.fit(1000, method='advi',obj_optimizer=pm.adadelta())
Best