Learn R Programming

rEDM (version 1.14.3)

compute_stats: Compute performance metrics for predictions

Description

Computes the rho, MAE, RMSE, perc, and p-val performance metrics

Value

A data.frame with components with 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

Arguments

observed

a vector of the observed values

predicted

a vector of corresponding predicted values

Examples

Run this code
compute_stats(rnorm(100), rnorm(100))

Run the code above in your browser using DataLab