Questions tagged [tsibble]

R package for tidy time series (tsibble: Tidy Temporal Data Frames and Tools)

tsibble: Tidy Temporal Data Frames and Tools

Provides a 'tbl_ts' class (the 'tsibble') for temporal data in an data- and model-oriented format.

The 'tsibble' provides tools to easily manipulate and analyse temporal data, such as filling in time gaps, aggregating over calendar periods, and etc.

119 questions
2
votes
0 answers

Timeseries in R error with fable: slicing a scalar

I am trying to use the tidyverts packages (tsibble, feasts, fable) to do some time series analysis. I am following along the tutorial here. The data is ten years of daily counts. > summary(mockTsib) Date CallTypeCode calls…
Adrian Martin
  • 780
  • 7
  • 21
2
votes
1 answer

Setting index in a tsibble

Do you ever look back a your old questions and feel a bit embarrassed? I just did, and now I do. And I'll probably feel the same about this one at some point. I'm trying to move my forecasting work to fable. In the process I'm trying to use a…
tjbrooks
  • 91
  • 2
  • 12
2
votes
1 answer

Fitting a model to a high frequency timeseries and forecasting on the short term using fable

I have a timeseries of a value with a fairly high frequency (15 minutes). The timeseries has no missing values and shows some daily and weekly periodic components. I'm trying to model it using fable in R, but I can't seem to find any decent result,…
AF7
  • 3,160
  • 28
  • 63
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

Forecasting with ARIMA and dummy variables

I am attempting to include a dummy regressor that notes the beginning of the pandemic and runs a regression with ARIMA errors. My dataset revolves around breaking & entering's happening in Toronto from 2014 to 2021. The issue is that the trend takes…
1
vote
2 answers

Error when passing new_data back to transformation in ARIMA model to generate forecast

This is a follow up to the question posed here: new_transformation not working with multiple inputs from tsibble object inside ARIMA When passing back a CPI forecast as new_data to undo the CPI transformation, I receive an error. Any thoughts? Here…
Matt R
  • 25
  • 5
1
vote
0 answers

R combination forecast using tsibble, code coerces to a tibble instead of a mable, can't change back

I'm following Dr. Rob Hyndman's textbook on time series forecasting in R. I'm in Chapter 13 which talks about Practical Forecasting Issues (and I'm having issues while working through the practical forecasting issue section!) Specifically, I'm…
hachiko
  • 671
  • 7
  • 20
1
vote
1 answer

Convert character in format YEARQT to a quarterly "date" in R

Date 1960Q1 1960Q2 1960Q3 1960Q4 1961Q1 1961Q2 I have the following data.frame. I am trying to put this first column into a tsibble. Now I have a problem. How can I switch to a date so that it can be read as a quarter. I tried…
C. Master
  • 113
  • 4
1
vote
1 answer

R as_tsibble() running out of memory

I have a dataset with 3.9M rows, 5 columns, stored as a tibble. When I try to convert it to tsibble, I run out of memory even though I have 32 GB which should be way more than enough. The weird thing is that if I apply a filter function before…
1
vote
1 answer

How to set index and key when creating tsibble from existing data?

Problem I want to create a tsibble but it's unclear how to set the key and how to set the index. Not a tibble. I tried the following: ts <- t %>% as_tsibble( key = t$key_field, index = c(t$date, to$state), regular = FALSE ) But…
manager_matt
  • 395
  • 4
  • 19
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". …
1
vote
1 answer

Working with dates in tsibbles in R, "seasonal" and "fpp3" packages

I have been reading this book and been trying to use some of the same code, which require you to store your data as a tsibble. However when I try to use a specific code in chapter 3 on my own data, I can't get it to work. First I load my own data,…
Casper97
  • 15
  • 4
1
vote
1 answer

Is there a data.table way of filling in gaps of time periods?

Is there an elegant way of filling in missing time periods as timetk::pad_by_time and tsibble::fill_gaps in data.table? The data might look like this library(data.table) data<-data.table(Date =…
Nick
  • 81
  • 1
  • 6
1
vote
1 answer

How can i obtain a tsibble from this tibble without using the as.Date function?

I need to convert several "tibble" into "tsibble". Here a simple example: require(tidyverse) require(lubridate) time_1 <- c(ymd_hms('20210101 000000'), ymd_hms('20210101 080000'), ymd_hms('20210101 160000'), #…
manuzambo
  • 191
  • 7
1
vote
0 answers

Using a function to determine chart title in Shiny App?

I am having an issue using a function I made to determine the chart title of an interactive plot in my shiny app. It works outside my app but not inside The error: Error in if: argument is of length zero UI plotlyOutput("plot"), column(3, …
wgraves25
  • 27
  • 4