bssa {ASSA} | R Documentation |
Singular Spectrum Business Cycle Indicator
Description
Computes a business cycle indicator using singular spectrum analysis.
Usage
bssa(y, l = 32)
Arguments
y |
time series of economic activity data from which the cycle is to be extracted. |
l |
window length; by default, |
Details
The business cycle indicator produced using this routine is based on
methods proposed in de Carvalho et al (2012) and de Carvalho and Rua
(2017). A quick summary of the method is as follows: Singular
spectrum analysis is used to decompose a GDP 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 principal 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.
Value
cycle |
time series with the business cycle indicator. |
sfisher |
vector with indices of principal components selected
with Fisher |
erc |
time series with elementary reconstructed components
resulting from targeted grouping based on a Fisher |
l |
window length. |
Author(s)
Miguel de Carvalho.
References
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 Also
See combplot
for a chart of the selected elementary
reconstructed components from which the business cycle indicator
results. See bmssa
for a multivariate version of the
method.
Examples
## Tracking the US Business Cycle (de Carvalho et al, 2017; Fig. 6)
data(GDPIP)
fit <- bssa(log(GDPIP[, 1]))
plot(fit)
print(fit)