Description Usage Arguments Value References Examples
A Dirichlet process mixture model for clustering longitudinal gene expression data.
1 2 3 4 5 6 7 8 9 10 |
data |
Data list with three elements: Y (gene expression data with each column being one gene), ID, and years. (The names of the elements have to be matached exactly. See the data in the example section more info) |
iter |
Number of iterations (excluding the thinning). |
thin |
Number of thinnings. |
savePara |
Logical variable indicating if all the parameters needed to be saved. Default value is FALSE, in which case only the membership indicators are saved. |
infoVar |
Either "both" (using both intercepts and slopes for clustering) or "int" (using only intercepts for clustering) |
factor |
Logical variable indicating whether factor analysis model is wanted. |
hyperPara |
A list of hyperparameters with default values. |
returns a list with following objects.
e.mat |
Membership indicators from all iterations. |
All other parameters |
only returned when savePara=TRUE. |
Jiehuan Sun, Jose D. Herazo-Maya, Naftali Kaminski, Hongyu Zhao, and Joshua L. Warren. "A Dirichlet process mixture model for clustering longitudinal gene expression data." Statistics in Medicine 36, No. 22 (2017): 3495-3506.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | data(data)
## increase the number of iterations
## to ensure convergence of the algorithm
res = BClustLonG(data, iter=20, thin=2,savePara=FALSE,
infoVar="both",factor=TRUE)
## discard the first 10 burn-ins in the e.mat
## and calculate similarity matrix
## the number of burn-ins has be chosen s.t. the algorithm is converged.
mat = calSim(t(res$e.mat[,11:20]))
clust = maxpear(mat)$cl ## the clustering results.
## Not run:
## if only want to include intercepts for clustering
## set infoVar="int"
res = BClustLonG(data, iter=10, thin=2,savePara=FALSE,
infoVar="int",factor=TRUE)
## if no factor analysis model is wanted
## set factor=FALSE
res = BClustLonG(data, iter=10, thin=2,savePara=FALSE,
infoVar="int",factor=TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.