computeBayesFactor: Calculate one or more Bayes factors using a...

Description Usage Arguments Value

View source: R/bootstrap.R

Description

Calculate one or more Bayes factors using a bootstrapMetricMatrix.

Usage

1
computeBayesFactor(bootstrapMetricMatrix, refPredIndex, invertBayes)

Arguments

bootstrapMetricMatrix

An NxM matrix where M is the number of bootstraps performed and N is the number of prediction sets (output of bootstrappingMetric function).

refPredIndex

Column index of the reference prediction to calculate Bayes factor (e.g. best prediction).

invertBayes

Boolean to invert Bayes factor. if(largerIsBetter == T & currentPred<=refPred)invertBayes = T, if(largerIsBetter == T & currentPred>refPred)invertBayes = F, if(largerIsBetter == F & currentPred<=refPred)invertBayes = T, if(largerIsBetter == F & currentPred>refPred)invertBayes = F

Value

A matrix of Bayes factors.


Sage-Bionetworks/challengescoring documentation built on Sept. 28, 2020, 8:27 a.m.