correlation | R Documentation |
Use this function to get correlation of two vectors with various metrics.
correlation(x, y, metrics = "pearson", threshold = NULL,
quantiles = NULL)
list
The values of specified correlation metrics between two given vectors by the specified metrics.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.