Trigonometric variables
sincos
creates an full set of trigonometric variables.
sincos(Y, n.ahead = 0, constant = FALSE)
Y
: an object of class ts
used to determine the sample period and frequency.n.ahead
: number of additional observations to extend the sample period.constant
: logical indicator to include a column of ones.A matrix of trigonometric variables.
Y <- AirPassengers P58 <- sincos(Y)