Simulating a CATS model

A forum for questions and answers regarding the CATS cointegration procedure
Martin
Posts: 5
Joined: Thu Oct 18, 2007 11:26 pm

Simulating a CATS model

Unread post by Martin »

Hi, I try to simulate data from a CATS model as the following. However, only the first round it works. When it goes to the second round, the SIMULATE commend will return an error saying

"## SR6. Missing a Necessary Parameter. Check Instruction Syntax"

I am lost. Thanks for any possible comment.

===My Program===

@cats(r=2,lag=2,shortrun,export=var) 1983:1 *
# Y M2 R P2

comp catsmodel0 = catsmodel
comp omega0 = %omega1

do i=1,500

simulate(model=catsmodel0,from=1983:4,steps=500,results=z,cv=omega0)

set ys 1 500 = z(1)
set ms 1 500 = z(2)
set rs 1 500 = z(3)
set ps 1 500 = z(4)

@cats(r=2,lag=2,shortrun,nomenu,noprint,export=var) 400 500
# Ys Ms Rs Ps

...Other bookkeeping lines

end do i
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Unread post by TomDoan »

I don't see anything wrong with that. You'll have to send the full program with data to support@estima.com so we can run exactly what you have.
Post Reply