stl.xts: Loess Seasonal Decomposition for xts Objects

Description Usage Arguments Details Value Author(s) Examples

View source: R/StructTS.R

Description

Decompose a time series into seasonal, trend, and irregular components using loess.

Usage

1
2
  ## S3 method for class 'xts'
stl(x, ...)

Arguments

x

an xts object

...

additional arguments to be passed to the stats function which drives these methods.

Details

Currently little more than thin wrappers to stats::stl for xts objects. Will receive increased functionality going forward. See documentation of those functions for more information about the calculation mechanisms.

Value

A stl object with the residuals and fitted values coerced back to xts objects.

Author(s)

Michael Weylandt

Examples

1
2
  # Hopefully we don't break this
  example("stl","stats")

joshuaulrich/xtsExtra documentation built on May 19, 2019, 9:40 p.m.