Computes a business cycle indicator using multivariate singular spectrum analysis.
bmssa(y, l = 32)
multivariate time series of economic activity data from which the cycle is to be extracted; the first column is reserved to Gross Domestic Product (GDP).
window length; by default, l = 32
.
time series with the business cycle indicator.
vector with indices of elementary reconstructed components selected with Fisher \(g\) statistic; see details.
time series with elementary reconstructed components resulting from targeted grouping based on a Fisher \(g\) statistic.
window length.
The business cycle indicator produced using this routine is based on
methods proposed in de Carvalho and Rua (2017). A quick summary of the
method is as follows. Multivariate singular spectrum analysis is used
to decompose a multivariate time series (y
) into principal
components, and a Fisher \(g\) statistic automatically selects
elementary reconstructed components (erc
) within business cycle
frequencies. The indicator results from adding elementary
reconstructed components within business cycle frequencies. The
plot
method depicts the resulting business cycle indicator,
and the print
method reports the business cycle indicator
along with the components selected by the Fisher \(g\) statistic.
de Carvalho, M., Rodrigues, P., and Rua, A. (2012). Tracking the US business cycle with a singular spectrum analysis. Economics Letters, 114, 32--35.
de Carvalho, M. and Rua, A. (2017). Real-time nowcasting the US output gap: Singular spectrum analysis at work. International Journal of Forecasting, 33, 185--198.
See combplot
for a chart of the selected elementary
reconstructed components from which the business cycle indicator
results. See bssa
for a univariate version of the
method.
# NOT RUN {
## Tracking the US Business Cycle (de Carvalho et al, 2017; Fig. 6)
data(GDPIP)
fit <- bmssa(log(GDPIP))
plot(fit)
print(fit)
# }
Run the code above in your browser using DataLab