Learn R Programming

tidybayes (version 0.12.1.9000)

tidybayes-models: Models supported by tidybayes

Description

Tidybayes supports two classes of models and sample formats: Models that provide prediction functions, and those that do not.

Arguments

All Supported Models

All supported models support the base tidybayes sample extraction functions, such as as_sample_tibble, spread_samples, and gather_samples. These models include:

If you install the tidybayes.rethinking package (available at https://github.com/mjskay/tidybayes.rethinking), map and map2stan models from the rethinking package are also supported.

Models Supporting Prediction

In addition, the following models support fit and prediction extraction functions, such as add_fitted_samples and add_predicted_samples:

If you install the tidybayes.rethinking package, models from the rethinking package are also supported. Note that in tidybayes.rethinking, tidy_link takes the place of add_fitted_samples and tidy_sim takes the place of add_predicted_samples.

Extending tidybayes

To include basic support for new models, one need only implement the as_sample_tibble generic function for that model.

To include support for estimation and prediction, one must implement the fitted_samples and predicted_samples generic functions.