tidiers_arima {sweep}R Documentation

Tidying methods for ARIMA modeling of time series

Description

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

Usage

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

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

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

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

Arguments

x

An object of class "Arima"

...

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.

rename_index

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

timetk_idx

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

Value

sw_tidy() returns one row for each coefficient in the model, with five columns:

sw_glance() returns one row with the columns

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

sw_tidy() returns the underlying ETS or ARIMA model's sw_tidy() one row for each coefficient in the model, with five columns:

See Also

arima(), Arima()

Examples

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

fit_arima <- WWWusage %>%
    auto.arima()

sw_tidy(fit_arima)
sw_glance(fit_arima)
sw_augment(fit_arima)



[Package sweep version 0.2.5 Index]