hildaGlobalResult: Compute the Bayes factor

Description Usage Arguments Value Examples

View source: R/hilda_diagnosis.R

Description

Compute the Bayes factor

Usage

1
hildaGlobalResult(jagsOutput, pM1 = 0.5)

Arguments

jagsOutput

the output jags file generated by the jags function from the R2jags package.

pM1

the probability of sampling the null (default: 0.5)

Value

a number for the Bayes factor

Examples

1
2
3
4
load(system.file("extdata/sample.rdata", package="HiLDA"))
hildaGlobal <- hildaTest(inputG=G, numSig=3, refGroup=1:4, nIter=1000,
localTest=TRUE)
hildaGlobalResult(hildaGlobal)

HiLDA documentation built on Nov. 8, 2020, 11:09 p.m.