maxbgrRatio: ~~function to do ... ~~

Usage Arguments Examples

Usage

1

Arguments

x

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (x) 
{
    t1 = mcmc(x[, 1, drop = F])
    t2 = mcmc(x[, 2, drop = F])
    t3 = mcmc(x[, 3, drop = F])
    cols.to.drop = seq(dim(t1)[2])[apply(t1, 2, var) == 0]
    if (length(cols.to.drop > 0)) {
        t1 = t1[, -cols.to.drop, drop = F]
        t2 = t2[, -cols.to.drop, drop = F]
        t3 = t3[, -cols.to.drop, drop = F]
    }
    max.bgrRatio = max(gelman.diag(list(t1, t2, t3), autoburnin = F)[[1]][, 
        1])
    return(max.bgrRatio)
  }

jservadio/TrialistNof1 documentation built on May 20, 2019, 2:08 a.m.