dynrmf
)fit_func.Rd
Fit univariate time series using caret ML model (for use with dynrmf
)
fit_func(
x,
y,
method = "ranger",
initial_window = 10L,
horizon = 10L,
fixed_window = FALSE,
tune_length = 5,
summary_function = NULL,
verbose = TRUE
)
A matrix of predictors
A vector of responses
The caret method to use for fitting the model
The initial window size
The forecast horizon
Whether to use a fixed window size
Length of the tuning grid
Whether to print the model summary
A model object