sample in unbalanced panel data

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

fiz
Posts: 1
Joined: Thu Jan 17, 2013 1:27 pm

sample in unbalanced panel data

Postby fiz » Thu Jan 17, 2013 1:51 pm

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?

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

Re: sample in unbalanced panel data

Postby EViews Gareth » Thu Jan 17, 2013 1:53 pm

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


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 1 guest