kmeansProbaPost {coseq} | R Documentation

## Calculate conditional probabilities of cluster membership for K-means clustering

### Description

Calculate conditional probabilities of cluster membership for K-means clustering

### Usage

    kmeansProbaPost(clusters, tcounts)

### Arguments

`clusters` | Cluster labels arising from K-means clustering
`tcounts` | Transformed counts clustered using K-means

### Value

Conditional probabilities of cluster membership for each observation in each cluster

### Examples

    ## Example of K-means taken from ?kmeans help page
    x <- rbind(matrix(rnorm(100, sd = 0.3), ncol = 2),
               matrix(rnorm(100, mean = 1, sd = 0.3), ncol = 2))
               colnames(x) <- c("x", "y")
    cl <- kmeans(x, 5)
    probaPost <- kmeansProbaPost(cl$cluster, x)
    head(probaPost)

[Package coseq version 1.18.0 Index]