You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I can tell based on the code below, the capability to produce prediction intervals for logistic regression has not been implemented. Apologies if I'm mistaken and just not managed to figure out how to do it. I could do the song and dance of bootstrapping, but that is not my preferred method (unless you recommend it for technical reasons over a theoretical solution). Here is a small reproducible example taken mostly from documentation:
For parsnip, we typically only wrap predictions / prediction types available from the engine and that's not the case for glm(). So from that point of view, I think it's not that likely that we'll do exactly that.
However, you can get prediction intervals via the probably package. It runs under "conformal inference", which does not make it very obvious. Max presented on this at posit::conf this year and used the alternative title "how to make prediction intervals with no parametric assumptions"... (video here). There is also a tidymodels.org article on the topic. Is that helpful?
Oh interesting, I didn't even realize that getting prediction intervals with glm() is not straightforward! In that case your line of thinking makes sense to me. Thank you for your helpful reply. I will close this now.
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.
As far as I can tell based on the code below, the capability to produce prediction intervals for logistic regression has not been implemented. Apologies if I'm mistaken and just not managed to figure out how to do it. I could do the song and dance of bootstrapping, but that is not my preferred method (unless you recommend it for technical reasons over a theoretical solution). Here is a small reproducible example taken mostly from documentation:
Session Info:
The text was updated successfully, but these errors were encountered: