Sample Panel Data

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

stefanp
Posts: 63
Joined: Wed Sep 30, 2015 12:24 am

Sample Panel Data

Postby stefanp » Thu Mar 17, 2016 1:16 am

Hey,

I would like to sample in a panel workfile for all but few cross sections. All the cross sections that should be excluded have a similar pattern, i.e. they start with "aa_" and then "2", "3". I would like to exclude all cross sections that start with "aa_"

I thought of something like this:

Code: Select all

smpl @all if ident<>"aa_"*
However, I end up with a syntax error. I could not find a way to make use of the "*" symbol.

Any ideas?

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

Re: Sample Panel Data

Postby EViews Gareth » Thu Mar 17, 2016 7:39 am

How about:

Code: Select all

smpl if @left(ident,3)<>"aa_"


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests