correlation: Use this function to get correlation of two vectors with...

View source: R/mltools.R

correlationR Documentation

Use this function to get correlation of two vectors with various metrics.

Description

Use this function to get correlation of two vectors with various metrics.

Usage

correlation(x, y, metrics = "pearson", threshold = NULL,
  quantiles = NULL)

Value

list The values of specified correlation metrics between two given vectors by the specified metrics.

Fields

x

vector or table first vector. If a table or matrix is passed, correlation is measured for each column of the table.

y

vector second vector (must have the same number of elements/rows as vector/table x)

metrics

character specifying which metrics you desire to be computed. Valid values are pearson, log_loss, aurc, gini, tp, fn, fp, tn, tpr, fnr, fpr, tnr, ppv, fdr, npv, pt, ts, csi, ba, recall, sensitivity, hit_rate, miss_rate, f1, specificity, selectivity, fall_out, precision, accuracy, fmi, informedness, markedness, mcc, for, lift, optsplit.chi, optsplit.f1


genpack/maler documentation built on Jan. 27, 2025, 1:23 p.m.