SeasComponent: Generate a data matrix of seasonal components

Description Usage Arguments Details Value Author(s) References Examples

Description

Generate a data matrix of seasonal components, having two pattern cycles.

Usage

1

Arguments

wts

A univeriate time series with monthly or quarterly frequency.

type

Types of patterns of seasonal cycle.
="dummyCycle", generating dummy variables for the pattern of seasonal cycle, Barsky & Miron (1989)
="trgCycle", generating trigonometric variables for the pattern of seasonal cycle, Granger & Newbold (1986).

Details

This function generates data matrix for controlling the pattern of seasonal cycles. type="dummyCycle" generates DUMMY variables with season frequency. type="trgCycle" generates trigonometric pattern.

Value

A dataframe returns. Number of columns is determined by frequency.

Author(s)

Ho Tsungwu <tsungwu@cc.shu.edu.tw>, modifed from Javier Lopez-de-Lacalle

References

Barsky, Robert B. and Jeffrey A. Miron (1989) The Seasonal Cycle and the Business Cycle. Journal of Political Economy, 97 (3): 503-32.
Granger, Clive William John and Newbold, Paul (1986) Forecasting Economic Time Series. 2nd edition. Published by New Milford, Connecticut, U.S.A.: Emerald Group Pub Ltd.
Javier Lopez-de-Lacalle in https://github.com/cran/uroot/blob/master/R/hegy.R

Examples

1
2
3
4
data(inf_Q)
y=inf_Q[,2]
SeasComponent(y,type="dummyCycle")
SeasComponent(y,type="trgCycle")


Search within the pdR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.