BBQ {BCDating} | R Documentation |
This function implements the Harding and Pagan algorithm that creates a quarterly dating from a univariate time series.
BBQ(y, mincycle = 5, minphase = 2, name = "")
y |
The input time series. |
mincycle |
Minimum length of a cycle. default=5 |
minphase |
Minimum length of a phase of a cycle.default=2 |
name |
The name of the series or dating. |
See Reference paper.
An object of class "BCDating". You can use show(), summary(), window(), and plot() on it.
Majid Einian,m.einian@mbri.ac.ir,
Monetary and Banking Research Institute, Central Bank of Islamic Republic of Iran
Franck Arnaud ,
National Institute of Statistics and Economic Studies (INSEE), France
Harding, D. and Pagan A. 2002 "Dissecting the Cycle: A Methodological Investigation." Journal of Monetary Economics 49 (2), 365–381. http://www.sciencedirect.com/science/article/pii/S0304393201001088.
data("Iran.non.Oil.GDP.Cycle")
dat <- BBQ(Iran.non.Oil.GDP.Cycle, name="Dating Business Cycles of Iran")
show(dat)
summary(dat)
plot(dat)
data(MBRI.Iran.Dating)
plot(dat,MBRI.Iran.Dating)