Transforming daily (but irregular) data to weekly frequency
Posted: Wed Mar 16, 2011 5:44 pm
I have a time-series of irregular but dated daily data, that I would like to transform to weekly data. The problem is that the daily data is only registered when the interest rate is changed (so the frequency is irregular), and all other rows are simply excluded from the series (when the interest rate is not changed). Thus, there are no dated rows with missing values. To make it more complicated, sometimes the interest rate is not changed for over e.g. 2 weeks, which implies that there can be e.g. 38 daily observations in a year (if the interest rate is only changed 38 times during a year).
I added an excel file with a short illustration of how this series may look like (the format of the dates are 20110204, which means year:2011, month:02, day: 04).
I really do appreciate if some clever person can solve this programming problem. It must be a problem that other people also have encountered.
/Kavorka
I added an excel file with a short illustration of how this series may look like (the format of the dates are 20110204, which means year:2011, month:02, day: 04).
I really do appreciate if some clever person can solve this programming problem. It must be a problem that other people also have encountered.
/Kavorka