bayestestR (version 0.5.3)

reshape_ci: Reshape CI between wide/long formats

Description

Reshape CI between wide/long formats.

Usage

reshape_ci(x)

Arguments

x

A data.frame containing CI_low and CI_high.

Examples

Run this code
# NOT RUN {
library(bayestestR)

x <- data.frame(replicate(4, rnorm(100)))
x <- ci(x, ci = c(0.68, 0.89, 0.95))
reshape_ci(x)
reshape_ci(reshape_ci(x))

x <- data.frame(replicate(4, rnorm(100)))
x <- describe_posterior(x, ci = c(0.68, 0.89, 0.95))
reshape_ci(x)
reshape_ci(reshape_ci(x))
# }

Run the code above in your browser using DataCamp Workspace