Page 1 of 1

Setting sample size in a pooled panel

Posted: Tue Apr 05, 2011 7:41 pm
by rockerbie
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.

Re: Setting sample size in a pooled panel

Posted: Wed Apr 06, 2011 8:01 am
by EViews Gareth

Code: Select all

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