全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 EViews专版
1831 3
2012-07-05
I am new to Eviews, and try to run this code but failed. the error said that W10 is not defined in “IF W{%Y}(0+1)<>NA THEN"

Could anyone tell what is the error and how to correct it? Thank you.

For %Y= 10 11 12 154 187

For !i=0 to 32
If w{%Y}(!i+1) <> na then
smpl 190+!i 205+!i
%myeq_name="w{%Y}eqq{!i}"
endif
Next
Next
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2012-7-5 08:28:00
This sample programme is an excerpt from the Eviews help file which may help:

scalar i
scalar sum = 0
vector (10) x
for i=1 to 10
x(i) = i
sum = sum + i
next
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2012-7-5 09:11:07
singph 发表于 2012-7-5 08:28
This sample programme is an excerpt from the Eviews help file which may help:

scalar i
谢谢  这段程序我看得懂,比较简单的for loop,但是不理解我之前发的那段程序的错误所在~  请问这个w{%Y}(!i+1)里面的w有特殊含义么,还是必须之前先定义什么对象为w?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2012-7-5 10:53:46
Due to the error messages, Yes, you might need to define the variable before use.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群