Do Regressions every 12 periods

3 ビュー (過去 30 日間)
Ana
Ana 2014 年 4 月 7 日
コメント済み: Star Strider 2014 年 4 月 7 日
Hi! How can I do regressions for a time series data every 12 periods? I mean, I have monthly data and i would like to do a regression for each 12 months, corresponding to a regression every year. Does anyone know how to do this? Thank you.

採用された回答

Star Strider
Star Strider 2014 年 4 月 7 日
If your data are in a vector, use reshape to create an (Nx12) matrix from it, then do the regressions on the rows.
  2 件のコメント
Ana
Ana 2014 年 4 月 7 日
Thank you!
Star Strider
Star Strider 2014 年 4 月 7 日
My pleasure!

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by