ranger_fun.Rd
Augment data and estimate ranger model
ranger_fun(model_sample, seed = 777, target = "value", h = 1)
model_sample | tsibble that will be augmented with trend etc |
---|---|
seed | random seed |
target | name of the target variable |
h | forecasting horizon |
ranger model
Augment data and estimate random forest (ranger) model. Trend, fourier terms, lags are added before estimation of lasso model.
test_ts = stats::ts(rnorm(100), start = c(2000, 1), freq = 12) test_tsibble = tsibble::as_tsibble(test_ts) model = ranger_fun(test_tsibble)