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 April 14, 2025, 12:51 p.m.