summaryDIRECT {DIRECT}  R Documentation 
Function summaryDIRECT
processes posterior estimates in the output files from DIRECT
for clustering and parameter estimation.
summaryDIRECT(data.name, PERM.ADJUST = FALSE)
data.name 
A character string indicating the prefix of output files. 
PERM.ADJUST 
If TRUE, add 1 to labels of mixture components such that the labels start from 1 instead of 0. 
Output files from DIRECT
include MCMC samples before relabeling and permuted labels of mixture components after relabeling. Function summaryDIRECT
uses permuted labels stored in output file *_mcmc_perms.out to reorganize the MCMC samples stored in other output files *_mcmc_cs.out, *_mcmc_pars.out and *_mcmc_probs.out. It defines each mixture component as a cluster.
A list with components:
nitem 
The number of items in the data. 
nclust 
The number of inferred clusters. 
top.clust.alloc 
A vector of length 
cluster.sizes 
Vector of cluster sizes. 
top.clust.labels 
An integer vector of labels of inferred clusters. The integers are not necessarily consecutive; that is, an inferred mixture component that is associated with items at small posterior allocation probabilities is dropped from the final list of cluster labels. 
top2allocations 
A data frame containing "first", the most likely allocation; "second", the second most likely allocation; "prob1", the posterior allocation probability associated with "first"; and "prob2", the posterior allocation probability associated with "second". 
post.alloc.probs 
A 
post.clust.pars.mean 
A matrix of 
post.clust.pars.median 
A matrix of 
misc 
A list containing two components:

Audrey Q. Fu
Fu, A. Q., Russell, S., Bray, S. and Tavare, S. (2013) Bayesian clustering of replicated timecourse gene expression data with weak signals. The Annals of Applied Statistics. 7(3) 13341361.
DIRECT
for what output files are produced.
simuDataREM
for simulating data under the mixture randomeffects model.
## See example in DIRECT.