Page 1 of 1

Dummy-variable

Posted: Mon Jun 20, 2011 7:55 am
by Pantera
Hi all,
In a balanced, stacked panel: 7 sections and a time horizon of 13 years (7 x 13 = 91 observations), I want to generate a single dummy variable which takes the value 1 at row (observation) 42 (at section #4 at time point 1999) and zero otherwise. How do I do that - any suggestions?

Regards,
P

Re: Dummy-variable

Posted: Mon Jun 20, 2011 9:07 am
by EViews Gareth

Code: Select all

series dum=0 smpl 1999 1999 if @crossid=4 dum=1

Re: Dummy-variable

Posted: Mon Jun 20, 2011 3:03 pm
by Pantera
Thanks - your solution function perfectly.

P.