Page 1 of 1

sample in unbalanced panel data

Posted: Thu Jan 17, 2013 1:51 pm
by fiz
I have unbalanced panel data set that was entered as unstructured data in EViews 7. I want to sample by year but the example in the manual does not fit my situation. Year is a variable in the data set. Tried smpl if year 1980 1985. That does not work. How should I approach the sample statement?

Re: sample in unbalanced panel data

Posted: Thu Jan 17, 2013 1:53 pm
by EViews Gareth
Assuming you don't want to perform the obvious task of converting it from unstructured data into a panel, this should work:

Code: Select all

smpl if year>=1980 and year<=1985