Description Usage Arguments See Also Examples
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.
1 | getMeanSDCI(getMeanSDCI.df, alpha = 0.05)
|
getMeanSDCI.df |
Data frame whose columns contain MCMC draws |
alpha |
Type I error rate for credible interval. Defaults to 0.05. |
makeCIs, getPostMeanMedCI
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.