Created
May 31, 2019 22:27
-
-
Save fonnesbeck/943aadc780722b2c467459f1fb6cdd0d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
df = pd.DataFrame(dict(y=np.array([2, 4, 2, 0, 4]))) | |
with pm.Model() as glm: | |
x = np.array([0.3, 1.1, 0.6, -0.2, 3.3]) | |
pm.glm.GLM.from_formula('y ~ x', data=df, family=pm.glm.families.Poisson()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment