Code for Fan Chart - Error

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

creagan52
Posts: 10
Joined: Fri Aug 02, 2019 1:27 am

Code for Fan Chart - Error

Postby creagan52 » Wed Aug 21, 2019 3:09 am

I am trying to create a fanchard for us unemployment forecasts. I have used the code below but keep getting this error message

"while statement unterminated in "WHILE 60>5"

Can anyone help with this?

Code: Select all

%esmpl= "@first 2012m12" %fsmpl= "2013m1 2013m12" !boot=1 !coefu=1 !numb=3 %modname="mod" %varname="us_une" smpl {%esmpl} equation eq1.ls us_une c us_une(-1) us_une(-2) eq1.makemodel ({%modname}) %quant_array="90" !quant_step=90/!numb !k=90-!quant_step while !k >5 %quant_array=%quant_array+@str(@round(!k)+" "

amrsherif
Posts: 109
Joined: Mon Jul 23, 2018 4:34 pm

Re: Code for Fan Chart - Error

Postby amrsherif » Wed Aug 21, 2019 6:13 am

I believe you need a ‘wend’ at the end of the your while loop (add it as the last line)


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests