getPostMeanMedCI: Make table of posterior mean, median, and credible interval

Description Usage Arguments See Also Examples

View source: R/getPostMeanMedCI.R

Description

Function to calculate posterior mean, median, and (1-alpha)x100 interval table based on a matrix with columns as parameters' MCMC draws

Usage

1
getPostMeanMedCI(getPostMeanMedCI.mat, alpha = 0.05)

Arguments

getPostMeanMedCI.mat

Matrix whose columns contain MCMC draws

alpha

Type I error rate for credible interval. Defaults to 0.05.

See Also

makeCIs, getMeanSDCI

Examples

1
2
3
## Calculate mean, median, and 95% quantile-based interval for columns
my.matrix = matrix(rnorm(5000,rep(1:5,each=1000),0.5),1000,5)
getPostMeanMedCI(my.matrix)

lcomm/ltools documentation built on May 20, 2019, 11:28 p.m.