Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

SWfore

Stock-Watson Diffusion Index Forecasts


Description

Uses the diffusion index approach of Stock and Watson to compute out-of-sample forecasts

Usage

SWfore(y, x, orig, m)

Arguments

y

The scalar variable of interest

x

The data matrix (T-by-k) of the observed explanatory variables

orig

Forecast origin

m

The number of diffusion index used

Details

Performs PCA on X at the forecast origin. Then, fit a linear regression model to obtain the coefficients of prediction equation. Use the prediction equation to produce forecasts and compute forecast errors, if any. No recursive estimation is used.

Value

coef

Regression coefficients of the prediction equation

yhat

Predictions at the forecast origin

MSE

Mean squared errors, if available

loadings

Loading matrix

DFindex

Diffusion indices

Author(s)

Ruey S. Tsay

References

Tsay (2014, Chapter 6). Multivariate Time Series Analysis with R and Financial Applications. John Wiley. Hoboken, NJ.


MTS

All-Purpose Toolkit for Analyzing Multivariate Time Series (MTS) and Estimating Multivariate Volatility Models

v1.0
Artistic License 2.0
Authors
Ruey S. Tsay and David Wood
Initial release
2018-10-8

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.