powered by
Calculate the Bayes factor (BF10) for a correlation, either against a point null or an interval null hypothesis.
BF10.cor( r, n, k, alpha, beta, h0, hypothesis, location, scale, dff, model, e = NULL )
The Bayes factor (BF10) for the correlation test.
Observed correlation coefficient.
Sample size.
Parameter for the analysis default beta prior under the alternative hypothesis.
Parameter for the analysis beta prior under the alternative hypothesis.
Null value of the correlation.
The hypothesis being tested: two-sided ("!="), right-sided (">"), or left-sided ("<").
"!="
">"
"<"
Location parameter for the analysis prior under the alternative hypothesis.
Scale parameter for the analysis normal moment prior under the alternative hypothesis.
Degrees of freedom for the analysis prior under the alternative hypothesis (if applicable).
Statistical model of the analysis prior under the alternative hypothesis: default beta ("d_beta"), beta ("beta"), or normal moment ("NLP").
"d_beta"
"beta"
"NLP"
Optional numeric vector specifying bounds for an interval null; used if interval BF is calculated.
BF10.cor( r = 0.3, n = 50, k = 1, alpha = 0.05, beta = 0.2, h0 = 0, hypothesis = "!=", location = 0, scale = 1, dff = 49, model = "d_beta" )
Run the code above in your browser using DataLab