feasts | Feature Extraction And Statistics for Time Series | Time Series Database library
kandi X-RAY | feasts Summary
kandi X-RAY | feasts Summary
feasts provides a collection of tools for the analysis of time series data. The package name is an acronym comprising of its key features: Feature Extraction And Statistics for Time Series. The package works with tidy temporal data provided by the tsibble package to produce time series features, decompositions, statistical summaries and convenient visualisations. These features are useful in understanding the behaviour of time series data, and closely integrates with the tidy forecasting workflow used in the fable package.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of feasts
feasts Key Features
feasts Examples and Code Snippets
Community Discussions
Trending Discussions on feasts
QUESTION
I'm able to convert the following df
to tsibble object and plot using gg_season()
:
ANSWER
Answered 2022-Feb-16 at 04:44...
gg_season(value, pal = c("#3333FF", "#FF3333")) +
geom_point()
QUESTION
I have some data concerning events that take place at irregular intervals, where the only thing that matters is the order. I am trying to use some of the functions from the tidyverts universe (which replaces the forecast package), by declaring a sequence of consecutive integers as my time index. I’ve been getting an error I dont understand:
...ANSWER
Answered 2021-Oct-27 at 05:25The ACF
function expects the first parameter to be a tibble, and the second to be the variable name. You cannot pass in a column. Use
QUESTION
(Better title wording recommendations welcome)
...ANSWER
Answered 2021-Nov-29 at 18:33We could use a lambda function
QUESTION
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, then I store it in a tsibble and the try to convert it to a tsibble (I don't know if this is the optimal way), but it seems that at some point along the way, I don't clarify what the quarterly dates are correctly.
...ANSWER
Answered 2021-Nov-09 at 19:08You need to change a few things in your code.
- remove the key when you create the index. You want to predict on the gdp numbers. They are not a key value. The key will either be selected automatically or if you want to specify it, it needs to uniquely determine time indices.
So for 1 you:
QUESTION
I'm using the following libraries to try and work with time series data.
First I install fpp3 because it has the aus_airpassengers dataset. Here is the dput for that dataset or else you could get it from the package. It just has two columns, one for Year and one for Passengers.
...ANSWER
Answered 2021-Oct-21 at 21:33You are using ggtsdisplay
from the forecast
package which is designed for ts
objects. You need to use gg_tsdisplay
from the feasts
package (which is loaded when you load fpp3
).
In general, if you are using tsibbles and fable
, you should not be loading the forecast
package.
QUESTION
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 other.
...ANSWER
Answered 2021-Jul-08 at 18:47Maybe this is what you are looking for. As autoplot
returns a ggplot object you could simply add facet_wrap(~.model, ncol = 1)
QUESTION
I need to do an AR test and plot acf for many series. I can do it one by one like,
...ANSWER
Answered 2021-Mar-13 at 08:23The following uses only base R:
1) acf
can handle multiple series:
QUESTION
I'm trying to understand the difference between feasts::CCF
vs. base::ccf
and why they produce different results in the reprex (do the NAs have something to do with it?)
ANSWER
Answered 2021-Feb-08 at 00:14Yes, the results are due to how NA is handled. ccf
gives the same result as CCF
if na.omit
is used instead of na.pass
.
EDIT
However - if you look at the source code for CCF()
, using e.g. View(CCF)
in RStudio, you'll see that it uses base ccf
:
QUESTION
Decided to try the alphametics problem on Exercism and using a brute force but concurrent approach I solve all but the final test in fairly efficient manner. I can't figure out why the final test is failing as the only extra complexity is the number of addends. I assume it's an issue with how I'm handling the carry digit for a column but that should have tripped me up on the other tests too. My code:
...ANSWER
Answered 2020-Oct-11 at 19:30Overflowing u8 on the addition. Fixed with some casts to u64.
QUESTION
I am trying to use a fable
model fit on one group's time series to predict onto another group's time series:
ANSWER
Answered 2020-Sep-26 at 07:18You're using id
as a key, which means you fit a separate model for each key. Yet your training data does not contain id==B
, so there is no B
model.
It is hard to know what you expect here. What model do you want to use for the B
rows?
If you want to use the A
model, then set up the test set with B
replaced by A
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install feasts
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page