powered by
Generate predictions from the prior distribution to assess whether priors are reasonable before seeing the data.
prior_predictive_check(formula, data, family, prior, n_samples = 1000)
A ggplot object showing the prior predictive distribution
Model formula
Data frame (used for structure, not values)
Model family
Prior specification
Number of prior predictive samples (default: 1000)
if (FALSE) { prior_predictive_check( mpg ~ hp + wt, data = mtcars, family = gaussian(), prior = prior(normal(0, 10), class = "b") ) }
Run the code above in your browser using DataLab