Arguments
- x
A numeric vector
- y
A numeric vector
Value
A tibble with the computed error metrics.
Examples
x <- rnorm(100)
y <- rnorm(100)
plot(x,y)
calc_error(x,y)
#> # A tibble: 5 × 2
#> error value
#> <chr> <dbl>
#> 1 MAE 1.18
#> 2 MAPE 5.09
#> 3 MSE 2.16
#> 4 RMSE 1.47
#> 5 RMSPE 16.0