swh:1:snp:cf20732a2a91717cec7759cd75c5d1a72600b018
Tip revision: 645c10f110efae44c5ac60025664cd27f2b46a87 authored by Dominique Makowski on 26 March 2020, 05:10:08 UTC
version 0.5.3
version 0.5.3
Tip revision: 645c10f
print.describe_posterior.R
#' @importFrom insight format_table
#' @export
print.describe_posterior <- function(x, digits = 3, ...) {
if ("data_plot" %in% class(x)) {
cat(insight::format_table(as.data.frame(x), digits = digits))
} else {
insight::print_color("# Description of Posterior Distributions\n\n", "blue")
if (!is.null(attributes(x)$ci_method) && tolower(attributes(x)$ci_method) == "si") {
cn <- gsub("^CI", "SI", colnames(x))
colnames(x) <- cn
}
print_data_frame(x, digits = digits)
}
}