Closed christophsax closed 5 years ago
OK, thanks for the good example! I was thinking of putting basic mixed frequency support into the package. Dealing with daily/monthly stuff is too much (due to differing numbers of days in the month... I've done this in some of my production code but it gets a little heavy), but basic support shouldn't be too hard.
Decided to go ahead and include support for mixed frequency data. Things seem to run well at the moment... have a look at the [US_GDP.R](https://github.com/srlanalytics/bdfm/blob/seas_we()_updates/inst/Examples/US_GDP.R) example. Need to do a bit more testing to make sure it's all doing the right thing, but looks good at the moment. Phew!
Defaults are all still the same... i.e. uniform frequency is default.
This is pretty good stuff... what about a short paper comparing methods for handling mixed frequency data using bdfm
?
Your comment from on an older branch:
I wand to show how good tsbox is with mixed frequency data.
Here are 3 series, one quarterly, one monthly, one daily.
A long data frame is just the natural way to store mixed frequency data, as it does not store tons of NA values.
But we can convert it to anything, so a
ts
object is a nice start:See how nicely the series are aligned. Weekdays are handled correctly, including the day off in row 726. This works for weekly, bi-weekly, bi- annual and even intraday series. No matter what’s the input, series are regularized and aligned, and filled with NAs
To get the matrix we need for further processing:
Created on 2018-12-15 by the reprex package (v0.2.1)