powered by
sdummies creates an full set of seasonal dummies.
sdummies
sdummies(Y, ref = 1, constant = FALSE, n.ahead = 0)
an object of class ts used to determine the sample period and frequency.
ts
the reference season, positive integer
logical indicator to include a column of ones.
number of additional observations to extend the sample period.
A matrix of trigonometric variables.
# NOT RUN { Y <- AirPassengers P58 <- sincos(Y) # }
Run the code above in your browser using DataLab