R/try.stl.R

Defines functions try.stl

#' @importFrom graphics plot
#' @importFrom stats stl
try.stl <- function(the.ts, window.size) {
    for (i in window.size) {
        fit <- stl(the.ts, s.window = i)
        plot(fit, main = paste("s.window=", i))
    }
}
wqmeeker/RTseries documentation built on Dec. 31, 2022, 10 a.m.