calcModfstat {attract} | R Documentation

## Function calculates a modified F-statistic for a set of cluster assignments.

### Description

Function calculates a modified F-statistic for a set of cluster assignments.

### Usage

    calcModfstat(exprs.dat, cl, class.vector)

### Arguments

`exprs.dat` | a `matrix` of gene expression values.
`cl` | a `vector` of cluster assignments.
`class.vector` | a `vector` specifying group membership of the samples.

### Details

This function is called internally by `findSynexprs`.

### Value

a modified F-statistic (average MSS/average RSS) value for a set of cluster assignments.

### Author(s)

Jessica Mar

### Examples

    ## Not run:
    library(cluster)
    data(subset.loring.eset)
    clustObj <- agnes(as.dist(1-t(cor(exprs(subset.loring.eset)))))
    cfmod.vals <- NULL
    for( i in 1:10 ){
    	cfmod.vals <- c(cfmod.vals, calcModfstat(exprs(subset.loring.eset), cutree(clustObj,i), pData(subset.loring.eset)$celltype))
    }
    k <- (1:10)[cfmod.vals==max(cfmod.vals)]

    ## End(Not run)

[Package attract version 1.44.0 Index]