-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
What is the p
random variable for in glm models?
#1717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
Hm, yeah, that shouldn't be there. Not sure where that's coming from. |
I was trying to have a go at this but really had no idea what to do - any pointers? |
I think https://github.com/pymc-devs/pymc3/blob/master/pymc3/glm/families.py#L104 just needs to be an empty dict. |
uhho
added a commit
to uhho/pymc3
that referenced
this issue
Feb 22, 2017
An attempt to solve pymc-devs#1717 and issues with `docs/source/notebooks/GLM-logistic.ipynb` at the same time. This commits reverts change made in PR pymc-devs#685.
Is this issue fixed now? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I was using glm to create a simple logistic regression model, and I noticed that it seems to be adding a random variable named
p
. This variable is sampled over along with the intercept and coefficients, and changing its value seems to affect the total logp of the model. (I.e., if I pass in samples to the model'slogp
method that differ only inp_logodds_
I get different return values).I don't understand what this variable is for, and I am concerned that it is interfering with proper sampling---at any rate, when I sample from the model it seems to give results which strongly disagree with the equivalent model and data in R.
Is
p
meant to be there? If so, what is it for?Minimal confusing example:
Thanks!
The text was updated successfully, but these errors were encountered: