Programming for dummies

For questions regarding programming in the EViews programming language.

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

eviewsuser77
Posts: 3
Joined: Fri Apr 05, 2013 12:27 am

Programming for dummies

Postby eviewsuser77 » Thu Jan 30, 2014 1:44 pm

Hello,

Could you please help me: I need to estimate some equation for a set of individuals, so I am working on a program that would do so for all of them at once. Is it possible to do the following: for all the individuals I have a dummy variable, could I make EViews look at the values of the dummy and for all the cases when the dummy is equal to 1...:

1)... limit the sample for estimation to that observation (where the dummy=1) +/- some number of days?

2)... also assign values of 1 to some set of days around it (+/- a fixed number)?

I would be very grateful for your help and especially for some suggested code.

Thanks!

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

Re: Programming for dummies

Postby EViews Gareth » Thu Jan 30, 2014 1:50 pm

Code: Select all

smpl if dummy=1 or dummy(-1)=1 or dummy(1)=1 equation eq1.ls...

eviewsuser77
Posts: 3
Joined: Fri Apr 05, 2013 12:27 am

Re: Programming for dummies

Postby eviewsuser77 » Thu Jan 30, 2014 2:23 pm

Thanks for your message. I would really appreciate it if you could clarify a bit - could you please consider the 2 points I mentioned separately and suggest some solution?

Thanks!

Code: Select all

smpl if dummy=1 or dummy(-1)=1 or dummy(1)=1 equation eq1.ls...

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

Re: Programming for dummies

Postby EViews Gareth » Thu Jan 30, 2014 2:28 pm

1)

Code: Select all

smpl if dummy=1 or dummy(-1)=1 or dummy(1)=1 equation eq1.ls...
2)

Code: Select all

smpl if dummy=1 or dummy(-1)=1 or dummy(1)=1 series dum2 = 1


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests