Description Usage Arguments Value Examples
View source: R/HierBipartite.R
Selects clusters from bipartite graph-based hierarchical clustering with p-value less than or equal to a p-value cutoff.
1 | getSignificantMergedGroups(results, p = 0.05)
|
results |
list of results from bipartite graph-based hierarchical clustering |
p |
p-value cutoff |
list of results from bipartite graph-based hierarchical clustering, but only with clusters with p-value at or below p-value cutoff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # sample bipartite graph-based hierarchical clustering of three groups
data(ctrp2)
groups = ctrp2$groups
X = ctrp2$X
Y = ctrp2$Y
groupNames = names(groups)
groupSmall = groups[groupNames[1:3]]
## Not run:
result = hierBipartite(X, Y, groupSmall)
# set fictitious p-values, with one cluster with p-value less than the cutoff
# and the other not
result$nodePvals = list(0.03, 0.12)
getSignificantMergedGroups(result, p = 0.05)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.