Reports Pearson r, Spearman rho, MSE/MSPE, RMSE, R^2, calibration slope and intercept.
Value
list(estimate (Pearson r), pearson_r, spearman_rho, mse, mspe, rmse, r2, slope, intercept, n, method).
Examples
set.seed(1)
morie_prediction_accuracy(y_true = rbinom(50, 1, 0.5), y_pred = rbinom(50, 1, 0.5))
#> $estimate
#> [1] 0.2975751
#>
#> $pearson_r
#> [1] 0.2975751
#>
#> $spearman_rho
#> [1] 0.2975751
#>
#> $mse
#> [1] 0.36
#>
#> $mspe
#> [1] 0.36
#>
#> $rmse
#> [1] 0.6
#>
#> $r2
#> [1] -0.4202899
#>
#> $slope
#> [1] 0.3004926
#>
#> $intercept
#> [1] 0.4137931
#>
#> $n
#> [1] 50
#>
#> $method
#> [1] "Pearson r + Spearman rho + MSE/MSPE + calibration"
#>
