Learn R Programming

D2MCS (version 1.0.1)

SpearmanHeuristic: Feature-clustering based on Spearman Correlation Test.

Description

Performs the feature-clustering using Spearman's rho statistic.

Arguments

Super class

D2MCS::GenericHeuristic -> SpearmanHeuristic

Methods


Method new()

Creates a SpearmanHeuristic object.

Usage

SpearmanHeuristic$new()


Method heuristic()

Test for correlation between paired samples using Spearman rho statistic.

Usage

SpearmanHeuristic$heuristic(col1, col2, column.names = NULL)

Arguments

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.

Returns

A numeric vector of length 1 or NA if an error occurs.


Method clone()

The objects of this class are cloneable with this method.

Usage

SpearmanHeuristic$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Details

Spearman's rho statistic is to estimate a rank-based measure of association. These tests may be used if the data do not necessarily come from a bivariate normal distribution.

See Also

Dataset, cor.test