Learn R Programming

BayesPower (version 1.0.1)

BF10.f.test: Bayes factor for a Bayesian F-test

Description

Calculate the Bayes factor (BF10) for an F-test, either against a point null or an interval null hypothesis.

Usage

BF10.f.test(fval, df1, df2, dff, rscale, f_m, model, e = NULL)

Value

The Bayes factor (BF10) for the F-test.

Arguments

fval

Observed F-value from the F-test.

df1

Degrees of freedom for the numerator of the F-test.

df2

Degrees of freedom for the denominator of the F-test.

dff

Degrees of freedom for the analysis prior under the alternative hypothesis (if applicable).

rscale

Scaling parameter for the analysis effect size prior.

f_m

Cohen's f effect size parameter for the analysis prior.

model

Statistical model of the analysis prior under the alternative hypothesis: effect size prior ("effectsize") or Moment prior ("Moment").

e

Optional numeric vector specifying bounds for an interval null; used if interval BF is calculated.

Examples

Run this code
BF10.f.test(
  fval = 4.5,
  df1 = 2,
  df2 = 12,
  dff = 12,
  rscale = 0.707,
  f_m = .1,
  model = "effectsize"
)

Run the code above in your browser using DataLab