swh:1:snp:3a44eb759780145deea094ac2a25c5049546a085
Tip revision: 01503d05f0e8a579157a156ce4bf20791adfdab9 authored by Han Lin Shang on 11 September 2023, 13:10:02 UTC
version 6.3
version 6.3
Tip revision: 01503d0
mpe.R
mpe <- function(forecast, true)
{
if (length(forecast) != length(true))
stop("MPE: the lengths of input vectors must be the same.")
err = mean(100 * ((true - forecast) / true))
return(round(err, 6))
}