Do Regressions every 12 periods

3 visualizaciones (últimos 30 días)
Ana
Ana el 7 de Abr. de 2014
Comentada: Star Strider el 7 de Abr. de 2014
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.

Respuesta aceptada

Star Strider
Star Strider el 7 de Abr. de 2014
If your data are in a vector, use reshape to create an (Nx12) matrix from it, then do the regressions on the rows.
  2 comentarios
Ana
Ana el 7 de Abr. de 2014
Thank you!
Star Strider
Star Strider el 7 de Abr. de 2014
My pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by