View source: R/first_differences.R
trend | R Documentation |
This function is used to specify the preprocessing associated with the trend of a time series.
trend(type = "additive", n = -1, transform_features = FALSE)
type |
A character indicating the type of preprocessing applied to the
time series. Possible values are: |
n |
An integer specifying the order of first differences to be applied.
If the default (-1) is used, the order of first differences needed by the
time series will be estimated by the |
transform_features |
A logical value indicating whether the training features are also transformed with the additive or multiplicative transformation. |
A list with the selected options
trend("none") # no preprocessing
trend("additive") # additive preprocessing
trend("differences", 1) # order 1 first differences
trend("differences", -1) # order of first differences automatically estimated
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.