correlation {ECoL}R Documentation

Measures of feature correlation


Regression task. These measures calculate the correlation of the values of the features to the outputs. If at least one feature is highly correlated to the output, this indicates that simpler functions can be fitted to the data.



## Default S3 method:
correlation(x, y, measures = "all",
  summary = c("mean", "sd"), ...)

## S3 method for class 'formula'
correlation(formula, data, measures = "all",
  summary = c("mean", "sd"), ...)



Not used.


A data.frame contained only the input attributes.


A response vector with one value for each row/component of x.


A list of measures names or "all" to include all them.


A list of summarization functions or empty for all values. See summarization method to more information. (Default: c("mean", "sd"))


A formula to define the output column.


A data.frame dataset contained the input and output attributes.


The following measures are allowed for this method:


Maximum feature correlation to the output (C1) calculate the maximum absolute value of the Spearman correlation between each feature and the outputs.


Average feature correlation to the output (C2) computes the average of the Spearman correlations of all features to the output.


Individual feature efficiency (C3) calculates, for each feature, the number of examples that must be removed from the dataset until a high Spearman correlation value to the output is achieved.


Collective feature efficiency (C4) computes the ratio of examples removed from the dataset based on an iterative process of linear fitting between the features and the target attribute.


A list named by the requested correlation measure.


Ana C Lorena and Aron I Maciel and Pericles B C Miranda and Ivan G Costa and Ricardo B C Prudencio. (2018). Data complexity meta-features for regression problems. Machine Learning, 107, 1, 209–246.

See Also

Other complexity-measures: balance, dimensionality, linearity, neighborhood, network, overlapping, smoothness


## Extract all correlation measures for regression task
correlation(speed ~ ., cars)

[Package ECoL version 0.3.0 Index]