knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

This function aims to get 95% credible interval, which is used bayesian approach to analyze your data. We just handle normal distribution for prior distribution, also , we assume your input data follows normal distribution.

Below is an example:

sample<-rnorm(5,mean=3,sd=0.9)
getCredibleInterval(sample,c(4,1),c(3,0.9))


UBC-MDS/BlackBoxR documentation built on May 25, 2019, 1:35 p.m.