-
-
Notifications
You must be signed in to change notification settings - Fork 123
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
Predict new groups docs #734
Predict new groups docs #734
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
The tests failing are related to PyMC issue #6941. |
View / edit / reply to this conversation on ReviewNB tomicapretto commented on 2023-10-10T00:51:19Z Thanks for the very clear explanation in the second paragraph :) GStechschulte commented on 2023-10-10T04:55:52Z Thank you! :) |
View / edit / reply to this conversation on ReviewNB tomicapretto commented on 2023-10-10T00:51:19Z I'm not familiar with
Also, what is the reason to scale GStechschulte commented on 2023-10-10T04:02:48Z The patient ID's are long, e.g.,
Yes, since tomicapretto commented on 2023-10-10T11:09:30Z Makes sense. I get it makes things easier later when you want to predict for particular individuals. Maybe this can be achieved by doing something like
|
View / edit / reply to this conversation on ReviewNB tomicapretto commented on 2023-10-10T00:51:20Z I would add that we exclude the global intercept so GStechschulte commented on 2023-10-10T04:53:56Z I am a bit confused on the "deflection" terminology. When you say "deflection" are you describing "variation"? For example,
However, we do include a deflection around the weeks slope with weeks | patient
Is like saying "the weeks slope is allowed to vary by individual patients"?
Edit: I just looked up deflection regarding statistical modelling:
"deflection" is often used to describe how coefficients (typically regression coefficients) deviate or vary from some reference point. It is a way to express how the effect of a predictor variable varies across different groups or levels of that variable.
tomicapretto commented on 2023-10-10T11:12:26Z Is like saying "the weeks slope is allowed to vary by individual patients"? Exactly. The slope for an individual "j" is "b_{week, j} = b_week + u_j". |
View / edit / reply to this conversation on ReviewNB tomicapretto commented on 2023-10-10T00:51:22Z Do we need to use this very large number of GStechschulte commented on 2023-10-10T04:09:22Z Nope, and increasing draws reduces the autocorrelation, and nope :) |
View / edit / reply to this conversation on ReviewNB tomicapretto commented on 2023-10-10T00:51:23Z I would say something around the posteriors for GStechschulte commented on 2023-10-10T04:20:07Z Yup, good catch!
|
@GStechschulte it's already in very good shape, just some minor comments. |
The patient ID's are long, e.g.,
Yes, since
View entire conversation on ReviewNB |
Nope, and increasing draws reduces the autocorrelation, and nope :) View entire conversation on ReviewNB |
Yup, good catch!
View entire conversation on ReviewNB |
I am a bit confused on the "deflection" terminology. When you say "deflection" are you describing "variation"? For example,
However, we do include a deflection around the weeks slope with weeks | patient
Is like saying "the weeks slope is allowed to vary by individual patients"?
Edit: I just looked up deflection regarding statistical modelling:
"deflection" is often used to describe how coefficients (typically regression coefficients) deviate or vary from some reference point. It is a way to express how the effect of a predictor variable varies across different groups or levels of that variable.
View entire conversation on ReviewNB |
Thank you! :) View entire conversation on ReviewNB |
Thanks for the kind words and review! Much appreciated! |
Makes sense. I get it makes things easier later when you want to predict for particular individuals. Maybe this can be achieved by doing something like
Edit Just saw that you already modified it. View entire conversation on ReviewNB |
Is like saying "the weeks slope is allowed to vary by individual patients"? Exactly. The slope is "b_{week, j} = b_week + u_j". View entire conversation on ReviewNB |
@GStechschulte looks perfect, thanks! |
This PR adds docs for the new
sample_new_groups
arg. inmodel.predict()
that was merged in PR #693. The notebook explains the motivation for the new arg. (related to hierarchical models) and how to use it to predict new groups either: directly withmodel.predict()
, or withbmb.interpret.comparisons
.