An introduction to EViews programming.

For questions regarding programming in the EViews programming language.

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

youtu
Posts: 6
Joined: Mon Apr 12, 2010 12:21 pm

An introduction to EViews programming.

Postby youtu » Mon Apr 12, 2010 12:41 pm

Dear EViews users,

Code: Select all

'create a workfile wfcreate q 1990 2010 'create a y series series y=nrnd 'create 15 X series for !i=1 to 15 series x{!i}=nrnd next
The quaterly workfile goes from 1990 to 2010. So "y" will be of length 21*4=84, and so will be "x1",...,"x15" ? Am I right ?

Is it always necessary to create a workfile ? Or are there some uses that do not require a workfile ?

Thank you very much

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

Re: An introduction to EViews programming.

Postby EViews Gareth » Mon Apr 12, 2010 1:42 pm

Yes you are right.

You always need a workfile to contain the data you're creating. It does not have to be a new one, you could open an existing one and then remove the workfile creation line.

youtu
Posts: 6
Joined: Mon Apr 12, 2010 12:21 pm

Re: An introduction to EViews programming.

Postby youtu » Tue Apr 13, 2010 12:38 pm

Thank you Gareth


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests