summarizeChain function

Utility function to summarize MCMC samples (posterior mean, median, HDI, std, etc.)