Returns Priors of a Model as Empirical Distributions
Transforms priors information to actual distributions.
simulate_prior(model, n = 1000, ...)
model |
A |
n |
Size of the simulated prior distributions. |
... |
Currently not used. |
unupdate for directly sampling from the prior
distribution (useful for complex priors and designs).
## Not run:
library(bayestestR)
if (require("rstanarm")) {
model <- stan_glm(mpg ~ wt + am, data = mtcars, chains = 1, refresh = 0)
simulate_prior(model)
}
## End(Not run)Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.