The Bayes factor provided by ttestBF tests the null hypothesis that
the true linear correlation \(\rho\) between two samples (\(y\) and \(x\))
of size \(n\) from normal populations is equal to 0. The Bayes factor is based on Jeffreys (1961)
test for linear correlation. Noninformative priors are assumed for the population means and
variances of the two population; a shifted, scaled beta(1/rscale,1/rscale) prior distribution
is assumed for \(\rho\) (note that rscale is called \(\kappa\) by
Ly et al. 2015; we call it rscale for consistency with other BayesFactor functions).
For the rscale argument, several named values are recognized:
"medium.narrow", "medium", "wide", and "ultrawide". These correspond
to \(r\) scale values of \(1/\sqrt(27)\), \(1/3\),
\(1/\sqrt(3)\) and 1, respectively.
The Bayes factor is computed via several different methods.