powered by
Extract confidence intervals from a vector of samples
extract_ci(x, CI_level = seq(0.1, 0.9, 0.1), type = c("eti", "hdi"))
Vector of samples from a distribution.
Vector containing the level of the confidence/credible intervals.
"eti" for equal-tailed intervals and "hdi" for highest density intervals.
Dataframe with columns: Lower, Upper, Level.
Lower
Upper
Level.
# NOT RUN { x <- rexp(1e4) extract_ci(x, type = "eti") extract_ci(x, type = "hdi") # }
Run the code above in your browser using DataLab