window-methods: Extracting a window of A BCDating

Description Methods Author(s) Examples

Description

Methods for function window

Methods

signature(x = "BCDating")

Sometimes you need to know the state of economics in just a period of time. Using Window, you can obtain a new BCDating object limited to the time period mentioned. See examples.

Author(s)

Majid Einian,m.einian@mbri.ac.ir,
Monetary and Banking Research Institute, Central Bank of Islamic Republic of Iran

Examples

1
2
3
4
library(BCDating)
data(MBRI.Iran.Dating)
MBRI.Iran.Dating
window(MBRI.Iran.Dating,start=c(1368,2),end=c(1376,1)) # 5th and 6th Gov's of IRI

Example output

Dating name : MBRI Dating for Business Cycles of Iran 
   Peaks Troughs Duration
1   <NA>  1368Q2     <NA>
2 1370Q4  1372Q4        8
3 1373Q2  1374Q1        3
4 1376Q1  1378Q1        8
5 1378Q4  1380Q1        5
6 1381Q1  1381Q3        2
7 1383Q1  1383Q4        3
8 1386Q1  1388Q2        9
9 1390Q2  1392Q2        8
Dating name : MBRI Dating for Business Cycles of Iran 
   Peaks Troughs Duration
1   <NA>  1368Q2     <NA>
2 1370Q4  1372Q4        8
3 1373Q2  1374Q1        3
4 1376Q1    <NA>     <NA>

BCDating documentation built on May 1, 2019, 6:31 p.m.