bayes_inference: Summary statistics from a posterior distribution

View source: R/BayesMultMeta.R

bayes_inferenceR Documentation

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-α) 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


BayesMultMeta documentation built on June 9, 2022, 9:06 a.m.