Learn R Programming

rEDM (version 1.8.2)

compute_stats: Compute performance metrics for predictions

Description

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

Arguments

observed

a vector of the observed values

predicted

a vector of corresponding predicted values

Value

A data.frame with components with various performance metrics:

num_pred number of predictions
rho correlation coefficient between observations and predictions
mae mean absolute error
rmse root mean square error
perc percent correct sign

Examples

Run this code
# NOT RUN {
compute_stats(rnorm(100), rnorm(100))
# }

Run the code above in your browser using DataLab