Learn R Programming

sazedR (version 2.0.2)

sazed.maj: SAZED Ensemble (Majority)

Description

sazed.maj estimates a time series' season length by computing 6 different estimates and taking a majority vote.

Usage

sazed.maj(y, iter = 0, method = "down", preprocess = T)

Arguments

y

The input time series.

iter

The recursion depth.

method

The method used for breaking ties. One of c("alt","diff","down").

preprocess

If true, y is detrended and z-normalized before computation.

Value

The season length of the input time series.

Examples

Run this code
# NOT RUN {
season_length <- 26
y <- sin(1:400*2*pi/season_length)
sazed.maj(y)
# }

Run the code above in your browser using DataLab