sincos: Trigonometric variables

View source: R/detvar.R

sincosR Documentation

Trigonometric variables

Description

'sincos()' creates a full set of seasonal trigonometric regressors (cos/sin harmonics) for a seasonal frequency.

Usage

sincos(Y, n.ahead = 0, constant = FALSE)

Arguments

Y

A seasonal 'ts' object.

n.ahead

Integer. Extra observations to extend the sample.

constant

Logical. If 'TRUE', include an intercept column.

Value

A 'ts' matrix with trigonometric variables (and intercept if requested).

Examples

X <- sincos(AirPassengers, constant = TRUE)


tfarima documentation built on Nov. 5, 2025, 7:43 p.m.