Description Usage Arguments See Also Examples
Bayes Factor for correlation test
1 | bf_corr_test(data, x, y, bf.prior = 0.707, ...)
|
data |
A dataframe (or a tibble) from which variables specified are to be taken. A matrix or a table will not be accepted. |
x |
The column in |
y |
The column in |
bf.prior |
A number between |
... |
Arguments passed on to
|
bf_contingency_tab
, bf_oneway_anova
,
bf_ttest
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # for reproducibility
set.seed(123)
library(tidyBF)
# to get dataframe
bf_corr_test(
data = anscombe,
x = x1,
y = y4,
bf.prior = 0.3,
output = "dataframe"
)
# to get expression
bf_corr_test(
data = anscombe,
x = x1,
y = y4,
bf.prior = 0.8,
output = "expression"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.