getSignificantMergedGroups {hierBipartite} | R Documentation |
Select Significant Results from 'HierBipartite'
Description
Selects clusters from bipartite graph-based hierarchical clustering with p-value less than or equal to a p-value cutoff.
Usage
getSignificantMergedGroups(results, p = 0.05)
Arguments
results |
list of results from bipartite graph-based hierarchical clustering |
p |
p-value cutoff |
Value
list of results from bipartite graph-based hierarchical clustering, but only with clusters with p-value at or below p-value cutoff
Examples
# 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)
[Package hierBipartite version 0.0.2 Index]