ranger_fun: Augment data and estimate ranger model

Description Usage Arguments Details Value Examples

View source: R/modelling.R

Description

Augment data and estimate ranger model

Usage

1
ranger_fun(model_sample, seed = 777, target = "value", h = 1)

Arguments

model_sample

tsibble that will be augmented with trend etc

seed

random seed

target

name of the target variable

h

forecasting horizon

Details

Augment data and estimate random forest (ranger) model. Trend, fourier terms, lags are added before estimation of lasso model.

Value

ranger model

Examples

1
2
3
test_ts = stats::ts(rnorm(100), start = c(2000, 1), freq = 12)
test_tsibble = tsibble::as_tsibble(test_ts)
model = ranger_fun(test_tsibble)

kassandra-ru/kassandr documentation built on Jan. 1, 2022, 7:39 a.m.