Skip to contents

evaluate_results This function evaluates the PRESS, RMSE, MAE, R2 and the % of variance between Y and Y_hat

Usage

evaluate_results(Y, Y_hat)

Arguments

Y

a vector of real values

Y_hat

a vector of modeled values

Value

a dataframe

Author

Francois Bassac

Examples

evaluate_results(c(1,2,3,4,5), c(0.9, 2.2, 4, 5.5, 5))
#>   PRESS      RMSE  MAE   R2  var_Y
#> 1   3.3 0.8124038 0.56 0.67 149.48