gavinsimpson / gratia

ggplot-based graphics and useful functions for GAMs fitted using the mgcv package
https://gavinsimpson.github.io/gratia/
Other
206 stars 28 forks source link

Implement a standalone function to generate posterior draws from a fitted model #211

Closed gavinsimpson closed 1 year ago

gavinsimpson commented 1 year ago

Sampling from the posterior of a fitted model can be time consuming and needn't be redone for each analysis requiring posterior samples.

Implement a new function to interface with the sampler functions in R/samplers.R, which shall return the posterior draws. Ultimately these should be passed to relevant functions via a samples argument and setting method = "user".