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
7
votes
2 answers

tsibble -- how do you get around implicit gaps when there are none

I am new to the tsibble package. I have monthly data that I coerced to a tsibble to use the fable package. A few issues I am having It appears the index variable (from my testing) is not of class date even though I applied lubridate's ymd function…
Punxsutawney
  • 81
  • 1
  • 4
6
votes
1 answer

In R, the same code cannot be knit out in package Vignette file. "list" object cannot be coerced to type integer

This question is about generate_msts() function in package GRATIS. I add some new stuff (make the function has options to transform its output into a lovely tsibble format or keep the original ‘list’ format) and prepare update to CRAN. New code add…
user13971133
6
votes
1 answer

How to specify interval or frequency with tsibble and fable for service hours?

I want to forecast the number of customers entering a shop during service hours. I have hourly data for Monday to Friday 8:00 to 18:00 Thus, I assume my time series is in fact regular, but atypical in a sense, since I have 10 hours a day and 5…
HeiN3r
  • 178
  • 5
5
votes
2 answers

How to remove the temporal component in an aggregation of a tsibble object?

I have been working with the tsibble package and I can't get how is the proper way to remove the time component from the aggregation result. So in the following dataset, I want to have the mean trips by Region and State. Is the proper way to convert…
User2321
  • 2,952
  • 23
  • 46
4
votes
2 answers

How to get a more detailed x-axis when plotting a tsibble?

I am currently following along with Forecasting: Principles and Practice, 3rd Edition, which is graciously available online. To replicate my issue, you will need to install and then load the package fpp3. You will then need to carry out the…
readyready15728
  • 518
  • 3
  • 17
4
votes
1 answer

Report models separately from a mable

How can I report each model seperately from a mable. Example code (from https://otexts.com/fpp3/holt-winters.html) library(fabletools) library(fable) library(forecast) library(tsibble) library(feasts) aus_holidays <- tourism %>% filter(Purpose ==…
Aman J
  • 1,825
  • 1
  • 16
  • 30
3
votes
0 answers

R fable logit transformed exponential smoothing forecast producing unexpected result

I have tried and tried to figure this out but am having no luck!! I have constructed a model that aims to forecast a relatively short time series using an exponential smoothing method. The results need to be constrained to between 0 and 1, so I use…
rohan
  • 31
  • 3
3
votes
1 answer

Multiple time series in a long format tsibble

I want to run time series models to forecast one step ahead using fable package. As far I understand, I need to have my data in tsibble format. Here is what I am trying to do, Generate three ids Time stamps for those three ids Three random…
JontroPothon
  • 127
  • 1
  • 9
3
votes
0 answers

time series outlier treatment R (tsibble object)

Does any one know of a time series outlier detection and treatment function in the tsibble or fable packages? Alternatively is there an R function that can be applied to a tsibble object for time series outlier treatment? I have read this…
CloverCeline
  • 511
  • 3
  • 18
2
votes
1 answer

dplyr group_by retaining extra columns after summarise

I am at a total loss for this one - I am playing with the "pedestrian" dataset from tsibble. I want to get total counts for each month/year. I started by adding a month_year column, then summarise the data with sum, like…
Grimey
  • 91
  • 2
  • 12
2
votes
1 answer

Forecasting irregular stock data with ARIMA and tsibble

I want to forecast a certain stock using ARIMA in a similar way that R. Hyndman does it in FPP3. The first issue that I've run into is that stock data is obviously irregular, since the stock exchange is closed during weekends and some holidays. This…
resto
  • 23
  • 1
  • 3
2
votes
1 answer

Using Time Series Models Inside Custom R Functions

I am attempting to create an R function that takes in a tsibble and column name, fits a few basic models, and will eventually output a plot (though the plotting portion is not the subject of this question). At this point, I cannot get the following…
dancassin
  • 77
  • 1
  • 6
2
votes
2 answers

Fit a Mean forecasting model using tsibble, fable in R

(Using Orange dataset from library(Ecdat) for reproducibility.) I am trying to fit a mean forecasting model in R using tsibble, fable package in R. The code below is pretty simple, however I get the error Error in NCOL(x) : object 'value' not found…
Vaibhav Singh
  • 1,159
  • 1
  • 10
  • 25
2
votes
1 answer

How to transform an as_tibble() format time series data into an as_tsibble() format in R?

so far the result I get is as below, which is a 'tibble' format. However, as this is a group of time series, I wish to transform this result x into a 'tsibble' format afterwords. Anyone know what further step I need to do? I tried using x <-…
user13971133
2
votes
0 answers

create hierarchies of quarter, months / Argument y must be a multivariate time series. Traceback:

I have a time series dataframe A Time Series: 6 × 12 that can be generated by using following syntax library(hts) ts(rnorm(67), start=c(2015, 4), frequency=12) When I run aggregate(ts(rnorm(67), start=c(2015, 4), frequency=12), nfrequency=4) It…
lpt
  • 931
  • 16
  • 35
1
2 3 4 5 6 7 8