Skip to content
Prev 205846 / 398506 Next

time series analysis for a time series without a regular frequency

On Fri, 8 Jan 2010, Erin Hestir wrote:

            
As Gabor already pointed out: the zoo package can be used to store such 
data.

If you want to use the strucchange package for detecting changes then you 
can do two things:
   -  use a plain data.frame (without ts or some other time
      series class) which can be easily produced via
      as.data.frame(zoo_obj).
      Then the axis annotation in graphics won't be the time axis but
      the standard unit interval (= proportion of data). This is not so
      pretty but all statistical interpretations are still correct.
   - If zoo_obj is just a univariate series and you want to conduct a
     CUSUM test for a change in the mean you can do
       cus <- gefp(zoo_obj ~ 1)
       plot(cus)
       plot(cus, functional = meanL2BB)
     and so on. gefp() is the only function in strucchange that
     automatically supports "zoo".

hth,
Z