Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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
p_val p-value that rho is significantly greater than 0 using Fisher's

Examples

compute_stats(rnorm(100), rnorm(100))

rEDM

Empirical Dynamic Modeling ('EDM')

v1.10.0
BSD_2_clause + file LICENSE
Authors
Joseph Park [aut, cre] (<https://orcid.org/0000-0001-5411-1409>), Cameron Smith [aut] (<https://orcid.org/0000-0003-0020-5607>), George Sugihara [aut, ccp] (<https://orcid.org/0000-0002-2863-6946>), Ethan Deyle [aut] (<https://orcid.org/0000-0001-8704-8434>), Erik Saberski [ctb] (<https://orcid.org/0000-0002-6475-6187>), Hao Ye [ctb] (<https://orcid.org/0000-0002-8630-1458>), The Regents of the University of California [cph]
Initial release
2021-12-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.