calculatePosteriorAvg(object, NCONC=2, NDIFF=1, burnin=0)
XdeMcmc
For each iteration,
1. calculate the sign of delta * Delta 2. For each gene, compute the number of positive signs (P) and the number of negative signs (N) (a G x 2 matrix, where G is the number of genes in common across all studies). P + N is <= s,="" where="" s="" is="" the="" number="" of="" studies.<="" p="">
3. for a given gene, the discordant indicator is simply when P * N is nonzero.
4. The concordant indicator requires P * N = 0 AND P + N >= NCONC, where NCONC is specified by the user.
5. differential expression is simply | P | + | N | >= NDIFF. By default, NDIFF is 1 but can be user-specified.
The posterior average is then computed from the mean over all MCMC iterations.
=>posteriorAvg