Tidybayes supports two classes of models and sample formats: Models/formats that provide prediction functions, and those that do not.
All supported models/formats support the base tidybayes sample extraction functions, such as
gather_draws. These models/formats include:
jags.model models, if sampled using
mcmc.list objects, which are output by several model
Any object with an implementation of
as.mcmc.list. For a list of those available in your
If you install the
tidybayes.rethinking package (available at
map2stan models from the
rethinking package are also supported.
In addition, the following models support fit and prediction extraction functions, such as
If your model type is not in the above list, you may still be able to use the
function to turn matrices of predictive draws (or fit draws) into tidy data frames.
If you install the tidybayes.rethinking package, models from
the rethinking package are also supported. Note that in
tidy_link takes the place of
tidy_sim takes the place of
To include basic support for new models, one need only implement the
tidy_draws generic function
for that model.
To include support for estimation and prediction, one must implement the
predicted_draws generic functions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.