Stock-Watson Factor with Stochastic Volatility

Discussion of State Space and Dynamic Stochastic General Equilibrium Models

Stock-Watson Factor with Stochastic Volatility

Postby myoungblood » Thu Sep 30, 2010 1:45 pm

Stock and Watson continue to develop their common factor model. In "The Evolution of National and Regional Factors in U.S. Housing Construction," in Essays in Volatility in Finance and Economics, Time Series, and Regional Economics (2010), they allow volatilities to break midway through the sample. (The working paper is available from Watson's website: http://www.princeton.edu/~mwatson/publi.html.) How should one change the code posted for the Stock Watson Factor with Missing Data to calculate two regimes for the SIGSQE of each factor? Thank you, Michael
myoungblood
 
Posts: 3
Joined: Wed Aug 25, 2010 8:49 am

Re: Stock-Watson Factor with Stochastic Volatility

Postby TomDoan » Thu Sep 30, 2010 4:35 pm

You need to use a VECT[VECT] with outer dimension 2 for the variances. Write a function which switches these at the break point.

function swf time
type symm swf
type integer time
if time<=breakpoint
compute swf=%diag(sigmac(1)~~sigma(1))
else
compute swf=%diag(sigmac(2)~~sigma(2))
end swf

Then use the option SW=SWF(t) in the DLM instruction.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: Stock-Watson Factor with Stochastic Volatility

Postby myoungblood » Tue Oct 05, 2010 8:48 am

Tom: Thank you. However, I encounter a problem with the dimension of swf(). The example program swgibbsmissing.prg dimensions sw as 5x5, whereas swf is 2x2, which is not conformable with f in the DLM (f is also 5x5, of course). Should swf() return two 5x5 matrices? Clearly, I am not following well enough the matrix algebra within DLM. I appreciate your help. Best regards, Michael
myoungblood
 
Posts: 3
Joined: Wed Aug 25, 2010 8:49 am

Re: Stock-Watson Factor with Stochastic Volatility

Postby myoungblood » Tue Oct 05, 2010 3:36 pm

Tom: I have resolved the initial difficulty with the solution that you provided, by correctly dimensioning the vect[vect]. However, the DLM requires another adjustment that eludes me. I am receiving this error message:

dlm(method=bfgs,parmset=fixparms,start=DLMSetup(),presample=ergodic,$
a=a,c=c,f=f,sw=swf(t),y=%xt(y,t),type=smooth) rstart rend xstates
## DLM1. Rank of Prediction Error Variance < Number of Observables

Thank you, Michael
myoungblood
 
Posts: 3
Joined: Wed Aug 25, 2010 8:49 am


Return to State Space Models/DSGE

Who is online

Users browsing this forum: No registered users and 2 guests