IRF from the VARMA model

Questions and discussions on Time Series Analysis

IRF from the VARMA model

Postby luxu1983 » Mon Mar 01, 2010 10:57 am

dear Tom
how can i get the IRF from the VARMA model
may you give me an example?
thank you very very much
luxu1983
 
Posts: 67
Joined: Wed Aug 12, 2009 10:53 pm

Re: IRF from the VARMA model

Postby TomDoan » Mon Mar 01, 2010 11:54 am

How do you have the VARMA model represented? State space form or linear equations with residuals?
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: IRF from the VARMA model

Postby luxu1983 » Tue Mar 02, 2010 6:01 pm

TomDoan wrote:How do you have the VARMA model represented? State space form or linear equations with residuals?

dear TomDoan
it is not state space form
i estimate it using MAX L
luxu1983
 
Posts: 67
Joined: Wed Aug 12, 2009 10:53 pm

Re: IRF from the VARMA model

Postby TomDoan » Wed Mar 03, 2010 2:19 pm

If there are p AR terms, with the matrices in phi(1),...,phi(p) and q MA terms with matrices theta(1),...,theta(q), then this will generate (non-orthogonal) responses for NSTEPS steps. (n is the number of variables). The IRF's for step h (starting at 1=impact) are in psi(h). For any other type of shocks, change the psi(1) to the impacts that you want.

Code: Select all
dec vect[rect] psi(nsteps)
compute psi(1)=%identity(n)
do i=1,nsteps-1
   if i<=q
      compute psi(i+1)=theta(i)*psi(1)
   else
      compute psi(i+1)=%zeros(n,n)
   do j=1,%imin(p,i)
      compute psi(i+1)=psi(i+1)+phi(j)*psi(i+1-j)
   end do j
end do i
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm


Return to Other Time Series Analysis

Who is online

Users browsing this forum: No registered users and 2 guests