Computes the rho, MAE, RMSE, perc, and p-val performance metrics using the compiled C++ function

Arguments

observed

a vector of the observed values

predicted

a vector of the corresponding predicted values

Value

A data.frame with components for the various performance metrics:

num_prednumber of predictions
rhocorrelation coefficient between observations and predictions
maemean absolute error
rmseroot mean square error
percpercent correct sign
p_valp-value that rho is significantly greater than 0 using Fisher's

Examples

compute_stats(rnorm(100), rnorm(100))
#> num_pred rho mae rmse perc p_val #> 1 100 -0.02677797 1.189457 1.47319 0.5 0.6040312