Skip to content
Prev 9464 / 15274 Next

time series regime detection in R?

On Thu, 2 Feb 2012, Michael wrote:

            
The "strucchange" and "segmented" packages provide functionality in this 
direction. The former considers abrupt shifts (including jumps) in 
parameters whereas the latter has the additional restriction of looking at 
continuous segmented functions.

If you are in a setting without covariates, the packages "changepoint" and 
"bcp" may also be of interest.
A specific application that may be of interest in this direction is 
implemented in the "fxregime" package (built on top of "strucchange"). See 
also the accompanying paper:

   Achim Zeileis, Ajay Shah, Ila Patnaik (2010). Testing, Monitoring,
   and Dating Structural Changes in Exchange Rate Regimes. Computational
   Statistics & Data Analysis, 54(6), 1696-1706.
   doi:10.1016/j.csda.2009.12.005

hth,
Z