Dear all,
I am using a panel data set with 900 cross-section (firms) and period between 2010-2016. I would like to remove cross-sections with only two years of data available. So, essentially I like to keep observations for firms with more than two years of observations in my analysis. I guess, i can do this at the series level or when I am estimating the output from the model. I am not sure about the condition that I need to set. Any help will be great.
how would I only include observation for certain crosssection
Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator
Re: how would I only include observation for certain crosssection
maybe something like this:
Code: Select all
series numberyear=@obsby(crossid, crossid)
smpl if numberyear>2
Who is online
Users browsing this forum: No registered users and 9 guests