Skip to contents

Calculate correlation between predictions and truth.

Usage

CalculateCorrelation(predictions, truth, method = "pearson")

Arguments

predictions

Numeric vector or matrix of predictions.

truth

Numeric vector or matrix of true values.

method

Character. Correlation method ("pearson" or "spearman"). Default is "pearson".

Value

Correlation coefficient.