Learn R Programming

kml (version 2.4.6.1)

getBestPostProba: ~ Function: getBestPostProba ~

Description

Given a ClusterLongData object that hold a Partition, this function extract the best posterior probability of each individual.

Usage

getBestPostProba(xCld, nbCluster, clusterRank = 1)

Value

A vector of numeric.

Arguments

xCld

[ClusterLongData]: object from who a cluster should be extracted.

nbCluster

[integer]: number of cluster of the desired cluster.

clusterRank

[integer]: rank of the partition in the clusters list.

Details

Given a ClusterLongData object that hold a Partition, this function extract the best posterior probability of each individual.

See Also

ClusterLongData

Examples

Run this code
### 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)

Run the code above in your browser using DataLab