Questions tagged [fabletools]
18 questions
2
votes
0 answers
Error with fabletools forecast, Can't combine with different `week_start`
I have tsibble data with year-week and sales quantity. The year-week is of week type which starts on a Saturday (default tsibble yearweek starts on Monday). I have the fit models using fabletools::model. However when I try to fit for the next 2…

Srikiran
- 21
- 2
1
vote
1 answer
Error in `fabletools::autoplot()`: ! Provided data contains a different key structure to the forecasts
I just began working with cross validation forecasting. I can't seem to use autoplot() correctly. I'm trying to have only the last 4 years of the data be forecasted and plot it over the entire data set. When I don't specify the autoplot(), it plot…

Jack
- 31
- 5
1
vote
1 answer
Middle out fabletools reconciliation approach give problem with forecast function
I have a grouped time series with items and their category and I would like to make 6months sales forecasting.
I would like to o use intermediate level (category) to make base forecasting because the stagionality and trends maybe are better…

Federico Silvestri
- 11
- 2
1
vote
1 answer
Unnest column from `fabletools::forecast()` output
I am asking this question again because those answers don't work for my environment (see "Session Info" below), and thus I assume, don't work for the current versions of the relevant packages.
Question
How can I take the elements of a column…

josephD
- 142
- 7
1
vote
1 answer
why does forecast function from package fabletools (R) back transform log(.) but not box_cox(., lambda)
It was my impression that the forecast function from the R package fabletools automatically back transformed forecasts: "If the response variable has been transformed in the model formula, the transformation will be automatically back-transformed". …

Richard Martin
- 81
- 4
1
vote
1 answer
Inconsistent forecast behavior when using lagged xregs in R fabletools
This is a question I opened as an issue but haven't heard from the package author, so I thought I would ask the question here. Thanks!
I am noticing some inconsistencies when forecasting with lagged xregs. Specifically, forecasts for h <= lag…

Wil
- 3,076
- 2
- 12
- 31
1
vote
1 answer
Facet a fabletools autoplot of a fable forecast by model
Is there any way to use autoplot with a fable, but facet it by the model? The code below produces a nice little graph, but overlays the forecasts on top of each…

wittyalias
- 35
- 8
1
vote
1 answer
Augment a mable: residuals and innovations from regression with ARMA errors model are the same
I think there is something odd here. For example the following code gives the same values for residuals and innovations:
fit <- us_change %>%
model(ARIMA(Consumption ~ Income)) %>%
augment()
It seems that the augment() function extracts only…

QuantumJazz
- 139
- 9
1
vote
1 answer
Can't convert a tsibble to a fable
I do not have a workaround for this at the moment, so desperately looking to solve this issue, no matter how cumbersome as long as my code is working again...
I want to coerce a tsibble to a fable object with:
as_fable
Documentation says that this…

Nhaj
- 23
- 3
0
votes
1 answer
Unquote character in `.vars` argument in `fabletools::autoplot_tbl_ts()`
If I want to use a character vector in dplyr, I can do this:
library(dplyr)
#>
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#>
#> filter, lag
#> The following objects are masked from…

11rchitwood
- 25
- 1
- 6
0
votes
0 answers
fabletools models do not combine to give correct response, how to debug?
Summary
I have a tsibble that I have transformed into a mixed hierarchical (and grouped) time series. For the large majority of specified time series, I can obtain forecasts via the following:
fit <- hg_ts %>%
fabletools::model(
stl =…

josephD
- 142
- 7
0
votes
1 answer
fabletools::forecast function fails
The forecast function of the fabletools package in my R produces an error when running the following code (or in fact running any code):
fcs_1 <-
train_1 %>%
model(
ARIMA_212 = ARIMA(value ~ 0 + pdq(2,1,2) + PDQ(0,0,0)),
ARIMA_211 =…

KingOfTheMorons
- 3
- 3
0
votes
1 answer
How to combine the line series in two plots rendered in autoplot into a single plot, sharing the same y-axis and with two different x-axes?
In the below code, I render two separate plots using the autoplot() function. The first plot (transPlot1) allows the user to transform the data series via slider input, whereas the 2nd plot shows the original untransformed series (transPlot2) and is…

Village.Idyot
- 1,359
- 2
- 8
0
votes
0 answers
How to merge two tsibbles containing ?
I am trying to merge() two tsibble objects that contain aggregated values.
The reason I cannot use cbind() is because one of the aggregated tsibble objects contains values only for the "parent" level (i.e., upper-level) of the hierarchy, not the…

Eric
- 1
- 1
0
votes
1 answer
How can I plot selected plot using autoplot + facet_wrap in R?
all.
I need to plot selected one. I can plot all, but I can not fine how to plot what I select.
for example ...
date <- as.Date('2021-01-01') + 0:4
category <- c(rep("A",5), rep("B",5), rep("C",5), rep("D",5), rep("E",5))
product <-…

sean ahn
- 11
- 2