hist.post.dist: Histogram of posterior distributions.

post.dist.histR Documentation

Histogram of posterior distributions.

Description

Histogram of posterior distributions.

Usage

post.dist.hist(data, true=NULL, breaks = 20, mean = FALSE, median = TRUE)

Arguments

data

Matrix of size p x Nmc where p denotes the number of parameters and Nmc the number of MCMC samples.

true

The true value of the parameters (for simulation only).

breaks

Parameter for 'hist()' function.

mean

logical; if 'TRUE' the mean is added to the histogram.

median

logical; if 'TRUE' the median is added to the histogram.

Value

Histograms illustrating posterior distributions.

Author(s)

Fabio Sigrist


spate documentation built on Oct. 3, 2023, 5:09 p.m.