View source: R/clusterLongData.R
getBestPostProba | R Documentation |
Given a ClusterLongData
object that hold a
Partition
, this function extract the best
posterior probability of each individual.
getBestPostProba(xCld, nbCluster, clusterRank = 1)
xCld |
|
nbCluster |
|
clusterRank |
|
Given a ClusterLongData
object that hold a
Partition
, this function extract the best
posterior probability of each individual.
A vector of numeric.
ClusterLongData
### Move to tempdir
wd <- getwd()
setwd(tempdir()); getwd()
### Creation of an object ClusterLongData
myCld <- gald(20)
### Computation of some partition
kml(myCld,2:4,3)
### Extraction the best posterior probabilities
### form the list of partition with 3 clusters of the second clustering
getBestPostProba(myCld,3,2)
### Go back to current dir
setwd(wd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.