beta.by.gene: Utility to Associate the Value of \(\beta\) with the Feature it is Assocated With
Description
The model associates the coefficients of the random effects with the cluster number. However the cluster numbers are not unique. This utility associates the coefficient with gene that is in the cluster, for each cluster number.
Usage
beta.by.gene(supcluster.list)
Arguments
supcluster.list
The output of supcluster
Value
A matrix is returned with dimensions, the number of MCMC iterations by the number of genes/features +1. The first column is the chain number and the remain columns are the beta value for each of the gene/features
# NOT RUN {dat=generate.cluster.data(1)[[1]]
us=supcluster(dat,outcome="outcome",features=1:50,maxclusters=6,nstart=20,n=40)
vs=beta.by.gene(us)
colMeans(vs[,2:7])
# }