Learn R Programming

lares (version 4.7)

forecast_ml: Machine Learning Forecast

Description

This function lets the user create a forecast setting a time series and a numerical value.

Usage

forecast_ml(time, values, n_future = 15, use_last = TRUE,
  automl = FALSE, plot_forecast = TRUE, plot_model = FALSE,
  project = "Simple Forecast using Machine Learning")

Arguments

time

POSIX. Vector with dates or time values

values

Numeric. Vector with numerical values

n_future

Integer. How many steps do you wish to forecast?

use_last

Boolean. Use last observation?

automl

Boolean. Use lares::h2o_automl()

plot_forecast

Boolean. If you wish to plot your results

plot_model

Boolean. If you wish to plot your model's results

project

Character. Name of your forecast project for plot title

See Also

Other Forecast: forecast_arima, prophesize