Learn R Programming

BayesMultMeta (version 0.1.1)

bayes_inference: Summary statistics from a posterior distribution

Description

Given a univariate sample drawn from the posterior distribution, this function computes the posterior mean, the posterior median, the posterior standard deviation, and the limits of the \((1-\alpha)\) probability-symmetric credible interval.

Usage

bayes_inference(x, alp)

Arguments

x

Univariate sample from the posterior distribution of a parameter.

alp

Significance level used in the computation of the credible interval

Value

a matrix with summary statistics