bf_corr_test: Bayesian correlation test.

Description Usage Arguments Author(s) See Also Examples

Description

Bayesian correlation test.

Usage

1
2
bf_corr_test(data, x, y, bf.prior = 0.707, caption = NULL,
  output = "null", 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

Text to display as caption (will be displayed on top of the bayes factor caption/message).

output

Can either be "null" (or "caption" or "H0", which will contain text for evidence in favor of the null hypothesis or H0) or "alternative" (or "title" or "H1") or "results", which will return a dataframe with results all the details).

k

Number of digits after decimal point (should be an integer) (Default: k = 2).

...

further arguments to be passed to or from methods.

Author(s)

Indrajeet Patil

See Also

bf_contingency_tab, bf_oneway_anova, bf_two_sample_ttest

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
# 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"
)

IndrajeetPatil/ggstatsplot documentation built on June 14, 2019, 9:55 a.m.