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!
Programming for dummies
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13586
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Programming for dummies
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
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!
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
1)
2)
Code: Select all
smpl if dummy=1 or dummy(-1)=1 or dummy(1)=1
equation eq1.ls...
Code: Select all
smpl if dummy=1 or dummy(-1)=1 or dummy(1)=1
series dum2 = 1
Who is online
Users browsing this forum: No registered users and 2 guests
