bayesplain.core.regression.log_bayes_factor_slope

bayesplain.core.regression.log_bayes_factor_slope(fit, scale=0.707)[source]

Log Zellner-Siow Bayes factor for “the slope is not zero”.

Parameters:
fit : LineFit

From fit_line().

scale : float, default 0.707

Width of the Cauchy prior on the standardised slope. R’s BayesFactor::regressionBF defaults to sqrt(2) / 4 (about 0.354); pass that to reproduce it.

Returns:

log(BF10).

Return type:

float