calcModfstat: Function calculates a modified F-statistic for a set of...

Description Usage Arguments Details Value Author(s) Examples

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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)

attract documentation built on Nov. 8, 2020, 8:04 p.m.