Analyzing a time series with R -


i'm newbie on r following pdf of timeseries analysis r, walter zucchini. have data coming sensor, in particular can have data every minutes or every 5 seconds. want use ts() command make time series of values. syntax should data1mints <- ts(data1min ,freq = 525600) 525600 minutes in regular year.
after try plot command plot(stl(log(data1min), s.window = "periodic")) r says me

series not periodic or has less 2 periods

to more precise, have data 20 march 28 march, didn't have complete year data, think it's enough period analyze happens every minute.

what i'm wrong?

the error message tells wrong - have less 2 periods.

for example,

# works since there 3 periods freq <- 100 ny <- 3 # no of years, i.e. periods n <- ny * freq set.seed(13) tt <- ts(rnorm(n), freq = freq) s <- stl(tt, "periodic")  # issues error since there less 2 periods. (we have changed ny 1.) freq <- 100 ny <- 1 ## n <- ny * freq set.seed(13) tt <- ts(rnorm(n), freq = freq) s <- stl(tt, "periodic") 

Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -