Transforms priors information to actual distributions.
Arguments
- model
A
stanreg
,stanfit
,brmsfit
,blavaan
, orMCMCglmm
object.- n
Size of the simulated prior distributions.
- ...
Currently not used.
See also
unupdate()
for directly sampling from the prior
distribution (useful for complex priors and designs).
Examples
if (FALSE) {
library(bayestestR)
if (require("rstanarm")) {
model <- stan_glm(mpg ~ wt + am, data = mtcars, chains = 1, refresh = 0)
simulate_prior(model)
}
}