cumplot: Plot the cumulative median, mean, and 95% high posterior...

View source: R/cumplot.R

cumplotR Documentation

Plot the cumulative median, mean, and 95% high posterior density region.

Description

Plot the cumulative median, mean, and 95% high posterior density region.

Usage

cumplot(x, ylab = NULL, burn = 0, thin = 1, hpd_level = 0.95)

Arguments

x

An vector of MCMC draws.

ylab

An optional y-axis label.

burn

Integer specifying the number of initial iterations to be discarded.

thin

Integer specifying the thinning factor to be used on the MCMC steps.

hpd_level

Floating point specifying the desired HPD level.

Value

A ggplot showing the cumulative mean, median and HPD.

Examples

x <- rnorm(1000)
cumplot(x)

bayefdr documentation built on Oct. 27, 2022, 1:05 a.m.