View source: R/xregMultiplier.R

xregMultiplier | R Documentation |

Function generates the cross-products of the provided exogenous variables.

```
xregMultiplier(xreg, silent = TRUE)
```

`xreg` |
matrix or data.frame, containing variables that need to be expanded. This matrix needs to contain at least two columns. |

`silent` |
If |

This function might be useful if you have several variables and want to introduce their cross-products. This might be useful when introducing the interactions between dummy and continuous variables.

`ts`

matrix with the transformed and the original variables
is returned.

Ivan Svetunkov, ivan@svetunkov.ru

```
es, stepwise,
xregExpander, xregTransformer
```

```
# Create matrix of two variables and expand it
x <- cbind(rnorm(100,100,1),rnorm(100,50,3))
xregMultiplier(x)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.