library(ahead)
library(forecast)
myfitfunc <- function(x, y) ahead::fit_func(x, y, method = "glmnet")
(obj1 <- ahead::dynrmf(USAccDeaths, h=20L, level=99))
(obj2 <- ahead::dynrmf(USAccDeaths, fit_func = myfitfunc, predict_func = ahead::predict_func, h=20L, level=99))
plot(obj1)
plot(obj2)


Techtonique/ahead documentation built on Nov. 24, 2024, 10:33 a.m.