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)

USCbiostats/HiLDA documentation built on Oct. 15, 2021, 10:22 a.m.