getMeanSDCI: Make table of posterior mean, standard deviation, and...

Description Usage Arguments See Also Examples

View source: R/getMeanSDCI.R

Description

Function to calculate posterior mean, standard deviation, and (1-alpha)x100 credible interval resultle based on a data frame with columns as parameters' MCMC draws. Column names will be taken as parameter labels.

Usage

1
getMeanSDCI(getMeanSDCI.df, alpha = 0.05)

Arguments

getMeanSDCI.df

Data frame whose columns contain MCMC draws

alpha

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

See Also

makeCIs, getPostMeanMedCI

Examples

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

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