tidiers_robets {sweep}R Documentation

Tidying methods for robets (Robust Error, Trend, Seasonal) exponential smoothing modeling of time series

Description

Tidying methods for robets (Robust Error, Trend, Seasonal) exponential smoothing modeling of time series

Usage

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

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

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

## S3 method for class 'robets'
sw_tidy_decomp(x, timetk_idx = FALSE,
  rename_index = "index", ...)

Arguments

x

An object of class "robets"

...

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 and sw_tidy_decomp. When TRUE, uses a timetk index (irregular, typically date or datetime) if present.

rename_index

Used with sw_augment and sw_tidy_decomp. 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:

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

See Also

robets::robets()

Examples

library(dplyr)
library(robets)
library(sweep)

fit_robets <- WWWusage %>%
    robets()

sw_tidy(fit_robets)
sw_glance(fit_robets)
sw_augment(fit_robets)
sw_tidy_decomp(fit_robets)


[Package sweep version 0.2.2 Index]