Page 1 of 1

Syntax error?

Posted: Sat May 22, 2010 4:16 am
by cemj
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)

Syntax error?

Posted: Sat May 22, 2010 8:18 am
by EViews Gareth
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.

Re: Syntax error?

Posted: Sat May 22, 2010 8:30 am
by cemj
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)

Re: Syntax error?

Posted: Sat May 22, 2010 8:33 am
by cemj
You were right about the commas! I putted dots instead and now its working to include the numbers! Thank you! :)