Description Usage Arguments Details Value Examples
Obtain scalar forecast from lasso model
1 2 3 4 5 6 7 | lasso_2_scalar_forecast(
model,
h = 1,
target = "value",
model_sample,
s = c("lambda.min", "lambda.1se")
)
|
model |
estimated lasso model |
h |
forecasting horizon |
target |
name of the target variable |
model_sample |
non-augmented data set for model estimation |
s |
criterion to select best regularization lambda in lasso |
Obtain scalar forecast from lasso model. The function automatically augments data with lags, fourier terms, trend etc.
scalar forecast for given h
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.