https://github.com/cran/bayestestR
Revision d8462ad2168ad7ee61c0d7e679174e775f01a9be authored by Dominique Makowski on 18 January 2020, 07:10:02 UTC, committed by cran-robot on 18 January 2020, 07:10:02 UTC
1 parent 4936034
Tip revision: d8462ad2168ad7ee61c0d7e679174e775f01a9be authored by Dominique Makowski on 18 January 2020, 07:10:02 UTC
version 0.5.0
version 0.5.0
Tip revision: d8462ad
print.bayesfactor_restricted.R
#' @export
print.bayesfactor_restricted <- function(x, digits = 2, log = FALSE, ...) {
BFE <- x
if (log) {
BFE$BF <- log(BFE$BF)
}
BFE$BF <- .format_big_small(BFE$BF, digits = digits)
colnames(BFE) <- c("Hypothesis", "P(Prior)", "P(Posterior)", "BF")
insight::print_color("# Bayes Factor (Order-Restriction)\n\n", "blue")
print.data.frame(BFE, digits = digits, row.names = FALSE)
cat("\n* Bayes factors for the restricted model vs. the un-restricted model.\n")
if (log) insight::print_color("\nBayes Factors are on the log-scale.\n", "red")
invisible(x)
}
Computing file changes ...