# bf_corr_test

From ggstatsplot v0.0.10
by Indrajeet Patil

##### Bayesian correlation test.

Bayesian correlation test.

##### Usage

```
bf_corr_test(data, x, y, bf.prior = 0.707, caption = NULL,
output = "caption", k = 2, ...)
```

##### Arguments

- data
A dataframe (or a tibble) from which variables specified are to be taken. A matrix or tables will

**not**be accepted.- x
second continuous variable

- y
first continuous variable

- bf.prior
A number between 0.5 and 2 (default

`0.707`

), the prior width to use in calculating Bayes factors.- caption
The text for the plot caption.

- output
Can either be

`"caption"`

(which will contain text for evidence in favor of null) or`"results"`

(which will return the dataframe with results).- k
Number of digits after decimal point (should be an integer) (Default:

`k = 2`

).- ...
further arguments to be passed to or from methods.

##### See Also

##### Examples

```
# NOT RUN {
# for reproducibility
set.seed(123)
# to get caption (default)
bf_corr_test(
data = anscombe,
x = x1,
y = y4,
bf.prior = 1
)
# to see results
bf_corr_test(
data = anscombe,
x = x1,
y = y4,
bf.prior = 0.8,
output = "results"
)
# }
```

*Documentation reproduced from package ggstatsplot, version 0.0.10, License: GPL-3 | file LICENSE*

### Community examples

Looks like there are no examples yet.