Skip to contents

Default MCMC plot (trace, density, or both)

Usage

morie_bayes_plot(x, type = c("trace", "density", "both"), param = 1L, ...)

Arguments

x

A morie_bayes_fit.

type

"trace", "density", or "both" (BS6.2/6.3/6.5).

param

Which parameter (index or name); default the first.

...

Passed to plot().

Value

NULL, invisibly.

Examples

set.seed(1)
df <- data.frame(y = rnorm(40), x = rnorm(40))
fit <- morie_bayes_lm(y ~ x, data = df, iter = 500L, warmup = 250L)
morie_bayes_plot(fit, type = "trace")