mPlusCorExact: Add this to the exact two-sided Bayes factor to get bfPlus0

View source: R/pearson.R

mPlusCorExactR Documentation

Add this to the exact two-sided Bayes factor to get bfPlus0

Description

#' Exact bf10, bfPlus0, bfMin0 based on the exact

Usage

mPlusCorExact(n, r, kappa = 1)

Arguments

n

integer representing sample size

r

numeric in (-1, 1) sample Pearson correlation r

kappa

numeric > 0 sample

Details

for Pearson's correlation based on the exact reduced likelihood, see Ly et al. (2018).

Value

Returns bf10, bfPlus0, bfMin0 and the stretched beta fit of the posterior.

Exact BF10 for Pearson's correlation based on the exact reduced likelihood, see Ly et al. (2018).

Returns Bayes factor BF10 in favour of the alternative over the null


AlexanderLyNL/bstats documentation built on Sept. 11, 2023, 4:10 p.m.