data(ybar, ss)
nreps <- c(8,8)
## Note this is a very short MCMC run!
## For good analysis need proper burn-in period.
outdir <- BGmix(ybar, ss, nreps, jstar=-1, nburn=0, niter=100, nthin=1)
params <- ccParams(outdir)
res <- ccTrace(outdir)
tpp.res <- TailPP(res, nreps, params, plots = FALSE)
pi0 <- EstimatePi0(tpp.res$tpp, tpp.res$pp0)
Run the code above in your browser using DataLab