bf_one_sample_ttest

0th

Percentile

Bayesian one-sample t-test.

Bayesian one-sample t-test.

Usage
bf_one_sample_ttest(data = NULL, x, test.value = 0, bf.prior = 0.707,
  caption = NULL, output = "null", k = 2, ...)
Arguments
data

for use with formula, a data frame containing all the data

x

a vector of observations for the first (or only) group

test.value

A number specifying the value of the null hypothesis (Default: 0).

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 "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.

See Also

bf_contingency_tab, bf_oneway_anova, bf_two_sample_ttest

Aliases
  • bf_one_sample_ttest
Examples
# NOT RUN {
# to get caption (default)
bf_one_sample_ttest(
  data = iris,
  x = Sepal.Length,
  test.value = 5.85,
  bf.prior = 0.8,
  output = "caption", k = 2
)

# to get results dataframe
bf_one_sample_ttest(
  data = iris,
  x = Sepal.Length,
  test.value = 5.85,
  bf.prior = 0.8,
  output = "results"
)
# }
Documentation reproduced from package ggstatsplot, version 0.0.11, License: GPL-3 | file LICENSE

Community examples

Looks like there are no examples yet.