Quantify the strength of the evidence provided by the data to a model/hypothesis according to Bayes factor interpretation scales suggested by Jeffreys (1961) and Kass and Raftery (1995) .
bfactor_log_interpret(bf, scale = "jeffreys", base = exp(1))
bf | A numeric vector. |
---|---|
scale | A string of characters specifying either "jeffreys" or "kass-raftery". Not case sensitive. |
base | A numeric vector of |
Returns a character vector with the same length
as bf
.
Bayes factors are a summary of the evidence provided by the data to a model/hypothesis, and are often reported on a logarithmic scale. Jeffreys (1961) suggested the interpretation of Bayes factors in half-units on the base 10 logarithmic scale, as indicated in the following table:
log10(Bayes factor) | Bayes factor | Evidence |
[-Inf, 0[ | [0, 1[ | Negative |
[0, 0.5[ | [1, 3.2[ | Weak |
[0.5, 1[ | [3.2, 10[ | Substantial |
[1, 1.5[ | [10, 32[ | Strong |
[1.5, 2[ | [32, 100[ | Very Strong |
[2, +Inf[ | [100, +Inf[ | Decisive |
By default, bfactor_log_interpret
takes (base base
) logarithms of Bayes factors as input and returns the strength of the evidence in favor of the model/hypothesis in the numerator of the Bayes factors (usually the null hypothesis) according to the aforementioned table.
Alternatively, and because it can be useful to consider twice the natural logarithm of the Bayes factor (which is in the same scale as the familiar deviance and likelihood ratio test statistics), Kass and Raftery (1995) suggested the following scale:
2*log(Bayes factor) | Bayes factor | Evidence |
[-Inf, 0[ | [0, 1[ | Negative |
[0, 2[ | [1, 3[ | Weak |
[2, 6[ | [3, 20[ | Positive |
[6, 10[ | [20, 150[ | Strong |
[10, +Inf[ | [150, +Inf[ | Very Strong |
To interpret base base
logarithms of Bayes factors according to the latter table use scale = "kass-raftery"
.
When comparing Bayes factors with results from standard likelihood ratio tests it is convenient to put the null hypothesis in the denominator of the Bayes factor so that bfactor_log_interpret
returns the strength of the evidence against the null hypothesis. If bf
was obtained with the null hypothesis on the numerator, one can use bfactor_log_interpret(1/bf)
or bfactor_log_interpret(1/bf, scale = "kass-raftery")
to obtain the strength of the evidence against the null hypothesis.
Jeffreys H (1961).
Theory of probability, Oxford Classic Texts In The Physical Sciences, 3 edition.
Oxford University Press.
Kass RE, Raftery AE (1995).
“Bayes factors.”
Journal of the American Statistical Association, 90(430), 773--795.
bfactor_interpret
for the interpretation of Bayes factors in levels.
bfactor_to_prob
to turn Bayes factors into posterior probabilities.
bcal
for a p-value calibration that returns lower bounds on Bayes factors in favor of point null hypotheses.
#> Warning: bfactor_log_interpret' is deprecated. Please use #> 'polya::bfactor_log_interpret(bf)' #> instead.#> [1] "Weak"#> Warning: bfactor_log_interpret' is deprecated. Please use #> 'polya::bfactor_log_interpret(bf)' #> instead.#> [1] "Weak"#> Warning: bfactor_log_interpret' is deprecated. Please use #> 'polya::bfactor_log_interpret(bf)' #> instead.#> [1] "Weak"# Interpretation of the natural log of many Bayes factors bfactor_log_interpret(log(c(0.1, 1.2, 3.5, 13.9, 150)))#> Warning: bfactor_log_interpret' is deprecated. Please use #> 'polya::bfactor_log_interpret(bf)' #> instead.#> [1] "Negative" "Weak" "Substantial" "Strong" "Decisive"#> Warning: bfactor_log_interpret' is deprecated. Please use #> 'polya::bfactor_log_interpret(bf)' #> instead.#> [1] "Negative" "Weak" "Positive" "Positive" "Strong"# Interpretation of the base-10 log of many Bayes factors bfactor_log_interpret(log10(c(0.1, 1.2, 3.5, 13.9, 150)), base = 10)#> Warning: bfactor_log_interpret' is deprecated. Please use #> 'polya::bfactor_log_interpret(bf)' #> instead.#> [1] "Negative" "Weak" "Substantial" "Strong" "Decisive"#> Warning: bfactor_log_interpret' is deprecated. Please use #> 'polya::bfactor_log_interpret(bf)' #> instead.#> [1] "Negative" "Weak" "Positive" "Positive" "Very Strong"