楼主: love1010
1886 3

[问答] 请教一个EViews程序的问题 [推广有奖]

  • 0关注
  • 0粉丝

小学生

85%

还不是VIP/贵宾

-

威望
0
论坛币
139 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
1095 点
帖子
6
精华
0
在线时间
13 小时
注册时间
2009-6-2
最后登录
2013-10-10

楼主
love1010 发表于 2012-7-5 06:49:39 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
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
二维码

扫码加我 拉你入群

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

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

关键词:EVIEWS Views Eview view EWS 程序

回帖推荐

singph 发表于4楼  查看完整内容

Due to the error messages, Yes, you might need to define the variable before use.

singph 发表于2楼  查看完整内容

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

本帖被以下文库推荐

沙发
singph 在职认证  发表于 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
已有 1 人评分经验 论坛币 收起 理由
胖胖小龟宝 + 10 + 10 热心帮助其他会员

总评分: 经验 + 10  论坛币 + 10   查看全部评分

藤椅
love1010 发表于 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?

板凳
singph 在职认证  发表于 2012-7-5 10:53:46
Due to the error messages, Yes, you might need to define the variable before use.

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-29 08:18