seasonal_dummies | R Documentation |
Creates a matrix of seasonal dummies.
seasonal_dummies(y = NULL, n = nrow(y), seasons = 12)
y |
optional data series. |
n |
if y is missing, then the length of the series is required. |
seasons |
number of seasons in a cycle. |
Generates seasons-1 dummy variables.
Either a matrix (if y is missing or y is not an xts vector) or an xts matrix (when y is an xts vector).
Alexios Galanos
head(seasonal_dummies(n=100, seasons=12))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.