BCI: Summarize Bayesian posterior parameter distribution.

View source: R/BCI.R

BCIR Documentation

Summarize Bayesian posterior parameter distribution.

Description

Summarizes posterior samples as median and credible intervals using specified percentiles.

Usage

BCI(x, ndig = 2, BCIpercent = 95, flag.sig = T)

Arguments

x

Numeric vector of samples drawn from posterior parameter distribution.

ndig

Number of significant digits to display in summary.

BCIpercent

Percent of posterior samples to be included in credible interval.

flag.sig

If 'TRUE' asterisk is added to summaries with BCIs that exclude zero.

Value

Character string: "[median] ([lower bound], [upper bound])".

Author(s)

Quresh S. Latif


qureshlatif/QSLpersonal documentation built on Sept. 12, 2023, 6:24 p.m.