powered by
Transforms priors information to actual distributions.
simulate_prior(model, n = 1000, ...)
A stanreg, stanfit, brmsfit, blavaan, or MCMCglmm object.
stanreg
stanfit
brmsfit
blavaan
MCMCglmm
Size of the simulated prior distributions.
Currently not used.
unupdate() for directly sampling from the prior distribution (useful for complex priors and designs).
unupdate()
# \donttest{ library(bayestestR) if (require("rstanarm")) { model <- suppressWarnings( stan_glm(mpg ~ wt + am, data = mtcars, chains = 1, refresh = 0) ) simulate_prior(model) } # }
Run the code above in your browser using DataLab