do_initial_transform: Do an initial transformation of time series data.

Description Usage Arguments Value

View source: R/utils.R

Description

Do an initial transformation of time series data.

Usage

1
do_initial_transform(y, transformation, bc_params)

Arguments

y

a univariate time series or numeric vector.

transformation

character specifying transformation type: "box-cox", "log", "forecast-box-cox", or "none".

bc_params

(required if transformation is "box-cox"). Parameters for the Box-Cox transformation. bc_params$lambda should be the result of a call to car::powerTransform(y + bc_params$gamma, family = "bcPower")

Value

a transformed object of the same class as y


reichlab/sarima-utils documentation built on March 21, 2020, 3:45 a.m.