tempdisagg | Temporal Disaggregation and Interpolation of Time Series | Time Series Database library
kandi X-RAY | tempdisagg Summary
kandi X-RAY | tempdisagg Summary
Temporal disaggregation methods are used to disaggregate or interpolate a low frequency time series to a higher frequency series, where either the sum, the average, the first or the last value of the resulting high frequency series is consistent with the low frequency series. Temporal disaggregation can be performed with or without one or more high frequency indicator series. Contains the methods of Chow-Lin, Santos-Silva-Cardoso, Fernandez, Litterman, Denton and Denton-Cholette. Supports most R time series classes.
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 tempdisagg
tempdisagg Key Features
tempdisagg Examples and Code Snippets
Community Discussions
Trending Discussions on tempdisagg
QUESTION
I have a monthly frequency data which I am trying to disaggregate into a daily frequency data.
So I use the td
command from the tempdisagg
package in R using the code below:
ANSWER
Answered 2020-Jan-03 at 00:25It looks like the tempdisagg package doesn't allow for monthly to daily disaggregation. From the td()
help file 'to' argument:
high-frequency destination frequency as a character string ("quarterly" or "monthly") or as a scalar (e.g. 2, 4, 7, 12). If the input series are ts objects, the argument is necessary if no indicator is given. If the input series are vectors, to must be a scalar indicating the frequency ratio.
Your error message "'to' argument: unknown character string" is because the to =
argument only accepts 'quarterly' or 'monthly' as strings.
There is some discussion about disaggregating monthly data to daily on the stats stackexchage here: https://stats.stackexchange.com/questions/258810/disaggregate-monthly-forecasts-into-daily-data
After some searching, it looks like nobody consistently using disaggregated monthly to daily data. The tempdisagg
package seems to be capable of what most others have found to be possible -- yearly to quarterly or monthly, and time periods that are consistent even multiples.
Eric, I've added a script below that should illustrate what you're trying to do, as I understand it.
Here we use real pricing data to move from daily prices -> monthly prices -> monthly returns -> average daily returns.
QUESTION
As input I have a time series known at daily time points. We may refer to this time series as _x_
. The object _x_
is a time series, i.e. consisting of dates and measurements.
I would like to investigate the effect of keeping the time series constant in each month. In other words, I would like to have a new time series _y_
that still has a daily frequency but the observations in the months are kept constant equal to the first value in the month.
I have looked into this and tried to use the 'tempdisagg'
package, specifically the 'td'
function. However, this seems too complicated for my purpose and requires a formula as input. Furthermore supposing each month has 30 days will create a discrepancy between _x_
and _y_
, which is not desirable as the length of the time series is several years.
Is there a solution to enable this?
...ANSWER
Answered 2018-Jan-15 at 16:09Creation of x (time series)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install tempdisagg
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