Markov Switching Linear Regression

Use this forum for posting example programs or short bits of sample code.
Post Reply
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Markov Switching Linear Regression

Post by TomDoan »

This is an example of the use of the @MSRegression procedure for a Markov switching linear regression. While this is the same basic regression equation (and data set) as in Hamilton's work, it is, in fact, quite different because it switches the full coefficient vector (intercept and lag coefficients) and the variance, while Hamilton fixes the variance and lag coefficients and switches the process mean. Hamilton's model is actually quite a bit more complicated because switching the mean creates a dependence of the likelihood at entry t on p+1 lags of the regime where p is the number of lags in the autoregression. Switching everything in the regression means that the likelihood at t depends only upon the regime at t.

When so many things change between regimes, it is much more likely that there will be multiple modes (for instance, high intercept/low intercept; high variance/low variance). Switching variance can also produce problems because the likelihood is theoretically unbounded. (Make one regime isolate a single point and drive its variance to zero). Issues like this are discussed in much greater detail in our Structural Breaks and Switching course materials.
.
fruehp366b.RPF
Example program
(1.03 KiB) Downloaded 1129 times
GNP.DAT
Data file
(6.99 KiB) Downloaded 1009 times
Post Reply