maxbf: Maximum BF Analysis

View source: R/coetest.R

maxbfR Documentation

Maximum BF Analysis

Description

This function evaluates the likelihood of the highest reached Bayes Factor.

Usage

maxbf(data, sims.df = sims)

Arguments

data

A a seqbf object or vector containing Bayes Factors.

sims.df

A dataframe containing simulations, including columns "simid" and "bf".

Details

The highest reached (Maximum) BF of the experimental data is compared to those of all simulations. An unusual peak can be assumed if less than 5% of simulations show a higher BF at any time.

Value

A list containing the Maximum BF of the experimental data, its position in the temporal order of data points, and the proportion of simulations with higher BFs at any time.

Examples

r.maxbf <- maxbf(seqbf, sims)
r.maxbf <- maxbf(tbl$bf, sims.df = newsims)

mrzdcmps/changeofevidence documentation built on Feb. 27, 2025, 3:10 a.m.