set.seed(42)
n <- 600
t <- seq_len(n)
p1 <- 30
p2 <- 240
xy <- (1 + 0.6 * sin(t*2*pi/p2)) * sin(t*2*pi/p1) + 2 * sin(t*2*pi/p2) +
rnorm(n, sd = 0.5) + 0.01 * t
inter_dt <- round(runif(length(xy), min = 0.5, max = 1.5),1)
dt <- cumsum(inter_dt)
res <- simple.ssa(xy, dt, groups = list(c(1,2), c= 3:10))
parsimony(res)
integrity(xy, res)
if (FALSE) {
plot_emd(res, style = 1)}
Run the code above in your browser using DataLab