Syntax error?

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

cemj
Posts: 6
Joined: Sat May 22, 2010 4:07 am

Syntax error?

Postby cemj » Sat May 22, 2010 4:16 am

Hello,

Im trying to figure out whats wrong with this equation in eviews, it says syntax error, so I guess
I must have typed it in wrongly. Any suggestions would be very welcomed!


dklcl=c(1)+c(2)*((dklcl(-1)+dklcl(-2)+dklcl(-3)+dklcl(-4)+dklcl(-5))+c(3)*(-sp500+1,931650171)

dsp500=c(4)+c(5)*(dsp500(-1)+dsp500(-2)+dsp500(-3)+dsp500(-4)+dsp500(-5))+c(6)*(-klci-1,262344597)

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Syntax error?

Postby EViews Gareth » Sat May 22, 2010 8:18 am

Are you typing both of those expressions in to the same equation? Equations can only have a single expression!

A second possibilty is that you don't have EViews setup to accept commas as decimal seperators. Try using a point instead.

cemj
Posts: 6
Joined: Sat May 22, 2010 4:07 am

Re: Syntax error?

Postby cemj » Sat May 22, 2010 8:30 am

Hi, thank you for your comments!

Yes, Im typing them both in since I have a simultanoeous equations system, and theyre working now! :)
The problem seems to have been that I included the numbers in the last variable and also too few paranthesises,
this formula is working, so I just need to figure out how to include the "numbers" now,


dklcl=c(1)+c(2)*(dklcl(-1))+c(2)*(dklcl(-2))+c(2)*(dklcl(-3))+c(2)*(dklcl(-4))+ c(2)*(dklcl(-5))+c(3)*(-sp500)

dsp500=c(4)+c(5)*(dsp500(-1))+c(5)*(dsp500(-2))+c(5)*(dsp500(-3))+c(5)*(dsp500(-4))+c(5)*(dsp500(-5))+c(6)*(-klci)

cemj
Posts: 6
Joined: Sat May 22, 2010 4:07 am

Re: Syntax error?

Postby cemj » Sat May 22, 2010 8:33 am

You were right about the commas! I putted dots instead and now its working to include the numbers! Thank you! :)


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests