tidiers_StructTS {sweep}R Documentation

Tidying methods for StructTS (Error, Trend, Seasonal) / exponential smoothing modeling of time series

Description

These methods tidy the coefficients of StructTS models of univariate time series.

Usage

## S3 method for class 'StructTS'
sw_tidy(x, ...)

## S3 method for class 'StructTS'
sw_glance(x, ...)

## S3 method for class 'StructTS'
sw_augment(x, data = NULL, timetk_idx = FALSE, rename_index = "index", ...)

Arguments

x

An object of class "StructTS"

...

Additional parameters (not used)

data

Used with sw_augment only. NULL by default which simply returns augmented columns only. User can supply the original data, which returns the data + augmented columns.

timetk_idx

Used with sw_augment only. Uses a irregular timetk index if present.

rename_index

Used with sw_augment only. A string representing the name of the index generated.

Value

sw_tidy() returns one row for each model parameter, with two columns:

sw_glance() returns one row with the columns

sw_augment() returns a tibble with the following time series attributes:

See Also

StructTS()

Examples

library(dplyr)
library(forecast)
library(sweep)

fit_StructTS <- WWWusage %>%
    StructTS()

sw_tidy(fit_StructTS)
sw_glance(fit_StructTS)
sw_augment(fit_StructTS)


[Package sweep version 0.2.5 Index]