View source: R/is_bayesian_model.R
is_bayesian_model | R Documentation |
Small helper that checks if a model is a Bayesian model.
is_bayesian_model(x, exclude = NULL)
x |
A model object. |
exclude |
Optional character vector, indicating classes that should not
be included in the check. E.g., |
A logical, TRUE
if x
is a Bayesian model.
library(rstanarm)
model <- stan_glm(Sepal.Width ~ Species * Petal.Length, data = iris)
is_bayesian_model(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.