Problems using retime within timetable
Afficher commentaires plus anciens
Dear all,
Using daily zero coupon yields data from 16-Aug-1972 until 13-Jul-2018 (see Gurkaynak et al 2006), I used
rmissing(retime(data,'frequency',@mean))
to get monthly and quarterly averages. The resulting monthly averages were fine. The same holds for the quarterly averages, however, with the exemption that matlab skipped the calculation of 2008Q1. Only when first calculating monthly averages, all quarters were calculated.
Can someone educate me for why taking quarterly averages directly from daily worked for all quarters but 2008Q1?
Thanks. Best, Gavin
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Time Series Events dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!