Page 1 of 1

Syntax error for running SVAR

Posted: Mon Aug 02, 2010 2:26 am
by ecshukri
Hi!
I'm currently using Eviews 7.1 (build April 2010). Could someone please check where I went wrong with the following syntax:

matrix (7,7) pata
'Fill matrix in row major order
pata.fill(by=r) 1,na,0,0,na,0,na, na,1,na,na,0,0,0, 0,0,1,na,na,0,0, 0,0,0,1,na,0,0, 0,0,0,0,1,0,0, 0,0,0,0,na,1,0 na,na,na,na,na,na,1

An error message "syntax error" was flagged each time I run the above line (in bold). FYI, I'm following Kim and Roubini (2000) approach to estimating an SVAR for a small open economy.

Thanks

Re: Syntax error for running SVAR

Posted: Mon Aug 02, 2010 5:37 am
by trubador
A comma is missing between the last two rows. The following form should work fine:

Code: Select all

matrix (7,7) pata pata.fill(b=r) 1,na,0,0,na,0,na,na,1,na,na,0,0,0,0,0,1,na,na,0,0,0,0,0,1,na,0,0,0,0,0,0,1,0,0,0,0,0,0,na,1,0,na,na,na,na,na,na,1