glmthetaf.Rd
This function implements the Theta method using a Generalized Linear Model (GLM)
glmthetaf(
y,
h = ifelse(frequency(y) > 1, 2 * frequency(y), 10),
level = 95L,
fit_func = stats::glm,
fan = FALSE,
x = y,
type_pi = c("conformal-split", "conformal-surrogate", "conformal-kde",
"conformal-bootstrap", "conformal-block-bootstrap", "conformal-fitdistr", "gaussian"),
attention = TRUE,
scale_ctxt = 1,
B = 250L,
nsim = B,
...
)
The time series data
The number of periods to forecast
The confidence level for the forecast intervals
The function to use for fitting the GLM
Logical flag for fan plot
The time series data
Logical flag for using attention mechanism
Scaling coefficient for context vector
Number of bootstrap replications or number of simulations (yes, 'B' is unfortunate)
Alias for B
Additional arguments to pass to the fit_func
A forecast object