Performs the feature-clustering using Pearson correlation tests. Valid for both, bi-class and multi-class problems.
D2MCS::GenericHeuristic
-> PearsonHeuristic
new()
Creates a PearsonHeuristic object.
PearsonHeuristic$new()
heuristic()
Test for association between paired samples using Pearson test.
PearsonHeuristic$heuristic(col1, col2, column.names = NULL)
col1
A numeric vector or matrix required to perform the clustering operation.
col2
A numeric vector or matrix to perform the clustering operation.
column.names
An optional character vector with the names of both columns.
clone()
The objects of this class are cloneable with this method.
PearsonHeuristic$clone(deep = FALSE)
deep
Whether to make a deep clone.
The test statistic is based on Pearson's product moment correlation coefficient cor(x, y) and follows a t distribution with length(x)-2 degrees of freedom if the samples follow independent normal distributions. If there are at least 4 complete pairs of observation, an asymptotic confidence interval is given based on Fisher's Z transform.
Dataset
, cor