ASE calculator (specific to tswge) Takes the last length(xhat) entries in x and compares them to xhat

ase(x, xhat)

Arguments

x

the time series

xhat

the saved forecast (results of forecast function)

Value

the ASE

Examples

xs <- generate(arma, 200)
fore <- fcst(arma, xs, n.ahead =20, lastn = TRUE)
ase(xs, fore)
#> [1] 1.182741