chooseK | R Documentation |
This function can be used for choosing the optimal number of clusters using AIC or BIC scores.
chooseK(bnlist, fun = c("AIC", "BIC", "likel"))
bnlist |
list of objects of class 'bnclustOmics' |
fun |
score function for choosing the optimal number of clusters; available options are 'AIC' or 'BIC' |
a list consisting of a vector of scores extracted from each object of class bnclustOmics and the optimal k
bnlist<-list() #bnlist[[k]]<-bnclustOmics(simdata,bnnames,maxEM=4, kclust=k,startpoint = "mclustPCA") bnlist[[2]]<-bnres2 bnlist[[3]]<-bnres3 bnlist[[4]]<-bnres4 chooseK(bnlist,fun="BIC") chooseK(bnlist,fun="AIC")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.