sdummies | R Documentation |
sdummies
creates an full set of seasonal dummies.
sdummies(Y, ref = 1, constant = FALSE, n.ahead = 0)
Y |
an object of class |
ref |
the reference season, positive integer |
constant |
logical indicator to include a column of ones. |
n.ahead |
number of additional observations to extend the sample period. |
A matrix of trigonometric variables.
Y <- AirPassengers P58 <- sincos(Y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.