# Prepare statistical object
test_bf <- BayesFactor::ttestBF(mtcars$vs, mtcars$am)
# Format Bayes factor
format_stats(test_bf)
# Control cutoff for output
format_stats(test_bf, cutoff = 3)
# Change digits, remove italics and subscript
format_stats(test_bf, digits2 = 1, italics = FALSE, subscript = "")
# Return only Bayes factor value (no label)
format_stats(test_bf, label = "")
# Format for LaTeX
format_stats(test_bf, type = "latex")
Run the code above in your browser using DataLab