how would I only include observation for certain crosssection

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

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

msyed
Posts: 2
Joined: Wed Jul 04, 2018 6:44 pm

how would I only include observation for certain crosssection

Postby msyed » Wed Oct 03, 2018 8:29 pm

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.

Lalan_dk
Posts: 17
Joined: Tue Apr 10, 2018 9:51 pm

Re: how would I only include observation for certain crosssection

Postby Lalan_dk » Sat Oct 06, 2018 12:11 am

maybe something like this:

Code: Select all

series numberyear=@obsby(crossid, crossid)
smpl if numberyear>2


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 7 guests