sample_priors {bayesnec}R Documentation

sample_priors

Description

Creates list or generates a plot of prior samples

Usage

sample_priors(priors, n_samples = 10000, plot = "ggplot")

Arguments

priors

An object of class brmsprior from package brms.

n_samples

The number of prior samples to return.

plot

NA returns a list of numeric vectors of sampled priors, "ggplot" (default) returns a ggplot and "base" returns a histogram in base R.

Value

A list containing the initialisation values.

See Also

bnec


[Package bayesnec version 2.0.2 Index]