ftestEvidence: Justify your alpha level by avoiding the Lindley paradox or...

Description Usage Arguments Value References Examples

View source: R/ftestevidence.R

Description

Justify your alpha level by avoiding the Lindley paradox or aiming for moderate or strong evidence when using anova.

Usage

1
ftestEvidence(evidence, df1, df2, paired = FALSE, printplot = FALSE)

Arguments

evidence

Desired level of evidence: "Lindley" to avoid the Lindley Paradox, "moderate" to achieve moderate evidence and "strong" to achieve strong evidence. Users that are more familiar with Bayesian statistics can also directly enter their desired Bayes factor.

df1

Numerator degrees of freedom.

df2

Denominator degrees of freedom.

paired

If true a within subjects design is assumed.

printplot

If true prints a plot relating Bayes factors and p-values.

Value

numeric alpha level required to avoid Lindley's paradox.

References

Maier & Lakens (2021). Justify Your Alpha: A Primer on Two Practical Approaches

Examples

1
2
## Avoid the Lindley paradox for an anova with 1 numerator and 248 denominator degrees of freedom.
ftestEvidence("lindley", 1, 248)

JustifyAlpha documentation built on Sept. 15, 2021, 9:08 a.m.