pasting code into command bar

For questions regarding programming in the EViews programming language.

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

dissertationdan
Posts: 6
Joined: Thu Sep 04, 2014 6:39 am

pasting code into command bar

Postby dissertationdan » Thu Sep 11, 2014 5:25 pm

I have manually inputted a code of the following format into the eviews command panel to create dummy variables:

smpl if ny>100
series dummy2=1
smpl if ny<=100
series dummy2=0
smpl if chcg>100
series chcg100=1
smpl if chcg<=100
series chcg100=0
etc etc....

I would like to repeat the process changing the values from 100 to 1,5,10,25 and 50. My idea was that I could simply copy the code from eviews into notepad, use the replace function to change the number, and then paste back into the eviews command bar, however this seems not to work. Any ideas how I could do this?

Many thanks!

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: pasting code into command bar

Postby startz » Thu Sep 11, 2014 6:38 pm

Create a program instead. File/New/Program


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests