knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
Meaning of formulae in torchts package slightly differs from the typical
way we can understand this object in the most of regression models in R.
It should not be a surprise - some formulae syntax innovations can be found, for instance,
in other time series related packages such as fable and modeltime.
This is how we read a formula in the torchts:
You should always specify a time-related variable as date, integer index etc. You are not obliged to specify value explicitly on the right side of the formula.
In some cases, especially in the demand forecasting, there exist some variable that are known in advance (as future price or holidays). Sometimes we can treat some other forecasts (e.g. weather forecast) as a known values to feed the model with.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.