I have a panel data (with T=20 observations, and K=30 cross-sections) and I would like to generate averages for a given time-period for specific groups of cross-sections.
So, let's say I want to generate a series that would represent the average value for crossids 5, 7 and 10.
How can I do this in Eviews?
Ideally I would like to generate a new cross-section that would represent the "row average" of a given crossids. Is this even possible?
(PS: I wonder about the behavior of @mean function -
if I try to generate scalar:
Code: Select all
scalar avg1=@mean(series1, A1)Code: Select all
series avg2=@mean(series1, A1)Code: Select all
sample A1 if @year=2005 AND (crossid=5 OR crossid=7 OR crossid=10)