plotPrior | R Documentation |
Check priors used in ease of use brms functions
plotPrior(priors, type = "density", n = 200, t = 25)
priors |
A named list of means for prior distributions.
This takes the same input as the prior argument of |
type |
Either "density", the default, or a model as would be specified in |
n |
Numeric, if type is a model then how many draws from the prior should be simulated? |
t |
Numeric, time passed to growthSim. Defaults to 25 (the growthSim default). |
A named list of plots showing prior distributions that growthSS
would use,
optionally with a plot of simulated growth curves using draws from those priors.
barg for Bayesian model reporting metrics, growthSim for simulating data using similar specification.
set.seed(123)
priors <- list("A" = c(100, 130), "B" = c(10, 8), "C" = c(0.2, 0.1))
plotPrior(priors)
plotPrior(priors, "gompertz")[[1]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.