R/prediction.R
prediction_correlation.Rd
Prediction correlation
prediction_correlation(y_true, y_pred)
Observed response values.
Predicted response values.
Pearson correlation.
prediction_correlation( c(2, 4, 6, 8), c(2.2, 3.8, 5.7, 8.1) ) #> [1] 0.9958095