Setting sample size in a pooled panel

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

rockerbie
Posts: 8
Joined: Fri Feb 05, 2010 10:10 am

Setting sample size in a pooled panel

Postby rockerbie » Tue Apr 05, 2011 7:41 pm

I have 30 cross section units each with annual observations of a variable called X over the period 2002 to 2008. I would like to set the sample so that only the cross-section observations for each year that are above the average value of X for each year are included. I would seem to need to enter multiple lines in the sample window, but I just don't know.

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

Re: Setting sample size in a pooled panel

Postby EViews Gareth » Wed Apr 06, 2011 8:01 am

Code: Select all

smpl if X>@meansby(X,@obsid)
I think.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests