View source: R/xregTransformer.R
xregTransformer | R Documentation |
Function transforms each variable in the provided matrix or vector, producing non-linear values, depending on the selected pool of functions.
xregTransformer(xreg, functions = c("log", "exp", "inv", "sqrt", "square"),
silent = TRUE)
xreg |
Vector / matrix / data.frame, containing variables that need
to be expanded. In case of vector / matrix it is recommended to provide
|
functions |
Vector of names for functions used. |
silent |
If |
This function could be useful when you want to automatically select the
necessary transformations of the variables. This can be used together
with xregDo="select"
in es, ces,
gum and ssarima. However, this might be
dangerous, as it might lead to the overfitting the data. So be reasonable
when you produce the transformed variables.
ts
matrix with the transformed and the original variables
is returned.
Ivan Svetunkov, ivan@svetunkov.com
es, stepwise,
xregExpander
# Create matrix of two variables and expand it
x <- cbind(rnorm(100,100,1),rnorm(100,50,3))
xregTransformer(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.