powered by
Creates list or generates a plot of prior samples
sample_priors(priors, n_samples = 10000, plot = "ggplot")
A list containing the initialisation values.
list
An object of class brmsprior from package brms.
brmsprior
The number of prior samples to return.
NA returns a list of numeric vectors of sampled priors, "ggplot" (default) returns a ggplot and "base" returns a histogram in base R.
ggplot
bnec
library(bayesnec) data(manec_example) exmp <- pull_brmsfit(manec_example, model = "nec4param") sample_priors(exmp$prior)
Run the code above in your browser using DataLab