Test the significance of a subcluster directly under a given cluster. If it is not significant, the subcluster is eliminated and its element are merged in the main cluster. Bootstrap samples of the underlying data needs to be provided, as well as the structure under consideration.
ClusterNodeSelection(cluster, testPos, alpha, data, BootData)
the main cluster (of the form provided by the function hclust2tree)
the position of the subcluster to test, directly under the main cluster
the confidence level for the tests
the underlying data
the dataframe of bootstrap samples of Spearman rho, with columns named "(i,j)", where "i" and "j" are different leaves
The main cluster, with or without the node under test, wether the hypothesis can be rejected or not.
The hypothesis testing is made with the matrix of Spearman's rho for a given dataset, see gaisser2010testingerhcv.
gaisser2010testingerhcv