swh:1:snp:2c68a6c5a8af2f06ac2c0225927f25b54fd1f9d0
Tip revision: e1fa15d202de277bb07e58bb3013557724072b2b authored by Dominique Makowski on 22 September 2019, 15:30:05 UTC
version 0.3.0
version 0.3.0
Tip revision: e1fa15d
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)", "Bayes Factor")
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 movel vs. the un-restricted model.\n")
if (log) insight::print_color("\nBayes Factors are on the log-scale.\n", "red")
invisible(x)
}