Description Usage Arguments Value References Examples

View source: R/ttestevidence.R

Justify your alpha level by avoiding the Lindley paradox or aiming for moderate or strong evidence when using a t-test.

1 2 3 4 5 6 7 8 | ```
ttestEvidence(
evidence,
n1,
n2 = 0,
one.sided = FALSE,
rscale = sqrt(2)/2,
printplot = FALSE
)
``` |

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

`n1` |
Sample size in Group 1. |

`n2` |
Sample size in Group 2. Leave blank for a one-sample or paired-sample |

`one.sided` |
Indicates whether the test is one sided or two sided. |

`rscale` |
Scale of the Cauchy prior |

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

numeric alpha level required to avoid Lindley's paradox.

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

1 2 | ```
## Avoid the Lindley paradox for a two sample t-test with 300 participants per condition
ttestEvidence("lindley", 300, 300)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.