Skip to content
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

Look into supporting INLA #223

Open
mjskay opened this issue Jan 30, 2020 · 7 comments
Open

Look into supporting INLA #223

mjskay opened this issue Jan 30, 2020 · 7 comments

Comments

@mjskay
Copy link
Owner

mjskay commented Jan 30, 2020

From a cursory glance at the R-INLA API the distribution functions for posterior marginals seem like one place to start: https://becarioprecario.bitbucket.io/inla-gitbook/ch-INLA.html#sec:marginals

Combining these with the new stat_dist_... family seems a logical step. Could also think about point_interval. Not sure what the equivalent of fitted_draws() and predicted_draws() would be in this case.

Would be happy if someone more familiar with INLA was interested in helping with this or had thoughts on what would be useful.

@mjskay
Copy link
Owner Author

mjskay commented Jan 30, 2020

Also look at inla.posterior.sample()

@tmeeha
Copy link

tmeeha commented Jun 17, 2020

Hi Matthew. I use INLA a lot and would be happy to help with this. I am not a great package developer but can write R functions and know INLA posterior sampling well. Let me know if I can help. Best,
Tim

@mjskay
Copy link
Owner Author

mjskay commented Jun 17, 2020

I'd love that! I believe @dpsimpson had mentioned looking into it at some point but my guess is he had better things to do :)

There's a couple of natural directions to go I think...

  1. Implementing tidy_draws for INLA so that spread_draws / gather_draws / etc work
  2. Implementing fitted_draws and/or predicted_draws
  3. Implementing something new for outputting analytical distributions. Something like a tidy_dist, fitted_dist, and/or predicted_dist, which would return distribution vectors that build off of the {distributional} package that could be visualized by the stat_dist_ geoms (which I just recently moved to ggdist). This is something I have had in the back of my mind for awhile but haven't built for any packages yet. If you're interested in that the relevant issue on ggdist to check out is here: Support distributional package ggdist#14

@dpsimpson
Copy link

dpsimpson commented Jun 17, 2020 via email

@tmeeha
Copy link

tmeeha commented Jun 17, 2020 via email

@mjskay
Copy link
Owner Author

mjskay commented Jun 18, 2020

Cool! Thanks both. @tmeeha if you hit a snag figuring out stuff on the tidybayes side let me know

@becarioprecario
Copy link

becarioprecario commented Jun 18, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants