Computes the element-wise percent error between the input vectors.
error_pct(actual, predicted)
actual | A numeric vector with the actual values |
---|---|
predicted | A numeric vector with the predicted values. Each element in
this vector must be a prediction for the corresponding element in
|
Returns a double vector with the element-wise percent error values.
A vector of the class lvmisc_percent
with the element-wise
percent error values.
#> <lvmisc_percent[10]> #> [1] 52.5607083423358% -1274.13680853546% 88.6675345076705% 17.7582313929908% #> [5] -161.977316958006% -493.004885582235% -162.658192788149% -128.528689149666% #> [9] -43.9375733013789% -421.010228069884%