Likelihood with Time-Varying Variances

Use this forum to post questions about syntax problems or general programming issues. Questions on implementing a particular aspect of econometrics should go in "Econometrics Issues" below.
luching
Posts: 64
Joined: Mon Jun 07, 2010 4:05 pm

Likelihood with Time-Varying Variances

Unread post by luching »

I have VAR with stochastic volatility of the form

Y_t=X_t*beta + u_t; where V(u_t)=Sigma_t

Is there an inbuilt way to compute the following likelihood?

L(Y^T|beta,Sigma^T);

where Sigma^T is the entire history of Sigma's. Say, Sigma_t is multivariate normal.
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Likelihood?

Unread post by TomDoan »

Something like:

sstats start end %logdensity(sigma(t),u(t))>>logl

That would have SIGMA as a SERIES[SYMM] and U as a SERIES[VECT]. If it's more convenient to organize the residuals as a VECT[SERIES], you would do

sstats start end %logdensity(sigma(t),%xt(u,t))>>logl
Post Reply