CalendarVar: Calendar variables

Description Usage Arguments Value References Examples

View source: R/detvar.R

Description

CalendarVar creates a set of deterministic variables to capture calendar effects.

Usage

1
CalendarVar(x, form = c("dif", "lom", "td"), easter = FALSE, n.ahead = 0)

Arguments

x

an object of class ts used to determine the sample period and frequency.

form

a character indicated the set of calendar variables.

easter

logical. If TRUE an additional deterministic variable is generated to capture Easter effects.

n.ahead

number of additional observations to extend the sample period.

Value

A matrix of explanatory variables.

References

Bell, W.R. and Hillmer, S.C. (1983) “Modeling time series with calendar variation”, Journal of the American Statistical Society, Vol. 78, pp. 526–534.

Examples

1
2
Y <- rsales
X <- CalendarVar(Y, easter = TRUE)

tfarima documentation built on May 30, 2021, 1:06 a.m.