clusterProfile | R Documentation |
Calculate t-tests or wilcoxon (rank sum) tests for each cluster in
a clustering against the total distributions. The resulting tables
can be plotted with plotOverlaps
and sorted along one
axis by signficance with plotOverlaps
.
clusterProfile(x, cls, test = stats::t.test, min.obs = 5, replace = FALSE)
x |
matrix of numeric values where columns are different data
sets and rows must correspond to the clustering in argument
|
cls |
a clustering of the rows in argument |
test |
test function to be applied, default is
|
min.obs |
minimal number of non-NA observations |
replace |
test with replacement, i.e., each cluster is tested against the whole data set, including the cluster items ## TODO: instead of passing function, pass a type and handle numbers ## betterer, eg. normalized U-statistic for wilcox - OR handle this ## in plotOverlaps by statistic type! |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.